1
General / 64bit make in Android fails
« on: November 08, 2015, 02:13:09 pm »
Hi,
I recently tried to make sfml for armeabi in android, following the tutorial at https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android. It works without any issue and same goes for 32 bit architectures such as armeabi-v7a, x86, mips etc.
But once I try a 64bit platform such as arm64-v8a, mips64 or x86_64, an error is thrown. It's got something to do with missing JPEG LIBRARY. Could anyone take a look at it?
This is the content of CMakeOutput.log
What could be the issue? The page lists 'other valid targets' as: armeabi-v7a, mips, and x86.
Is there some extra configuration to be done for 64bit architectures?
[EDIT]
Looking at https://github.com/SFML/SFML/tree/master/extlibs/libs-android, there are only 32bit architectures. How can I build it for the 64bit architectures?
I recently tried to make sfml for armeabi in android, following the tutorial at https://github.com/SFML/SFML/wiki/Tutorial%3A-Building-SFML-for-Android. It works without any issue and same goes for 32 bit architectures such as armeabi-v7a, x86, mips etc.
But once I try a 64bit platform such as arm64-v8a, mips64 or x86_64, an error is thrown. It's got something to do with missing JPEG LIBRARY. Could anyone take a look at it?
Quote
cmake -DANDROID_ABI=x86_64 -DCMAKE_TOOLCHAIN_FILE=../../cmake/toolchains/android.toolchain.cmake ../..
-- Adjusting Android API level 'android-9' to 'android-21'
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find JPEG (missing: JPEG_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindJPEG.cmake:31 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/toolchains/android.toolchain.cmake:1565 (find_package)
src/SFML/Graphics/CMakeLists.txt:119 (find_host_package)
-- Configuring incomplete, errors occurred!
See also "/home/suhairzain/Downloads/SFML-2.3.2/build/x86_64/CMakeFiles/CMakeOutput.log".
This is the content of CMakeOutput.log
Quote
The target system is: Linux - 1 - x86_64
The host system is: Linux - 3.19.0-32-generic - x86_64
What could be the issue? The page lists 'other valid targets' as: armeabi-v7a, mips, and x86.
Quote
You can repeat the following steps for all available architectures. Unfortunately, you can't build all targets for SFML at once. The following lines create a armeabi build. If you'd like to build for any other target, just replace all occurences. Other valid targets would be armeabi-v7a, mips, and x86.
Is there some extra configuration to be done for 64bit architectures?
[EDIT]
Looking at https://github.com/SFML/SFML/tree/master/extlibs/libs-android, there are only 32bit architectures. How can I build it for the 64bit architectures?