Toybrick

楼主: troy

Rock-X AI组件库1.2.0 SDK发布(C&&Python)

 

allforgot

注册会员

积分
64
楼主
发表于 2019-6-28 15:15:03 | 显示全部楼层
ubuntu1604 下编译 android 环境出现错误。

  1. ./build-android-rk3399pro-v8a.sh
  2. -- Android: Selected Clang toolchain 'aarch64-linux-android-clang' with GCC toolchain ''
  3. -- The C compiler identification is Clang 8.0.7
  4. -- The CXX compiler identification is Clang 8.0.7
  5. -- Check for working C compiler: /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
  6. -- Check for working C compiler: /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -- broken
  7. CMake Error at /usr/local/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
  8.   The C compiler

  9.     "/home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"

  10.   is not able to compile a simple test program.

  11.   It fails with the following output:

  12.     Change Dir: /home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp
  13.    
  14.     Run Build Command(s):/usr/bin/make cmTC_e0b16/fast && /usr/bin/make -f CMakeFiles/cmTC_e0b16.dir/build.make CMakeFiles/cmTC_e0b16.dir/build
  15.     make[1]: Entering directory '/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp'
  16.     Building C object CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o
  17.     /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android --gcc-toolchain=/home/allforgot/Downloads/android-ndk-r20/toolchains//prebuilt/linux-x86_64 --sysroot=/home/allforgot/Downloads/android-ndk-r20/sysroot  -isystem /home/allforgot/Downloads/android-ndk-r20/sysroot/usr/include -isystem /home/allforgot/Downloads/android-ndk-r20/sysroot/usr/include/aarch64-linux-android  -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=21 -fexceptions  -g -fPIE   -o CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o   -c /home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp/testCCompiler.c
  18.     Linking C executable cmTC_e0b16
  19.     /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e0b16.dir/link.txt --verbose=1
  20.     /home/allforgot/Downloads/android-ndk-r20/toolchains/llvm/prebuilt/linux-x86_64/bin/clang --target=aarch64-none-linux-android --gcc-toolchain=/home/allforgot/Downloads/android-ndk-r20/toolchains//prebuilt/linux-x86_64 --sysroot=/home/allforgot/Downloads/android-ndk-r20/platforms/android-21/arch-arm64 -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=21 -fexceptions  -g  -fPIE -pie -Wl,--gc-sections  CMakeFiles/cmTC_e0b16.dir/testCCompiler.c.o  -o cmTC_e0b16
  21.     /usr/bin/ld: unrecognised emulation mode: aarch64linux
  22.     Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu i386linux elf_l1om elf_k1om i386pep i386pe
  23.     clang: error: linker command failed with exit code 1 (use -v to see invocation)
  24.     CMakeFiles/cmTC_e0b16.dir/build.make:86: recipe for target 'cmTC_e0b16' failed
  25.     make[1]: *** [cmTC_e0b16] Error 1
  26.     make[1]: Leaving directory '/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeTmp'
  27.     Makefile:121: recipe for target 'cmTC_e0b16/fast' failed
  28.     make: *** [cmTC_e0b16/fast] Error 2
  29.    
  30.    

  31.   

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


  35. -- Configuring incomplete, errors occurred!
  36. See also "/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeOutput.log".
  37. See also "/home/allforgot/Documents/CompanyProject/BeiQi96Board/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/command_line_demo/build/build_rk3399pro_android_v8a/CMakeFiles/CMakeError.log".
复制代码
回复

使用道具 举报

allforgot

注册会员

积分
64
沙发
发表于 2019-6-28 17:20:34 | 显示全部楼层
DolbyYU 发表于 2019-6-28 16:20
编译器错误,看看readme,里面有详细介绍

编译通过了,但是运行时 Segmentation fault
  1. ./rockx_face_landmark face4.jpg 68                                             
  2. spec = local:transfer_proxy
  3. Segmentation fault
复制代码
回复

使用道具 举报

allforgot

注册会员

积分
64
板凳
发表于 2019-6-29 15:51:39 | 显示全部楼层
Android Studio 编译出现错误:

  1. Error configuring CMake server (E:\SoftwareInstallation\Android\Sdk\cmake\3.10.2.4988404\bin).


  2. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeSystem.cmake:


  3.   cmListFileCache: error can not open file.


  4. Call Stack (most recent call first):


  5.   CMakeLists.txt


  6. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake:


  7. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake


  8. CMake Error in .externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake:


  9. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake


  10. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe


  11.    Unknown extension ".c" for file
  12. Open File


  13.     G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeTmp/testCCompiler.c


  14.   try_compile() works only for enabled languages.  Currently these are:


  15.     C CXX


  16.   See project() command to enable other languages.


  17. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken


  18.    The C compiler
  19. Open File


  20.     "E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"


  21.   is not able to compile a simple test program.


  22.   It fails with the following output:


  23.   CMake will not be able to correctly generate this project.


  24. Configuring incomplete, errors occurred!


  25. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeOutput.log".


  26. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/CMakeError.log".


  27. Error configuring CMake server (E:\SoftwareInstallation\Android\Sdk\cmake\3.10.2.4988404\bin).


  28. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeSystem.cmake:


  29.   cmListFileCache: error can not open file.


  30. Call Stack (most recent call first):


  31.   CMakeLists.txt


  32. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake:


  33. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCCompiler.cmake


  34. CMake Error in .externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake:


  35. CMake Error: Could not find cmake module file: G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/3.10.2/CMakeCXXCompiler.cmake


  36. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe


  37.    Unknown extension ".c" for file
  38. Open File


  39.     G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeTmp/testCCompiler.c


  40.   try_compile() works only for enabled languages.  Currently these are:


  41.     C CXX


  42.   See project() command to enable other languages.


  43. Check for working C compiler: E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -- broken


  44.    The C compiler
  45. Open File


  46.     "E:/SoftwareInstallation/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe"


  47.   is not able to compile a simple test program.


  48.   It fails with the following output:


  49.   CMake will not be able to correctly generate this project.


  50. Configuring incomplete, errors occurred!


  51. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeOutput.log".


  52. See also "G:/CompanyProject/DevelopmentBoard/BeiQi96Boards/RK3399pro/RockX_SDK_V1.0.0_20190611/RockX_SDK_V1.0.0_20190611/demo/rk3399pro_android_demo/rockx-android-demo-face_attribute/rockx-android-demo-face_attribute/app/.externalNativeBuild/cmake/release/arm64-v8a/CMakeFiles/CMakeError.log".
复制代码
回复

使用道具 举报

allforgot

注册会员

积分
64
地板
发表于 2019-7-5 10:10:49 | 显示全部楼层
astree 发表于 2019-7-4 15:21
遇到相同的问题,请问有没有解决呢?

还没有解决
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


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