[英]xcode 6.x arm64 code build failed without any compile or link error
[英]xcode 5 compile for arm64 iPhone failed
我現在正在使用xcode 5為iPhone構建一個C ++庫。當我構建“ armv7”,“ armv7s”和“ i386”體系結構時,一切都很好。 但是,當我要構建“ arm64”的體系結構時,我有:
C++ Compiler: CMAKE_CXX_COMPILER-NOTFOUND (ver 5.1.0)
似乎找不到c ++編譯器。 順便說一句,我現在正在使用cmake工具鏈來構建庫,並且更詳細的錯誤消息如下:
-- Setting up iPhoneOS toolchain
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is Clang 5.1.0
-- The C compiler identification is Clang 5.1.0
CMAKE_LIBRARY_PATH=/lib;/usr/lib
-- Looking for linux/videodev.h
CMake Error at /Applications/CMake 2.8-11.app/Contents/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
CMake Error at /Applications/CMake 2.8-11.app/Contents/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
有任何想法嗎? 謝謝。
您如何設置目標架構? 如果在CMAKE_CXX_FLAGS中指定它們,請嘗試改用CMAKE_OSX_ARCHITECTURES。
有什么理由不使用Xcode 6和CMake 3+?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.