yishengzhile 发表于 2014-3-16 16:55:09

windows下ndk编译jthread和jrtplib

操作系统:windows 7

需要软件:

1 android-ndk-r8b

2 msys

3 cmake 2.8.9
在编译jthread的时候出现如下错误

$ ./jthread.sh
-- The C compiler identification is GNU 4.4.3
-- The CXX compiler identification is GNU 4.4.3
-- Check for working C compiler: /cygdrive/d/ndk_cyg/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc.exe
-- Check for working C compiler: /cygdrive/d/ndk_cyg/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc.exe -- broken
CMake Error at /usr/share/cmake-2.8.9/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler
"/cygdrive/d/ndk_cyg/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc.exe"
is not able to compile a simple test program.

It fails with the following output:

   Change Dir: /home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp



Run Build Command:/usr/bin/make.exe "cmTryCompileExec3570986615/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec3570986615.dir/build.make
CMakeFiles/cmTryCompileExec3570986615.dir/build

make: Entering directory '/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp'

/usr/bin/cmake.exe -E cmake_progress_report
/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp/CMakeFiles 1

Building C object
CMakeFiles/cmTryCompileExec3570986615.dir/testCCompiler.c.obj


/cygdrive/d/ndk_cyg/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-gcc.exe
--sysroot=/cygdrive/d/ndk_cyg/android-ndk-r8b/platforms/android-8/arch-arm
-o CMakeFiles/cmTryCompileExec3570986615.dir/testCCompiler.c.obj -c
/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp/testCCompiler.c

arm-linux-androideabi-gcc.exe:
/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp/testCCompiler.c: No such file
or directory

arm-linux-androideabi-gcc.exe: no input files

CMakeFiles/cmTryCompileExec3570986615.dir/build.make:60: recipe for target
'CMakeFiles/cmTryCompileExec3570986615.dir/testCCompiler.c.obj' failed

make: Leaving directory '/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp'

make: ***
Error 1

Makefile:117: recipe for target 'cmTryCompileExec3570986615/fast' failed

make: *** Error 2





CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
process_begin: CreateProcess(NULL, /usr/bin/cmake -H/home/sfj/rtp/jthread-1.3.1 -B/home/sfj/rtp/jthread-1.3.1 --check-build-system CMakeFiles/Makefile.cmake 0, ...) failed.
make (e=2): ϵͳ▒Ҳ▒▒▒ָ▒▒▒▒▒ļ▒▒▒
make: *** Error 2
这是什么原因导致的呢?

页: [1]
查看完整版本: windows下ndk编译jthread和jrtplib