Make stops while building wine for android

Questions about Wine on Android
Post Reply
vanyk
Newbie
Newbie
Posts: 1
Joined: Sat Jan 09, 2021 1:08 am

Make stops while building wine for android

Post by vanyk » Sat Jan 09, 2021 9:04 am

Hello,
I tried to build wine 5.0 for android (arm). I installed SDK, NDK, created a toolchain:

Code: Select all

$NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=android-toolchain --toolchain=arm-linux-androideabi-4.9
Then I added the toolchain to PATH, set ANDROID_HOME, crosscompiled freetype, exported FREETYPE_CFLAGS and FREETYPE_LIBS. After that I configured wine:

Code: Select all

./configure --host=arm-linux-androideabi host_alias=arm-linux-androideabi --with-wine-tools=../wine-native --prefix=`pwd`/dlls/wineandroid.drv/assets CFLAGS="-O2"
Configuration ran without errors, but when I tried to make, I got that:

Code: Select all

make[1]: Entering directory '/home/vanyk/wine/dlls/acledit'
../.././../wine-native/tools/winegcc/winegcc -o acledit.dll.so --wine-objdir ../.. --winebuild \
  ../.././../wine-native/tools/winebuild/winebuild -b arm-linux-androideabi -marm -mfloat-abi=softfp \
  -fPIC -fasynchronous-unwind-tables -shared acledit.spec -mno-cygwin main.o 
winebuild: arm-linux-androideabi-ld failed with status 1
winegcc: ../.././../wine-native/tools/winebuild/winebuild failed
make[1]: *** [Makefile:194: acledit.dll.so] Error 2
make[1]: Leaving directory '/home/vanyk/wine/dlls/acledit'
make: *** [Makefile:8709: dlls/acledit] Error 2
When I tried to make with "sudo", I also got this:

Code: Select all

winebuild: cannot find the 'nm' tool
What I should do to fix this?

Thank you!

Post Reply