我尝试通过
与 Emscripten ( clang )交叉编译 icu4c 51.1emconfigure source/configure --host=i386-pc-linux-gnu --prefix=${myprefix} --enable-static --disable-shared --disable-dyload --disable-renaming CXXFLAGS='-DU_USING_ICU_NAMESPACE=0' CPPFLAGS='-DU_DISABLE_RENAMING=1'
emmake make
emmake make install
它可以很好地编译大多数来源,但是
失败了Unpacking ../source/data/in/icudt51l.dat and generating out/tmp/icudata.lst (list of data files)
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg -d ./out/build/icudt51l --list -x \* ../source/data/in/icudt51l.dat -o out/tmp/icudata.lst
run-detectors: warning: unable to exec /usr/bin/lli-2.8: No such file or directory
run-detectors: warning: unable to exec /usr/bin/lli-2.9: No such file or directory
LLVM ERROR: Program used external function 'findBasename' which could not be resolved!
make[1]: *** [out/tmp/icudata.lst] Error 1
make[1]: Leaving directory `/home/andreas/.emscripten-libs/sources/icu4c/51.1/data'
make: *** [all-recursive] Error 2
所以我想知道,它在哪里试图找到findBasename
以及这些数据编译的内容。
编辑:
错误消息来自icupkg
使用clang构建,在这种情况下没有意义。我如何指定库是使用 clang 构建的,而是使用其他编译器构建的工具?
答案 0 :(得分:0)
听起来我无法在../lib中找到ICU工具实用程序库 - 可能会尝试在icupkg上运行ldd或等效的