![]() Gmake: *** Error 2ĬMake will not be able to correctly generate this project. If you want to install the Android NDK on your Linux development machine, you can do so using a few simple steps. opt/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/./lib/gcc/arm-linux-androideabi/4.8/././././arm-linux-androideabi/bin/ld:Įrror: cannot open crtbegin_dynamic.o: No such file or directoryĮrror: cannot open crtend_android.o: No such file or directoryĬollect2: error: ld returned 1 exit status Linking C executable cmTr圜ompileExec379796592ĬMakeFiles/cmTr圜ompileExec379796592.dir/link.txt -verbose=1ĬMakeFiles/cmTr圜ompileExec379796592.dir/testCCompiler.c.o -o home/steve/mobile_progs/linux_pjsip/build/debug/CMakeFiles/CMakeTmp/testCCompiler.c o CMakeFiles/cmTr圜ompileExec379796592.dir/testCCompiler.c.o -c opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc home/steve/mobile_progs/linux_pjsip/build/debug/CMakeFiles/CMakeTmp/CMakeFilesĬMakeFiles/cmTr圜ompileExec379796592.dir/testCCompiler.c.o `/home/steve/mobile_progs/linux_pjsip/build/debug/CMakeFiles/CMakeTmp' usr/bin/gmake -f CMakeFiles/cmTr圜ompileExec379796592.dir/build.makeĬMakeFiles/cmTr圜ompileExec379796592.dir/build Run Build Command:/usr/bin/gmake "cmTr圜ompileExec379796592/fast" Is not able to compile a simple test program.Ĭhange Dir: /home/steve/mobile_progs/linux_pjsip/build/debug/CMakeFiles/CMakeTmp "/opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc" Check for working C compiler: /opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc - brokenĬMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message): Check for working C compiler: /opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc Output - The C compiler identification is GNU 4.8.0 debug]$ cmake -DCMAKE_TOOLCHAIN_FILE=arm-eabi-gcc.cmake. I run this from my build/debug directory with my toolchain being in the root directory. Set(CMAKE_FIND_ROOT_PATH /opt/ndk/toolchains) Set(CMAKE_C_COMPILER /opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc) My cross-compile file is: include(CMakeForceCompiler) I have installed the android-ndk-r9 in the following location with the path to the compiler: /opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin The only reason I can see for creating and releasing an ARM NDK is if ARM development platforms became more popular than x8664. I am trying to create a toolchain file using cmake to croos-compile to run libraries on an android device. Because of that, the developers of the NDK can focus all the tools on running on x8664, and cross compile with them for whatever architecture is required by the target device. However, this is my first time do this type of thing, so many I have got something mixed up. I have also installed binutils-arm-linux-gnu. ![]() I am not sure why I am getting this error, as everything has been installed. I get the following error: Check for working C compiler: /opt/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc - broken My host machine is Fedora 19 and I want to create a tool-chain for compiling programs to run on android, later I want to extend this for iOS.
0 Comments
Leave a Reply. |