我在UBUTUN下编译ICU,先用GCC编译一遍,通过无错误,再用交叉编译器arm-hisiv200-linux重新编译,make时报错如下
/opt/hisi-linux/x86-arm/arm-hisiv200-linux/bin/../lib/gcc/arm-hisiv200-linux-gnueabi/4.4.1/../../../../arm-hisiv200-linux-gnueabi/bin/ld: warning: libstdc++.so.6, needed by ../../lib/libicui18n.so, not found (try using -rpath or -rpath-link)
../../lib/libicui18n.so: undefined reference to `operator delete(void*)'
../../lib/libicui18n.so: undefined reference to `__cxa_pure_virtual'
../../lib/libicui18n.so: undefined reference to `__gxx_personality_v0'
../../lib/libicui18n.so: undefined reference to `__cxa_end_cleanup'
../../lib/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
../../lib/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
../../lib/libicui18n.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
collect2: ld returned 1 exit status
make[2]: *** [../../bin/derb] 错误 1
make[2]:正在离开目录 `/home/zhujiang/WebKit-r79679/icu/source/tools/genrb'
make[1]: *** [all-recursive] 错误 2
make[1]:正在离开目录 `/home/zhujiang/WebKit-r79679/icu/source/tools'
make: *** [all-recursive] 错误 2
可是
/opt/hisi-linux/x86-arm/arm-hisiv200-linux/arm-hisiv200-linux-gnueabi/lib下有libstdc++.so.6,请问如何解决问题 新年祝福网页
貌似ubuntu你用的是x86的libstdc++.so.6,arm交叉编译时没有找到需要的arm平台的libstdc++.so.6吧
warning: libstdc++.so.6, needed by ../../lib/libicui18n.so, not found (try using -rpath or -rpath-link)
我同样在hisi arm平台编译icu遇到问题
第一编GCC顺利通过。
第二遍交叉编译
source/configure --host=$(BUILD_TARGET) --with-cross-build=${ICU_SOURCE}/${ICU}/linux --prefix=$(LIBS_INSTALL_PATH);
configure时就报错
checking whether runnable 64 bit binaries are built by default... configure: error: Unable to determine binary format.
看起来是config的时候check编译出来的是否可运行