![]() I tried the recent 3.0.1 update, and encountered an issue I can't fix.įor some part of my code, I use CMake to create XCTest targets with your toolchain using XCode generator. Configuring incomplete, errors occurred! You probably need to select a different build tool.ĬMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage usr/local/Cellar/cmake/3.11.3/share/cmake/Modules/CMakeDetermineSystem.cmake:94 (include)ĬMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". Invalid CMAKE_OSX_SYSROOT: does not exist. ![]() Configuring iOS build for platform: SIMULATOR64, architecture(s): x86_64ĬMake Error at. avs-device-sdk -DIOS_DEPLOYMENT_TARGET=10.0 -DCMAKE_TOOLCHAIN_FILE=./ios-cmake/ -DIOS_PLATFORM=OS -DGSTREAMER_MEDIA_PLAYER=OFF -DCURL_LIBRARY=./Build-OpenSSL-cURL/archive/libcurl-7.54.1-openssl-1.0.2l-nghttp2-1.24.0/libcurl_iOS.a -DCURL_INCLUDE_DIR=./Build-OpenSSL-cURL/curl/curl-7.55.1/include -DGTEST_LIBRARY=./googletest_build/googlemock/libgmock.a -DGTEST_MAIN_LIBRARY=./googletest_build/googlemock/libgmock_main.a -DGTEST_INCLUDE_DIR=./googletest/googletest/include/ -DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config googletest -DIOS_DEPLOYMENT_TARGET=10.0 -DCMAKE_TOOLCHAIN_FILE=./ios-cmake/ -DIOS_PLATFORM=OSĬmake. There is an error occur when i build the google test and avs-device-sdkĬmake. MSNexploder for adding OS64 and arm64e support.More information on how to combine libraries with LIPO is readily available on the net. To combine all platforms into the same FAT-library, either build any of the " COMBINED" platform types OR use the LIPO tool. By default it will build for all valid architectures based on -DPLATFORM (see above) DENABLE_STRICT_TRY_COMPILE=(BOOL) - Disabled by default, specify TRUE or 1 to enable strict compiler checks (will run linker on all compiler checks whenever needed) DENABLE_VISIBILITY=(BOOL) - Disabled by default, specify TRUE or 1 to enable symbol visibility support DENABLE_ARC=(BOOL) - Enabled by default, specify FALSE or 0 to disable ARC DENABLE_BITCODE=(BOOL) - Enabled by default, specify FALSE or 0 to disable bitcode ![]() XCODE_VERSION - Version number (not including Build version) of Xcode detected.ĬMAKE_OSX_ARCHITECTURES - Architectures being compiled for (generated from PLATFORM).ĪPPLE_TARGET_TRIPLE - Used by autoconf build systems. NOTE: The COMBINED options ONLY work with the Xcode generator (-G Xcode) on CMake versions 3.14+! G Xcode -DCMAKE_TOOLCHAIN_FILE=././ -DPLATFORM=OS64COMBINED NOTE: Change the -DPLATFORM to an applicable value if targeting another platform.Ĭmake. MAC_CATALYST_ARM64 - to build iOS for Mac on Apple Silicon (Catalyst, arm64).MAC_CATALYST - to build iOS for Mac (Catalyst, x86_64).MAC_ARM64 - to build for macOS on Apple Silicon (arm64).SIMULATOR_WATCHOS - to build for watchOS Simulator (i386).WATCHOSCOMBINED - to build for watchOS & Simulator (armv7k, arm64_32, i386).WATCHOS - to build for watchOS (armv7k, arm64_32).SIMULATOR_TVOS - to build for tvOS Simulator (x86_64).TVOSCOMBINED - to build for tvOS & tvOS Simulator (arm64, x86_64).SIMULATORARM64 - to build for iOS simulator 64 bit (arm64). ![]() SIMULATOR64 - to build for iOS simulator 64 bit (x86_64).SIMULATOR - to build for iOS simulator 32 bit (i386) DEPRECATED.OS64COMBINED - to build for iOS & iOS Simulator (FAT lib) (arm64, x86_64).OS - to build for iOS (armv7, armv7s, arm64) DEPRECATED in favour of OS64.macOS support and experimental Apple Silicon support.Experimental Catalyst support (iOS on macOS).Why?īeing able to do the former would simplify the toolchain (as long as it also adds them to the rpath).A CMake toolchain file for iOS (+ Catalyst), watchOS, tvOS and macOS development with full simulator support and toggleable options! NEW! The directories simply aren’t added to the final linking command. Set(SDK "" CACHE STRING "Path to the SDK") Set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu") Toolchain file set(CMAKE_SYSTEM_NAME "Linux") What would be the correct way to get CMake to add /usr/lib/aarch64-linux-gnu as a link directory on the command line? Unfortunately this results in cannot find -lglib-2.0 despite the ARM64 variants existing under /usr/lib/aarch64-linux-gnu. I find some libraries using PkgConfig in the actual application and in the final linking command they’re linked like -lglib-2.0. I’m creating a toolchain for cross-compiling on 圆4 for an ARM64 device.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |