I have successfully compiled CM7.2 from source yesterday for my HTC Dream (specs below), but discovered a few bugs and if any of the CM devs are reading this, it would be nice if the bugs I am posting below could be ironed out (I provide a solution below, but it is a bit "crude"!).
I followed the building-cm-from-source wiki page (http://wiki.cyanogen...ogenMod_(Linux)), though the only thing I changed is to retrieve "gingerbread" instead of "froyo-stable". My phone has the following specs:
HBOOT-1.33.2005
Radio 2.22.19.26I
DREAM PVT 32B
Amon_Ra 1.7
DangerSPL in use
During the build I've encountered the following errors and discovered the following bugs (after running "mka bacon" from system/):
make: *** No rule to make target `out/target/product/dream_sapphire/obj/lib/libgps.so', needed by `out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/gps.sapphire_intermediates/LINKED/gps.sapphire.so'. Stop.
make: *** Waiting for unfinished jobs....
Now, this was a bit unexpected because I've executed the appropriate shell script to retrieve the propriety files from my phone and they were all copied - without exception or failure - to system/vendor/htc/dream_sapphire/proprietary:
148 -rwxr-xr-x. 1 alain alain 149456 Dec 15 23:46 akmd
4 -rw-r--r--. 1 alain alain 1898 Dec 15 23:46 AudioFilter.csv
44 -rw-r--r--. 1 alain alain 44542 Dec 15 23:46 AudioPara4.csv
8 -rw-r--r--. 1 alain alain 5220 Dec 15 23:46 AudioPreProcess.csv
16 -rw-r--r--. 1 alain alain 14087 Dec 15 23:46 brf6300.bin
192 -rw-r--r--. 1 alain alain 194188 Dec 15 23:46 Fw1251r1c.bin
36 -rw-r--r--. 1 alain alain 33514 Dec 15 23:46 libaudioeq.so
56 -rw-r--r--. 1 alain alain 56116 Dec 15 23:46 libcamera.so
524 -rw-r--r--. 1 alain alain 533456 Dec 15 23:46 libGLES_qcom.so
72 -rw-r--r--. 1 alain alain 71860 Dec 15 23:46 libgps.so
20 -rw-r--r--. 1 alain alain 17564 Dec 15 23:46 libhtc_acoustic.so
440 -rw-r--r--. 1 alain alain 449872 Dec 15 23:46 libhtc_ril.so
8 -rw-r--r--. 1 alain alain 5264 Dec 15 23:46 libmm-adspsvc.so
468 -rw-r--r--. 1 alain alain 478248 Dec 15 23:46 liboemcamera.so
156 -rw-r--r--. 1 alain alain 159564 Dec 15 23:46 libOmxH264Dec.so
160 -rw-r--r--. 1 alain alain 160760 Dec 15 23:46 libOmxMpeg4Dec.so
140 -rw-r--r--. 1 alain alain 140852 Dec 15 23:46 libOmxVidEnc.so
After googling and researching a bit I found a "solution" and did this (from system/):
cp vendor/htc/dream_sapphire/proprietary/libgps.so out/target/product/dream_sapphire/obj/lib/libgps.so
The build progressed further, but I then got:
make: *** No rule to make target `out/target/product/dream_sapphire/system/lib/libgps.so', needed by `out/target/product/dream_sapphire/system/lib/hw/gps.sapphire.so'. Stop.
make: *** Waiting for unfinished jobs....
Again, as a workaround I did:
mkdir -p out/target/product/dream_sapphire/system/lib
cp vendor/htc/dream_sapphire/proprietary/libgps.so out/target/product/dream_sapphire/system/lib/libgps.so
Please note that this is only happening to the libgps propriety file - all of the rest of them were "found" by the build, so I presume there is a wrong link somewhere in one of the build scripts, which ought to be corrected/fixed.
The build proceeded a bit further, but towards the end I've got this:
target SharedLib: libcameraservice (out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libcameraservice_intermediates/CameraService.o: in function HAL_openCameraHardware:frameworks/base/services/camera/libcameraservice/CameraService.cpp:1753: error: undefined reference to 'openCameraHardware'
collect2: ld returned 1 exit status
make: *** [out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so] Error 1
make: *** Waiting for unfinished jobs....
The solution this time was on device/htc/dream_sapphire/BoardConfig.mk to change "USE_CAMERA_STUB := true" to "USE_CAMERA_STUB := false" and restart with "mka bacon". This, of course, triggered a complete rebuild and I've got a final error before I was able to fix it and the build succeeded:
make: *** No rule to make target `out/target/product/dream_sapphire/obj/lib/libcamera.so', needed by `out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libcameraservice_intermediates/LINKED/libcameraservice.so'. Stop.
make: *** Waiting for unfinished jobs....
The solution:
cp vendor/htc/dream_sapphire/proprietary/libcamera.so out/target/product/dream_sapphire/obj/lib/libcamera.so
cp vendor/htc/dream_sapphire/proprietary/libcamera.so out/target/product/dream_sapphire/system/lib/libcamera.so
So, I presume the 2 problematic files - libcamera.so and libgps.so - should be either copied properly or the links where these are specified to be corrected and point to the right location - system/vendor/htc/dream_sapphire/proprietary in this case.
Even though I succeeded with the build I was not able to install this image (update-cm-7.2.0-RC0-DS-KANG-signed.zip) - it apparently required bootloader 1.33.0013, 1.33.2013, 1.33.3013 or 1.33.0013d!
Is there any way I could upgrade this and use the appropriate version (and upgrade the radio, if needed)?
Also, in the "build" directory (system/out/target/product/dream_sapphire/) I have quite a few other files, which might be useful, but I don't know their purpose:
ramdisk-recovery.cpio
ramdisk.img
ramdisk-recovery.img
boot.img
kernel
recovery.img
system.img
userdata.img
cyanogen_dream_sapphire-ota-eng.alain.zip
Any ideas?
Welcome to CyanogenMod
![]() |
Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
|
Guest Message by DevFuse
6 replies to this topic
#1
Posted 16 December 2011 - 04:25 PM
#2
Posted 13 January 2012 - 01:54 PM
I'm tryng to compile latest cm 7 from source but i get these errors:
Can someone help me? Thanks
packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:118: cannot find symbol symbol : variable ic_appwidget_settings_wimax_off location: class com.android.settings.R.drawable currentIcon = R.drawable.ic_appwidget_settings_wimax_off; ^ packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:121: cannot find symbol symbol : variable ic_appwidget_settings_wimax_on location: class com.android.settings.R.drawable currentIcon = R.drawable.ic_appwidget_settings_wimax_on; ^ packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:130: cannot find symbol symbol : variable ic_appwidget_settings_wimax_on location: class com.android.settings.R.drawable currentIcon = R.drawable.ic_appwidget_settings_wimax_on; ^ packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:132: cannot find symbol symbol : variable ic_appwidget_settings_wimax_off location: class com.android.settings.R.drawable currentIcon = R.drawable.ic_appwidget_settings_wimax_off; ^ packages/apps/Settings/src/com/android/settings/widget/WidgetSettings.java:600: cannot find symbol symbol : variable ic_appwidget_settings_wimax_on location: class com.android.settings.R.drawable return R.drawable.ic_appwidget_settings_wimax_on; ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 5 errors make: *** [out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Errore 41 make: *** Attesa per i processi non terminati.... Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Can someone help me? Thanks
#3
Posted 16 January 2012 - 09:44 PM
I've compiled Latest cm7 source successful.
I've installed it but it can't connect to network (GSM and wifi) with ezterry latest kernel .
What could be the problem?
I've installed it but it can't connect to network (GSM and wifi) with ezterry latest kernel .
What could be the problem?
#4
Posted 28 April 2012 - 04:24 PM
Gorneman:
To avoid all the Java errors:
make update-api
mka bacon
To avoid all the Java errors:
make update-api
mka bacon
#5
Posted 28 April 2012 - 04:31 PM
alain76:
To install the new radio 2708 and hboot 1.33.0013d, see:
http://forum.xda-dev...ad.php?t=831139
or:
http://www.francescp...html#radio_2708
To install the new radio 2708 and hboot 1.33.0013d, see:
http://forum.xda-dev...ad.php?t=831139
or:
http://www.francescp...html#radio_2708
#6
Posted 11 May 2012 - 02:56 PM
32B with hboot 1.33.0014 for magic to us?
Edited by le_van_tuan94, 11 May 2012 - 02:57 PM.
#7
Posted 10 November 2012 - 12:37 AM
I installed Experimental Mod or Nightly Builds (i cant remember which zip i installed..I installed one of this 2 zip file) in my HTC magic phone. it works. bt yesterday my phone is restart every time.so i installed stable mood. then phone on display is yellow colors But Experimental Mod or Nightly Builds phone worked gret. 
I search Experimental Mod or Nightly Builds in th
is web site. But now that 2 zip files are not in web. So please any one give me a Download link of Experimental Mod or Nightly Builds.

I installed Experimental Mod or Nightly Builds (i cant remember which zip i installed..I installed one of this 2 zip file) in my HTC magic phone. it works. bt yesterday my phone is restart every time.so i installed stable mood. then phone on display is yellow colors But Experimental Mod or Nightly Builds phone worked gret.
I search Experimental Mod or Nightly Builds in th
is web site. But now that 2 zip files are not in web. So please any one give me a Download link of Experimental Mod or Nightly Builds.
I search Experimental Mod or Nightly Builds in th
I installed Experimental Mod or Nightly Builds (i cant remember which zip i installed..I installed one of this 2 zip file) in my HTC magic phone. it works. bt yesterday my phone is restart every time.so i installed stable mood. then phone on display is yellow colors But Experimental Mod or Nightly Builds phone worked gret.
I search Experimental Mod or Nightly Builds in th
















