1
General / Re: Android NDK - SFML-Example Build Error
« on: May 08, 2017, 10:24:33 pm »
Hello,
So after re-doing the process for NDK-r11c, I'm now getting this error
C:\MobileDev\SFML\examples\android>ndk-build
[armeabi-v7a] "Install ": "libsfml-activity.so => libs/armeabi-v7a/libsfml-activity.so"
process_begin: CreateProcess(NULL, C:/MobileDev/AndroidDev/android-ndk-r11c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded ./libs/armeabi-v7a/libsfml-activity.so, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [libs/armeabi-v7a/libsfml-activity.so] Error 2
make: *** Deleting file `libs/armeabi-v7a/libsfml-activity.so'
I haven't been able to look into much this evening so it may be something very simple.
EDIT: I changed the folder in NDK/source/sfml from lib to libs and now I get another error!
C:\MobileDev\SFML\examples\android>ndk-build
[armeabi] "Compile++ thumb": "sfml-example <= main.cpp"
process_begin: CreateProcess(NULL, C:/MobileDev/AndroidDev/android-ndk-r11c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs/sfml-example/main.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -IC:/MobileDev/AndroidDev/android-ndk-r11c/build//../sources/cxx-stl/stlport/stlport -IC:/MobileDev/AndroidDev/android-ndk-r11c/build//../sources/cxx-stl//gabi++/include -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -frtti -isystem C:/MobileDev/AndroidDev/android-ndk-r11c/build//../platforms/android-9/arch-arm/usr/include -c jni/main.cpp -o ./obj/local/armeabi/objs/sfml-example/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/local/armeabi/objs/sfml-example/main.o] Error 2
So after re-doing the process for NDK-r11c, I'm now getting this error
C:\MobileDev\SFML\examples\android>ndk-build
[armeabi-v7a] "Install ": "libsfml-activity.so => libs/armeabi-v7a/libsfml-activity.so"
process_begin: CreateProcess(NULL, C:/MobileDev/AndroidDev/android-ndk-r11c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded ./libs/armeabi-v7a/libsfml-activity.so, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [libs/armeabi-v7a/libsfml-activity.so] Error 2
make: *** Deleting file `libs/armeabi-v7a/libsfml-activity.so'
I haven't been able to look into much this evening so it may be something very simple.
EDIT: I changed the folder in NDK/source/sfml from lib to libs and now I get another error!
C:\MobileDev\SFML\examples\android>ndk-build
[armeabi] "Compile++ thumb": "sfml-example <= main.cpp"
process_begin: CreateProcess(NULL, C:/MobileDev/AndroidDev/android-ndk-r11c/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-g++ -MMD -MP -MF ./obj/local/armeabi/objs/sfml-example/main.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -fno-exceptions -fno-rtti -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -IC:/MobileDev/AndroidDev/android-ndk-r11c/build//../sources/cxx-stl/stlport/stlport -IC:/MobileDev/AndroidDev/android-ndk-r11c/build//../sources/cxx-stl//gabi++/include -Ijni -DANDROID -Wa,--noexecstack -Wformat -Werror=format-security -frtti -isystem C:/MobileDev/AndroidDev/android-ndk-r11c/build//../platforms/android-9/arch-arm/usr/include -c jni/main.cpp -o ./obj/local/armeabi/objs/sfml-example/main.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [obj/local/armeabi/objs/sfml-example/main.o] Error 2