ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 5695|回复: 0

windows下ndk编译jthread和jrtplib

[复制链接]
发表于 2014-3-16 16:55:09 | 显示全部楼层 |阅读模式
操作系统: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[1]: 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[1]: Leaving directory '/home/sfj/jthread-1.3.1/CMakeFiles/CMakeTmp'

  make[1]: ***
  [CMakeFiles/cmTryCompileExec3570986615.dir/testCCompiler.c.obj] Error 1

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

  make: *** [cmTryCompileExec3570986615/fast] 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: *** [cmake_check_build_system] Error 2
这是什么原因导致的呢?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-20 18:42 , Processed in 0.047141 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表