Re: Bug in CMake for Android NDK tools
Kyle Bentley <[email protected]> Mon, 14 Jan 2019 04:31:55 +0000
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <214F9843058F8A3E.bc255083-c6e7-4b68-8bf3-eff3ab504cf1@mail.outlook.com> |
The CMake error is telling you that the project needs M_LIBRARY, but that it cannot be found. I believe that either libpng uses math functions that are in libm. Even though you are not using it explicitly, it is still required. I see that you are using Arch Linux, try installing libm and the libm development packages. If that doesn't help, try to find the libm library, and set it explicitly just like you did with ZLIB. Kyle Get Outlook for Android<https://aka.ms/ghei36> From: Rm Beer Sent: Sunday, January 13, 12:15 AM Subject: Re: [png-mng-implement] Bug in CMake for Android NDK tools To: PNG/MNG implementation discussion list no, I do not have and I do not use libm. With ZLIB it does not seem to have problems. 2019-01-09 11:26 GMT-03:00, Kyle Bentley : > Just for confirmation, you do have libm installed, correct? And if you do, > and specify it manually like you have for ZLIB_LIBRARY, does it work as > expected? > > Kyle > ________________________________________ > From: Rm Beer [[email protected]] > Sent: Tuesday, January 08, 2019 11:59 PM > To: [email protected] > Subject: [png-mng-implement] Bug in CMake for Android NDK tools > > 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". > > > _______________________________________________ > png-mng-implement mailing list > png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/png-mng-implement > This e-mail including any attachments may contain information that is > privileged, confidential, and/or otherwise protected from disclosure to > anyone other than its intended recipient(s). Any dissemination or use of > this e-mail or its attachments by persons other than the intended > recipient(s) is prohibited. If you received this message in error, please > contact the sender immediately. Please then delete the e-mail and any > attachments in its entirety. > > > _______________________________________________ > png-mng-implement mailing list > png-mng-implement-5NWGOfrQmneHXe+LvDLADg@public.gmane.orgrceforge.net > https://lists.sourceforge.net/lists/listinfo/png-mng-implement > _______________________________________________ png-mng-implement mailing list png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/png-mng-implement This e-mail including any attachments may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this e-mail or its attachments by persons other than the intended recipient(s) is prohibited. If you received this message in error, please contact the sender immediately. Please then delete the e-mail and any attachments in its entirety. _______________________________________________ png-mng-implement mailing list png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/png-mng-implement