Dear All, There is a link error when I tried to integrate my library to the project,the library is just a
file /home/dachen/crosswalk-src/src/third_party/etf/etf_dynamics/android/libs/armeabi/libgdndk.so ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped. When I build the xwalk_core_library,the follow error happens: [8/239] LINK md5sum_bin_hostFAILED: ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -pthread -fPIC -B/home/dachen/crosswalk-src/src/third_party/binutils/Linux_x64/Release/bin -L/home/dachen/crosswalk-src/src/third_party/etf/etf_dynamics/android/libs/armeabi -o md5sum_bin_host -Wl,--start-group obj.host/tools/android/md5sum/md5sum_bin_host.md5sum.o obj.host/base/libbase.a obj.host/base/libbase_static.a obj.host/base/allocator/liballocator_extension_thunks.a obj.host/third_party/modp_b64/libmodp_b64.a obj.host/base/third_party/dynamic_annotations/libdynamic_annotations.a obj.host/third_party/libevent/libevent.a -Wl,--end-group -m32 -lgdndk -lrt/home/dachen/crosswalk-src/src/third_party/binutils/Linux_x64/Release/bin/ld: error: obj.host/tools/android/md5sum/md5sum_bin_host.md5sum.o: incompatible target/home/dachen/crosswalk-src/src/third_party/binutils/Linux_x64/Release/bin/ld: warning: skipping incompatible /home/dachen/crosswalk-src/src/third_party/etf/etf_dynamics/android/libs/armeabi/libgdndk.so while searching for gdndk/home/dachen/crosswalk-src/src/third_party/binutils/Linux_x64/Release/bin/ld: error: cannot find -lgdndk/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib32/crt1.o(.text+0x18): error: undefined reference to 'main' clang: error: linker command failed with exit code 1 (use -v to see invocation) file third_party/etf/etf_dynamics/android/libs/armeabi/libgdndk.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped The library libgdndk.so is referenced by obj.host/base/libbase.a ,I add '-m32' as ldflags. file out/Release/obj.host/tools/android/md5sum/md5sum_bin_host.md5sum.o out/Release/obj.host/tools/android/md5sum/md5sum_bin_host.md5sum.o: ELF 64-bit LSB relocatable, x86-64, version 1 (GNU/Linux), not stripped See the gyp files,there are two _toolset value:target and host,if I can understand that the host is the Ubuntu system toolset and the target is the Android arm tool set(is I set it in chrome.env).I wonder why I need to build on the 'host' toolset,but not only the 'target' toolset. Thanks,Gary
_______________________________________________ Crosswalk-dev mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
