Compiling FroYo - Android Software Development

I'm trying to compile 2.2 on the Samsung Moment. I get the following errors when it tries to compile libaudioflinger.so (as you can see), and I get the same error even if I try to copy in a precompiled one.
out/target/product/m900/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp.text._ZN7android18AudioPolicyServiceC1Ev+0x10a): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
out/target/product/m900/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp.text._ZN7android18AudioPolicyServiceC2Ev+0xfe): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'

Same thing on Captivate
Checking API: checkapi-last
Checking API: checkapi-current
Install: out/host/linux-x86/bin/dx-tests
target SharedLib: libaudioflinger (out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so)
out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp.text._ZN7android18AudioPolicyServiceC1Ev+0x130): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp.text._ZN7android18AudioPolicyServiceC2Ev+0x124): undefined reference to `android::AudioPolicyManagerBase::AudioPolicyManagerBase(android::AudioPolicyClientInterface*)'
collect2: ld returned 1 exit status
make: *** [out/target/product/captivate/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so] Error 1

Related

Problems with NDK... zlib

Hello XDA-people again (specifically the developers this time)
i have been recently trying to compile a game (www.teeworlds.com) for android.
it is sdl-based, so i used the NDK and this port of SDL for android:
http://github.com/pelya/commandergenius/archives/sdl_android
things have been going relatively good so far, i think with GLES 2.0 i will be able to compile it so it will finally be working however, i am having issues with zlib when compiling:
Code:
[email protected]:/home/reverse/and/android-ndk-r3# make APP=teeworlds
Android NDK: Building for application 'teeworlds'
Compile thumb : teeworlds <= apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c: In function 'datafile_get_data_impl':
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: 'Bytef' undeclared (first use in this function)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: (Each undeclared identifier is reported only once
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: for each function it appears in.)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:244: error: expected expression before ')' token
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c: In function 'datafile_add_data':
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:462: error: 'Bytef' undeclared (first use in this function)
apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:462: error: expected expression before ')' token
i have been modifying the headers a little, which got some "undefined method" errors removed. here are the original error messages:
Code:
SharedLibrary : libteeworlds.so
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_crc':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:671: undefined reference to `crc32'
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_add_data':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:458: undefined reference to `compressBound'
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:461: undefined reference to `compress'
out/apps/teeworlds/armeabi/objs/teeworlds/engine/e_datafile.o: In function `datafile_get_data_impl':
/home/reverse/and/android-ndk-r3/apps/teeworlds/project/jni/teeworlds/engine/e_datafile.c:243: undefined reference to `uncompress'
collect2: ld returned 1 exit status
any ideas on how to get this fixed?
Hi,
Try to replace in engine/e_datafile.c :
#include <zlib.h>
by
#include "external/zlib/zlib.h"
It looks like that you are using an other zlib while one is included in the Teeworlds sources. If you can say to NDK that he shouldn't use an external zlib.
I've made a barely playable version, just do "git pull" on the libSDL repo, change symlink project/jni/application/src to "teeworlds", run "ChangeAppSettings.sh -a" and compile it.
(Posting links is disabled for new users? This forum is useless).
Hey there Pelya, glad to see y on xda.
To op, listen to Pelya, he knows what he's talking about.

Error when compile Froyo

Well, when i compile the Froyo I seen many errors (fixed now) but I don't know what to do at this error:
Code:
/home/pcfighter/repo2/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: libcommondefs.so, needed by out/target/product/swift/obj/lib/libloc-rpc.so, not found (try using -rpath or -rpath-link)
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_uint32'
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_int32'
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_uint8'
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_uint64'
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_boolean'
out/target/product/swift/obj/lib/libloc-rpc.so: undefined reference to `xdr_rpc_uint16'
collect2: ld returned 1 exit status
make: *** [out/target/product/swift/obj/EXECUTABLES/CameraServiceTest_intermediates/LINKED/CameraServiceTest] Error 1
Plese help
I fixed the problem by placing libcommondefs.so to /out/target/swift/obj/lib

[HELP] Compile Jelly Bean

Hi all
i just want compile Jelly Bean for my Galaxy Tab 7.7 P6800
and i stuck on this error
Code:
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function init_rfkill:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:58: error: undefined reference to 'LOGW'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function set_bluetooth_power:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:122: error: undefined reference to 'LOGE'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function set_bluetooth_power:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:128: error: undefined reference to 'LOGE'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function create_hci_sock:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:142: error: undefined reference to 'LOGE'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:149: error: undefined reference to 'LOGV'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:157: error: undefined reference to 'LOGI'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:163: error: undefined reference to 'LOGI'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:167: error: undefined reference to 'LOGI'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:169: error: undefined reference to 'LOGE'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:185: error: undefined reference to 'LOGW'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_enable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:202: error: undefined reference to 'LOGI'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_disable:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:217: error: undefined reference to 'LOGV'
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/../../../device/samsung/smdk4210-tab/bluetooth.o: in function bt_is_enabled:system/bluetooth/bluedroid/../../../device/samsung/smdk4210-tab/bluetooth.c:250: error: undefined reference to 'LOGV'
collect2: ld returned 1 exit status
make: *** [out/target/product/p6800/obj/SHARED_LIBRARIES/libbluedroid_intermediates/LINKED/libbluedroid.so] Error 1
Anyone can help me?I'll be very grateful
/home/neimovirne/cmcompiler/build/prebuilts/gcc/linux-x86
Click to expand...
Click to collapse
Are you using a 64bit Linux distro ?
See below.
You can hash out the bluetooth section in BoardConfigCommon.mk to see if it will build then.
Bluetooth will not work though, obviously.
https://github.com/alanorth/android_device_samsung_smdk4210-tab/blob/ics/BoardConfigCommon.mk#L83
XeKToReX
Androguide.fr said:
Are you using a 64bit Linux distro ?
Click to expand...
Click to collapse
ofcource, i use Ubuntu 10.4.4 x64
XeKToReX said:
See below.
You can hash out the bluetooth section in BoardConfigCommon.mk to see if it will build then.
Bluetooth will not work though, obviously.
https://github.com/alanorth/android_device_samsung_smdk4210-tab/blob/ics/BoardConfigCommon.mk#L83
XeKToReX
Click to expand...
Click to collapse
thx, I'll try your advice
so i stuck on new error
Code:
make: *** No rule to make target `out/target/product/p6800/obj/lib/libbluedroid.so', required for`out/target/product/p6800/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so'. Stop.

[REQ] Firefox OS on Xperia U

Hello guys
Can anyone help this devoloper for Firefox OS on Xperia U ? http://forum.xda-developers.com/showthread.php?t=2296751
Thanks
feherneoh said:
Please anyone who see this post and want to help in development or just want to get FirefoxOS running on STE devices (Xperia P, U, Sola, Go), join us in the thread linked by @gigitux
Click to expand...
Click to collapse
What is your problem for Xperia U ?
feherneoh said:
1: I don't have U
2: my PC is way too weak
3: I'm not an experienced dev
Last problem I can remember was a build error in libpng
Error was zlib related
Click to expand...
Click to collapse
Is there possibility that i compile Firefox OS, it's work ?
feherneoh said:
you can help if you have a strong PC
You will need Ubuntu running on it
Please head over to ROM thread
Click to expand...
Click to collapse
Yeah... i try with BBQLinux http://www.bbqlinux.org/
feherneoh said:
seems to be okay
Click to expand...
Click to collapse
I will compile firefox OS today. Just ends, i will try it and i will update this thread
UPDATE: I download source, but at repo sync i have this error:
Code:
fatal: unable to write new index file
Traceback (most recent call last):
File "/home/gigitux/B2G/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/gigitux/B2G/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/gigitux/B2G/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/gigitux/B2G/.repo/repo/subcmds/sync.py", line 630, in Execute
project.Sync_LocalHalf(syncbuf)
File "/home/gigitux/B2G/.repo/repo/project.py", line 1060, in Sync_LocalHalf
self._InitWorkTree()
File "/home/gigitux/B2G/.repo/repo/project.py", line 1991, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
Repo sync failed
I will try to compile the same
UPDATE 2: I resolve a this problem. I will continue to compile
Don't work
This is a output:
Code:
ERGEDIR=out/target/product/kumquat/obj/objdir-gecko/b2g/locales/merge-$LOCALE ; \
done && \
make -C out/target/product/kumquat/obj/objdir-gecko package && \
mkdir -p out/target/product/kumquat/obj/DATA/gecko_intermediates && cp out/target/product/kumquat/obj/objdir-gecko/dist/b2g-*.tar.gz out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko
make -C gecko -f client.mk -s
Adding client.mk options from /home/gigitux/B2G/gonk-misc/default-gecko-config:
AUTOCLOBBER=1
MOZ_OBJDIR=/home/gigitux/B2G/out/target/product/kumquat/obj/objdir-gecko
MOZ_MAKE_FLAGS=-s -j16
/home/gigitux/B2G/gecko/client.mk:281: *** Could not find autoconf 2.13. Stop.
make[1]: *** [build] Error 2
make: *** [out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko] Error 2
[[email protected] B2G]$
gigitux said:
Don't work
This is a output:
Code:
ERGEDIR=out/target/product/kumquat/obj/objdir-gecko/b2g/locales/merge-$LOCALE ; \
done && \
make -C out/target/product/kumquat/obj/objdir-gecko package && \
mkdir -p out/target/product/kumquat/obj/DATA/gecko_intermediates && cp out/target/product/kumquat/obj/objdir-gecko/dist/b2g-*.tar.gz out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko
make -C gecko -f client.mk -s
Adding client.mk options from /home/gigitux/B2G/gonk-misc/default-gecko-config:
AUTOCLOBBER=1
MOZ_OBJDIR=/home/gigitux/B2G/out/target/product/kumquat/obj/objdir-gecko
MOZ_MAKE_FLAGS=-s -j16
/home/gigitux/B2G/gecko/client.mk:281: *** Could not find autoconf 2.13. Stop.
make[1]: *** [build] Error 2
make: *** [out/target/product/kumquat/obj/DATA/gecko_intermediates/gecko] Error 2
[[email protected] B2G]$
Click to expand...
Click to collapse
add the autoconf file
check the client.mk at line 218
Sent from my S500 using xda app-developers app
How do i add it?
Excuse me but I'm a noobie on compilation of Android
Sent from my ST25i using xda app-developers app
gigitux said:
How do i add it?
Excuse me but I'm a noobie on compilation of Android
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
SpaceCaker said:
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
This is client.mk http://www.mediafire.com/download/fy9r6urjw8mhpgo/client.mk
trwrt said:
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
Click to expand...
Click to collapse
BBQLinux is Arch based
gigitux said:
This is client.mk http://www.mediafire.com/download/fy9r6urjw8mhpgo/client.mk
BBQLinux is Arch based
Click to expand...
Click to collapse
try a repo sync or launch ur device again
as it should be generated
trwrt said:
It looks to me like you don't have all of the required toolchain installed. Take a look at the link below down the page where it says "Requirements for Linux" and lists all of the packages you need to have. I don't know how BBQLinux works so you'll have to translate what it does for Ubuntu-Fedora-Arch into whatever package manager you're using.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
Click to expand...
Click to collapse
SpaceCaker said:
can you upload client.mk?
i dont have firefox os synched at the moment
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Guys, I have a BIG problem:
An installed 64 bit GNU/Linux distribution (we recommend Ubuntu 12.04).
I'm on VirtualBox, becouse my distro is Fedora.
I transfer directory B2G form virtualbox to Fedora. Afer i will work on Fedora
feherneoh said:
then you can try their build-environment setup script. It will install required packages
Click to expand...
Click to collapse
Now i have transfered direcotry B2G from VirtualBox to Fedora. After i follow this instruction https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites and i try to compile Firefox OS
feherneoh said:
Use this to setup build environment
Click to expand...
Click to collapse
I don't understand. I follow this https://developer.mozilla.org/en-US/docs/Developer_Guide/Build_Instructions/Linux_Prerequisites or this https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites
feherneoh said:
Seems to be the same, sorry. I sent the URL I saved when I started working on this ROM
Click to expand...
Click to collapse
Actually i'm transfering B2G from VB to Fedora. I will update this post :laugh:
I'm compiling it. I hope *_*
I have got this problem:
Code:
sh: gperf: command not found
calling gperf failed: 32512 at ./makeprop.pl line 140.
make: *** [out/target/product/kumquat/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames.h] Errore 25
I'm installing gperf
Stay tuned !
EDIT: Another problem :/
Code:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_calculate_crc:external/libpng/png.c:239: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_reset_crc:external/libpng/png.c:213: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_process_IDAT_data:external/libpng/pngpread.c:874: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1405: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1408: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1466: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_destroy:external/libpng/pngread.c:1485: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_destroy_read_struct:external/libpng/pngread.c:1355: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:963: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:964: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_row:external/libpng/pngread.c:769: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_build_index:external/libpng/pngread.c:1039: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_init_3:external/libpng/pngread.c:333: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_create_read_struct_2:external/libpng/pngread.c:164: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:262: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:286: error: undefined reference to 'inflateReset'
collect2: ld returned 1 exit status
make: *** [out/target/product/kumquat/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Errore 1
Any fix ?
EDIT: i try with linaro now.
EDIT2: It's same.
You have got my problem, right @feherneoh ?
EDIT 3: It's work, I'm compiling...
Stay tuned!
I have same error. How do I fix libpng?
Sent from my Xperia U using xda app-developers app
feherneoh said:
Could you post the error message?
Click to expand...
Click to collapse
Code:
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_calculate_crc:external/libpng/png.c:239: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(png.o): in function png_reset_crc:external/libpng/png.c:213: error: undefined reference to 'crc32'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_process_IDAT_data:external/libpng/pngpread.c:874: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1405: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1408: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngpread.o): in function png_push_read_zTXt:external/libpng/pngpread.c:1466: error: undefined reference to 'inflateReset'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_destroy:external/libpng/pngread.c:1485: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_destroy_read_struct:external/libpng/pngread.c:1355: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:963: error: undefined reference to 'inflateEnd'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_configure_decoder:external/libpng/pngread.c:964: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_row:external/libpng/pngread.c:769: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_build_index:external/libpng/pngread.c:1039: error: undefined reference to 'inflateCopy'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_read_init_3:external/libpng/pngread.c:333: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngread.o): in function png_create_read_struct_2:external/libpng/pngread.c:164: error: undefined reference to 'inflateInit_'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:262: error: undefined reference to 'inflate'
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/kumquat/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a(pngrutil.o): in function png_inflate:external/libpng/pngrutil.c:286: error: undefined reference to 'inflateReset'
collect2: ld returned 1 exit status
make: *** [out/target/product/kumquat/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] Errore 1
Do you have zlib and zlib-devel packages installed? That's what it looks like to me.

AOKP kitkat

Ran into some errors while compiling from AOKP for mako. I'm on linux mint 16 just in case needed
is it regarding the proprietary files ?? i did not extract any of those and will those files be included in my source tree while syncing ??
Fetching projects is 100% success and Sync tree is 100% done. No errors while sync process.
One more question-- Will the compilation process resumes ?? I have a slow system and i was compiling since 2 hours and got these errors.
Can anyone help me plz :crying::crying:
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:122: error: undefined reference to 'GATTS_AddHandleRange'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:129: error: undefined reference to 'GATTS_NVRegister'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:157: error: undefined reference to 'GATT_Deregister'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:225: error: undefined reference to 'GATT_Register'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:271: error: undefined reference to 'GATT_StartIf'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:350: error: undefined reference to 'GATTS_CreateService'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:404: error: undefined reference to 'GATTS_AddIncludeService'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:438: error: undefined reference to 'GATTS_AddCharacteristic'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:476: error: undefined reference to 'GATTS_AddCharDescriptor'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:517: error: undefined reference to 'GATTS_DeleteService'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:550: error: undefined reference to 'GATTS_StartService'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:580: error: undefined reference to 'GATTS_StopService'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:602: error: undefined reference to 'GATTS_SendRsp'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:640: error: undefined reference to 'GATTS_HandleValueIndication'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:645: error: undefined reference to 'GATTS_HandleValueNotification'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:694: error: undefined reference to 'GATT_Connect'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:724: error: undefined reference to 'GATT_CancelConnect'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:759: error: undefined reference to 'GATT_Disconnect'
external/bluetooth/bluedroid/bta/./gatt/bta_gatts_act.c:806: error: undefined reference to 'GATT_Listen'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:230: error: undefined reference to 'BTM_AllocateSCN'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:287: error: undefined reference to 'BTM_FreeSCN'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:288: error: undefined reference to 'BTM_SecClrService'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:350: error: undefined reference to 'SDP_FindProtocolListElemInRec'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:361: error: undefined reference to 'SDP_FindProfileVersionInRec'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:366: error: undefined reference to 'SDP_FindAttributeInRec'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:462: error: undefined reference to 'SDP_InitDiscoveryDb'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sdp.c:469: error: undefined reference to 'SDP_ServiceSearchAttributeRequest'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:296: error: undefined reference to 'BTM_RemoveSco'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:486: error: undefined reference to 'BTM_SetEScoMode'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:514: error: undefined reference to 'BTM_SetEScoMode'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:576: error: undefined reference to 'BTM_CreateSco'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:583: error: undefined reference to 'BTM_RegForEScoEvts'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:147: error: undefined reference to 'BTM_ReadScoBdAddr'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:167: error: undefined reference to 'BTM_RemoveSco'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:1568: error: undefined reference to 'BTM_EScoConnRsp'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:337: error: undefined reference to 'BTM_ReadScoBdAddr'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:373: error: undefined reference to 'BTM_EScoConnRsp'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:1471: error: undefined reference to 'bta_sys_sco_close'
external/bluetooth/bluedroid/bta/./ag/bta_ag_sco.c:1409: error: undefined reference to 'bta_sys_sco_open'
collect2: error: ld returned 1 exit status
make: *** [/home/aviz/aokp/out/target/product/mako/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/LINKED/bluetooth.default.so] Error 1
Click to expand...
Click to collapse
No you need to get the propritary files from the google development site or pull them from your device. Each time you will have to start the build over again.
zelendel said:
No you need to get the propritary files from the google development site or pull them from your device. Each time you will have to start the build over again.
Click to expand...
Click to collapse
Where should I put those files downloaded from Google site?? I mean path.
Sent from my Nexus 4 using Tapatalk
Follow the directions on the dev site. It will help you understand what your doing.
Wayne Tech Nexus
There is a proprietary folder in /vendor/lge/mako/ and 4 other files "BoardConfigPartial.mk, BoardConfigVendor.mk, device-partial.mk, mako-vendor.mk" and in /vendor/lge/mako/proprietary there are almost 180 files. Are these proprietary binaries for mako 4.4 ?? Or do i need to extract anything from my device ??
Follow what I said and go to the development page and read up. Compiling a ROM is not a simple matter
Wayne Tech Nexus
Not to mention that AOKP source is not complete yet so even if it builds it will not boot.
zelendel said:
Follow what I said and go to the development page and read up. Compiling a ROM is not a simple matter
Wayne Tech Nexus
Not to mention that AOKP source is not complete yet so even if it builds it will not boot.
Click to expand...
Click to collapse
Thanks mate. Sorry for bothering you , I'll follow the instructions.... have a kitkat
Sent from my Nexus 4 using Tapatalk

Categories

Resources