Bug in CMake for Android NDK tools
Rm Beer <[email protected]> Wed, 9 Jan 2019 02:59:59 -0300
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <CAA0fXPvxT3aMtBeSvnvx2s4d0=U+AP4us7Hoedtqt=dKKTrBcw@mail.gmail.com> |
Main SO: Archlinux
Android NDK: r19
toolchain: API 21
$ cmake -DCMAKE_TOOLCHAIN_FILE=${ALLEGRO5}/Allegro5/cmake/Toolchain-android.cmake
-DANDROID_TARGET=android-15 -DARM_TARGETS=armeabi-v7a ..
-DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=${ALLEGRO5}/libpng
-DZLIB_LIBRARY=/opt/MV3/Android/android-toolchain-arm/user/armeabi-v7a/lib/libz.so
-DZLIB_INCLUDE_DIR=/opt/MV3/Android/android-toolchain-arm/user/armeabi-v7a/include/
-Wno-dev
-- Selected Android NDK toolchain: /opt/MV3/Android/android-toolchain-arm
-- Selected Android NDK toolchain: /opt/MV3/Android/android-toolchain-arm
-- The C compiler identification is Clang 8.0.2
-- The ASM compiler identification is Clang
-- Found assembler:
/opt/MV3/Android/android-toolchain-arm/bin/arm-linux-androideabi-clang
-- Check for working C compiler:
/opt/MV3/Android/android-toolchain-arm/bin/arm-linux-androideabi-clang
-- Check for working C compiler:
/opt/MV3/Android/android-toolchain-arm/bin/arm-linux-androideabi-clang
-- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: /opt/MV3/Android/android-toolchain-arm/user/armeabi-v7a/lib/libz.so
(found version "1.2.11")
-- Performing Test HAVE_LD_VERSION_SCRIPT
-- Performing Test HAVE_LD_VERSION_SCRIPT - Success
clang80: warning: argument unused during compilation: '-stdlib=libc++'
[-Wunused-command-line-argument]
-- Symbol prefix:
CMake Error: The following variables are used in this project, but
they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
M_LIBRARY
linked by target "png_static" in directory ${ALLEGRO5}/libpng-1.6.36
linked by target "png-fix-itxt" in directory ${ALLEGRO5}/libpng-1.6.36
linked by target "png" in directory ${ALLEGRO5}/libpng-1.6.36
-- Configuring incomplete, errors occurred!
See also "${ALLEGRO5}/libpng-1.6.36/Build/CMakeFiles/CMakeOutput.log".
See also "${ALLEGRO5}/libpng-1.6.36/Build/CMakeFiles/CMakeError.log".