pelya / libiconv-libicu-android

Port of libiconv and libicu to Android
The Unlicense
30 stars 44 forks source link

fails when building with r10e #3

Closed DanAlbert closed 7 years ago

DanAlbert commented 8 years ago
$ PATH=/path/to/android-ndk-r10e:$PATH ./build.sh
...
LD_LIBRARY_PATH=/work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/lib:/work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/stubdata:/work/src/Boost-for-Android/
libiconv-libicu-android/armeabi/icu/source/cross/tools/ctestfw:$LD_LIBRARY_PATH /work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/bin/icupkg -d ./out/build/icudt52l --list -x \* ./in/i
cudt52l.dat -o out/tmp/icudata.lst
/bin/sh: /work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/bin/icupkg: No such file or directory
...
pelya commented 8 years ago

Builds okay on my setup. Could you please try to change NCPU to 1 inside build.sh? Do you have GCC and G++ installed on your host system?

On Fri, Dec 11, 2015 at 8:15 PM, Dan Albert notifications@github.com wrote:

$ PATH=/path/to/android-ndk-r10e:$PATH ./build.sh ... LD_LIBRARY_PATH=/work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/lib:/work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/stubdata:/work/src/Boost-for-Android/ libiconv-libicu-android/armeabi/icu/source/cross/tools/ctestfw:$LD_LIBRARY_PATH /work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/bin/icupkg -d ./out/build/icudt52l --list -x * ./in/i cudt52l.dat -o out/tmp/icudata.lst /bin/sh: /work/src/Boost-for-Android/libiconv-libicu-android/armeabi/icu/source/cross/bin/icupkg: No such file or directory ...

— Reply to this email directly or view it on GitHub https://github.com/pelya/libiconv-libicu-android/issues/3.

DanAlbert commented 8 years ago

I had done that, wasn't any better. It seemed to be the first thing that came up, so possibly a missing dependency?

Yes, have GCC and G++ (gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4)

pelya commented 8 years ago

Try to install all packages listed here: https://github.com/pelya/commandergenius/blob/sdl_android/project/jni/application/xserver/readme.txt It's compilation instructions for a different Android app, but they set up the same environment as on my work PC. On Dec 12, 2015 1:59 AM, "Dan Albert" notifications@github.com wrote:

I had done that, wasn't any better. It seemed to be the first thing that came up, so possibly a missing dependency?

Yes, have GCC and G++ (gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4)

— Reply to this email directly or view it on GitHub https://github.com/pelya/libiconv-libicu-android/issues/3#issuecomment-164084384 .

multiplemonomials commented 7 years ago

For anyone else who has the same error, I figured out what's causing this problem. In order to build libicu, the build script first builds it for the host system architecture, then uses the tools that were built the first time around (including icupkg) to compile it for Android. This error message means that the compile for the host system failed. It won't ever retry the compile because it sees that the <your arch>/icu/source/cross directory exists. So, delete that folder, rerun the build script, and keep a close eye for the error that is causing the host build to fail.