Skip to content

Instantly share code, notes, and snippets.

@tanersener
Created June 26, 2018 15:46
Show Gist options
  • Save tanersener/4cae1c1e1a18a29ea1e57e35472ba2e8 to your computer and use it in GitHub Desktop.
Save tanersener/4cae1c1e1a18a29ea1e57e35472ba2e8 to your computer and use it in GitHub Desktop.
Android cross-compile failure for ntirpc library from https://github.com/nfs-ganesha/ntirpc
# Building ntirpc https://github.com/nfs-ganesha/ntirpc/archive/v1.6.2.tar.gz
cmake
-Wno-dev
-DCMAKE_VERBOSE_MAKEFILE=0
-DCMAKE_C_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -std=c99 -Wno-unused-function -fstrict-aliasing -fPIC -DANDROID -D__ANDROID_API__=21
-DCMAKE_CXX_FLAGS=-std=c++11 -fno-exceptions -fno-rtti
-DCMAKE_EXE_LINKER_FLAGS=-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -lc -lm -ldl -llog
-DCMAKE_SYSROOT=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
-DCMAKE_FIND_ROOT_PATH=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/sysroot
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/Users/taner/Projects/mobile-ffmpeg/prebuilt/android-arm/ntirpc
-DCMAKE_SYSTEM_NAME=Generic
-DCMAKE_CXX_COMPILER=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-clang++
-DCMAKE_C_COMPILER=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-clang
-DCMAKE_LINKER=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-ld
-DCMAKE_AR=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-ar
-DCMAKE_AS=/Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-as
-DUSE_GSS=0
-DLIBRT=0
-DCMAKE_SYSTEM_PROCESSOR=arm
-DBUILD_SHARED_LIBS=0
..
-- The C compiler identification is Clang 6.0.2
-- Check for working C compiler: /Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-arm/bin/arm-linux-androideabi-clang
-- Check for working C compiler: /Users/taner/Library/Android/sdk/ndk-bundle/toolchains/mobile-ffmpeg-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
-- OVERRIDE_INSTALL_PREFIX =
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Looking for include file sys/epoll.h
-- Looking for include file sys/epoll.h - found
-- Looking for epoll_create
-- Looking for epoll_create - found
-- Found EPOLL: 1
-- Could NOT find NSL (missing: NSL_LIBRARY)
--
-- -------------------------------------------------------
-- TIRPC_EPOLL = TRUE
-- USE_RPC_RDMA = OFF
-- USE_GSS = 0
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:
NSL_LIBRARY (ADVANCED)
linked by target "ntirpc" in directory /Users/taner/Projects/mobile-ffmpeg/src/ntirpc/src
-- Configuring incomplete, errors occurred!
See also "/Users/taner/Projects/mobile-ffmpeg/src/ntirpc/build/CMakeFiles/CMakeOutput.log".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment