Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile for arm64 iOS #5843

Open
kelteseth opened this issue Oct 12, 2023 · 8 comments
Open

Unable to compile for arm64 iOS #5843

kelteseth opened this issue Oct 12, 2023 · 8 comments
Labels

Comments

@kelteseth
Copy link

kelteseth commented Oct 12, 2023

[1/2] "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" -E chdir ".." "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" "/Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/src/pcl-1.13.1-38090574eb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/eliassteurer/Code/Cpp/vcpkg/packages/pcl_arm64-ios" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCL_ALLOW_BOTH_SHARED_AND_STATIC_DEPENDENCIES=ON" "-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=0" "-DPCL_SHARED_LIBS=0" "-DPCL_ENABLE_MARCHNATIVE=OFF" "-DWITH_DAVIDSDK=OFF" "-DWITH_DOCS=OFF" "-DWITH_DSSDK=OFF" "-DWITH_ENSENSO=OFF" "-DWITH_OPENMP=OFF" "-DWITH_OPENNI=OFF" "-DWITH_PNG=ON" "-DWITH_QHULL=ON" "-DWITH_RSSDK=OFF" "-DWITH_RSSDK2=OFF" "-DBUILD_apps=OFF" "-DWITH_CUDA=OFF" "-DBUILD_CUDA=OFF" "-DBUILD_GPU=OFF" "-DBUILD_examples=OFF" "-DWITH_LIBUSB=OFF" "-DWITH_OPENGL=OFF" "-DWITH_OPENNI2=OFF" "-DWITH_PCAP=OFF" "-DWITH_QT=OFF" "-DBUILD_simulation=OFF" "-DBUILD_surface_on_nurbs=OFF" "-DBUILD_tools=OFF" "-DWITH_VTK=OFF" "-DBUILD_visualization=OFF" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=iOS" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/toolchains/ios.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-ios" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/eliassteurer/Code/Cpp/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/eliassteurer/Code/Cpp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF"
FAILED: ../CMakeCache.txt 
"/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" -E chdir ".." "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" "/Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/src/pcl-1.13.1-38090574eb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_INSTALL_PREFIX=/Users/eliassteurer/Code/Cpp/vcpkg/packages/pcl_arm64-ios" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCL_ALLOW_BOTH_SHARED_AND_STATIC_DEPENDENCIES=ON" "-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=0" "-DPCL_SHARED_LIBS=0" "-DPCL_ENABLE_MARCHNATIVE=OFF" "-DWITH_DAVIDSDK=OFF" "-DWITH_DOCS=OFF" "-DWITH_DSSDK=OFF" "-DWITH_ENSENSO=OFF" "-DWITH_OPENMP=OFF" "-DWITH_OPENNI=OFF" "-DWITH_PNG=ON" "-DWITH_QHULL=ON" "-DWITH_RSSDK=OFF" "-DWITH_RSSDK2=OFF" "-DBUILD_apps=OFF" "-DWITH_CUDA=OFF" "-DBUILD_CUDA=OFF" "-DBUILD_GPU=OFF" "-DBUILD_examples=OFF" "-DWITH_LIBUSB=OFF" "-DWITH_OPENGL=OFF" "-DWITH_OPENNI2=OFF" "-DWITH_PCAP=OFF" "-DWITH_QT=OFF" "-DBUILD_simulation=OFF" "-DBUILD_surface_on_nurbs=OFF" "-DBUILD_tools=OFF" "-DWITH_VTK=OFF" "-DBUILD_visualization=OFF" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=iOS" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/toolchains/ios.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-ios" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/eliassteurer/Code/Cpp/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/eliassteurer/Code/Cpp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF"
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Performing Test LIBATOMIC_NOT_NEEDED
-- Performing Test LIBATOMIC_NOT_NEEDED - Success
-- Could NOT find ClangFormat (missing: ClangFormat_EXECUTABLE ClangFormat_VERSION) (Required is at least version "14")
-- Performing Test HAVE_MM_MALLOC
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   HAVE_MM_MALLOC_EXITCODE (advanced)
For details see /Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/arm64-ios-rel/TryRunResults.cmake
-- Performing Test HAVE_MM_MALLOC - Failed
-- Performing Test HAVE_POSIX_MEMALIGN
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   HAVE_POSIX_MEMALIGN_EXITCODE (advanced)
For details see /Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/arm64-ios-rel/TryRunResults.cmake
-- Performing Test HAVE_POSIX_MEMALIGN - Failed
-- Performing Test HAVE_SSE4_2_EXTENSIONS
-- Performing Test HAVE_SSE4_2_EXTENSIONS - Failed
-- Performing Test HAVE_SSE4_1_EXTENSIONS
-- Performing Test HAVE_SSE4_1_EXTENSIONS - Failed
-- Performing Test HAVE_SSSE3_EXTENSIONS
-- Performing Test HAVE_SSSE3_EXTENSIONS - Failed
-- Performing Test HAVE_SSE3_EXTENSIONS
-- Performing Test HAVE_SSE3_EXTENSIONS - Failed
-- Performing Test HAVE_SSE2_EXTENSIONS
-- Performing Test HAVE_SSE2_EXTENSIONS - Failed
-- Performing Test HAVE_SSE_EXTENSIONS
-- Performing Test HAVE_SSE_EXTENSIONS - Failed
-- Not found OpenMP
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Checking for module 'eigen3'
--   Found eigen3, version 3.4.0
-- Found Eigen: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include/eigen3 (Required is at least version "3.3") 
-- Eigen found (include: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include/eigen3, version: 3.4.0)
-- Found flann version 1.9.1
-- Checking for module 'metslib'
--   No package 'metslib' found
-- Found ZLIB: optimized;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/lib/libz.a;debug;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/debug/lib/libz.a (found version "1.3.0")  
-- Found PNG: optimized;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/lib/libpng16.a;debug;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/debug/lib/libpng16d.a (found version "1.6.39") 
-- Found Qhull version 8.0.2
-- Found Boost: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include (found suitable version "1.83.0", minimum required is "1.65.0") found components: filesystem iostreams system regex 
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) 
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY) 
-- DOXYGEN_FOUND 
-- HTML_HELP_COMPILER 
-- PCL build with following flags:
-- -fPIC
-- The following subsystems will be built:
--   common
--   kdtree
--   octree
--   search
--   sample_consensus
--   filters
--   2d
--   geometry
--   io
--   features
--   ml
--   segmentation
--   surface
--   registration
--   keypoints
--   tracking
--   recognition
--   stereo
-- The following subsystems will not be built:
--   visualization: VTK was not found.
--   apps: Disabled by default
--   benchmarks: Disabled by default
--   outofcore: Disabled manually.
--   examples: Code examples are disabled by default.
--   people: Disabled manually.
--   simulation: Disabled by default.
--   global_tests: Disabled by default
--   tools: Disabled manually.
-- Configuring incomplete, errors occurred!
[2/2] "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" -E chdir "../../arm64-ios-dbg" "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" "/Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/src/pcl-1.13.1-38090574eb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/eliassteurer/Code/Cpp/vcpkg/packages/pcl_arm64-ios/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCL_ALLOW_BOTH_SHARED_AND_STATIC_DEPENDENCIES=ON" "-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=0" "-DPCL_SHARED_LIBS=0" "-DPCL_ENABLE_MARCHNATIVE=OFF" "-DWITH_DAVIDSDK=OFF" "-DWITH_DOCS=OFF" "-DWITH_DSSDK=OFF" "-DWITH_ENSENSO=OFF" "-DWITH_OPENMP=OFF" "-DWITH_OPENNI=OFF" "-DWITH_PNG=ON" "-DWITH_QHULL=ON" "-DWITH_RSSDK=OFF" "-DWITH_RSSDK2=OFF" "-DBUILD_apps=OFF" "-DWITH_CUDA=OFF" "-DBUILD_CUDA=OFF" "-DBUILD_GPU=OFF" "-DBUILD_examples=OFF" "-DWITH_LIBUSB=OFF" "-DWITH_OPENGL=OFF" "-DWITH_OPENNI2=OFF" "-DWITH_PCAP=OFF" "-DWITH_QT=OFF" "-DBUILD_simulation=OFF" "-DBUILD_surface_on_nurbs=OFF" "-DBUILD_tools=OFF" "-DWITH_VTK=OFF" "-DBUILD_visualization=OFF" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=iOS" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/toolchains/ios.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-ios" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/eliassteurer/Code/Cpp/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/eliassteurer/Code/Cpp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DBUILD_apps=OFF" "-DBUILD_examples=OFF" "-DBUILD_tools=OFF"
FAILED: ../../arm64-ios-dbg/CMakeCache.txt 
"/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" -E chdir "../../arm64-ios-dbg" "/opt/homebrew/Cellar/cmake/3.27.3/bin/cmake" "/Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/src/pcl-1.13.1-38090574eb.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=/Users/eliassteurer/Code/Cpp/vcpkg/packages/pcl_arm64-ios/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DPCL_ALLOW_BOTH_SHARED_AND_STATIC_DEPENDENCIES=ON" "-DPCL_BUILD_WITH_BOOST_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_FLANN_DYNAMIC_LINKING_WIN32=0" "-DPCL_BUILD_WITH_QHULL_DYNAMIC_LINKING_WIN32=0" "-DPCL_SHARED_LIBS=0" "-DPCL_ENABLE_MARCHNATIVE=OFF" "-DWITH_DAVIDSDK=OFF" "-DWITH_DOCS=OFF" "-DWITH_DSSDK=OFF" "-DWITH_ENSENSO=OFF" "-DWITH_OPENMP=OFF" "-DWITH_OPENNI=OFF" "-DWITH_PNG=ON" "-DWITH_QHULL=ON" "-DWITH_RSSDK=OFF" "-DWITH_RSSDK2=OFF" "-DBUILD_apps=OFF" "-DWITH_CUDA=OFF" "-DBUILD_CUDA=OFF" "-DBUILD_GPU=OFF" "-DBUILD_examples=OFF" "-DWITH_LIBUSB=OFF" "-DWITH_OPENGL=OFF" "-DWITH_OPENNI2=OFF" "-DWITH_PCAP=OFF" "-DWITH_QT=OFF" "-DBUILD_simulation=OFF" "-DBUILD_surface_on_nurbs=OFF" "-DBUILD_tools=OFF" "-DWITH_VTK=OFF" "-DBUILD_visualization=OFF" "-DCMAKE_MAKE_PROGRAM=/opt/homebrew/bin/ninja" "-DCMAKE_SYSTEM_NAME=iOS" "-DBUILD_SHARED_LIBS=OFF" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/toolchains/ios.cmake" "-DVCPKG_TARGET_TRIPLET=arm64-ios" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=external" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=/Users/eliassteurer/Code/Cpp/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=arm64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=/Users/eliassteurer/Code/Cpp/vcpkg" "-D_VCPKG_INSTALLED_DIR=/Users/eliassteurer/Code/Cpp/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF" "-DBUILD_apps=OFF" "-DBUILD_examples=OFF" "-DBUILD_tools=OFF"
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Performing Test LIBATOMIC_NOT_NEEDED
-- Performing Test LIBATOMIC_NOT_NEEDED - Success
-- Could NOT find ClangFormat (missing: ClangFormat_EXECUTABLE ClangFormat_VERSION) (Required is at least version "14")
-- Performing Test HAVE_MM_MALLOC
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   HAVE_MM_MALLOC_EXITCODE (advanced)
For details see /Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/arm64-ios-dbg/TryRunResults.cmake
-- Performing Test HAVE_MM_MALLOC - Failed
-- Performing Test HAVE_POSIX_MEMALIGN
CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
   HAVE_POSIX_MEMALIGN_EXITCODE (advanced)
For details see /Users/eliassteurer/Code/Cpp/vcpkg/buildtrees/pcl/arm64-ios-dbg/TryRunResults.cmake
-- Performing Test HAVE_POSIX_MEMALIGN - Failed
-- Performing Test HAVE_SSE4_2_EXTENSIONS
-- Performing Test HAVE_SSE4_2_EXTENSIONS - Failed
-- Performing Test HAVE_SSE4_1_EXTENSIONS
-- Performing Test HAVE_SSE4_1_EXTENSIONS - Failed
-- Performing Test HAVE_SSSE3_EXTENSIONS
-- Performing Test HAVE_SSSE3_EXTENSIONS - Failed
-- Performing Test HAVE_SSE3_EXTENSIONS
-- Performing Test HAVE_SSE3_EXTENSIONS - Failed
-- Performing Test HAVE_SSE2_EXTENSIONS
-- Performing Test HAVE_SSE2_EXTENSIONS - Failed
-- Performing Test HAVE_SSE_EXTENSIONS
-- Performing Test HAVE_SSE_EXTENSIONS - Failed
-- Not found OpenMP
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Checking for module 'eigen3'
--   Found eigen3, version 3.4.0
-- Found Eigen: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include/eigen3 (Required is at least version "3.3") 
-- Eigen found (include: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include/eigen3, version: 3.4.0)
-- Found flann version 1.9.1
-- Checking for module 'metslib'
--   No package 'metslib' found
-- Found ZLIB: optimized;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/lib/libz.a;debug;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/debug/lib/libz.a (found version "1.3.0")  
-- Found PNG: optimized;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/lib/libpng16.a;debug;/Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/debug/lib/libpng16d.a (found version "1.6.39") 
-- Found Qhull version 8.0.2
-- Found Boost: /Users/eliassteurer/Code/Cpp/vcpkg/installed/arm64-ios/include (found suitable version "1.83.0", minimum required is "1.65.0") found components: filesystem iostreams system regex 
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) 
-- Could NOT find GLEW (missing: GLEW_INCLUDE_DIR GLEW_LIBRARY) 
-- DOXYGEN_FOUND 
-- HTML_HELP_COMPILER 
-- PCL build with following flags:
-- -fPIC
-- The following subsystems will be built:
--   common
--   kdtree
--   octree
--   search
--   sample_consensus
--   filters
--   2d
--   geometry
--   io
--   features
--   ml
--   segmentation
--   surface
--   registration
--   keypoints
--   tracking
--   recognition
--   stereo
-- The following subsystems will not be built:
--   visualization: VTK was not found.
--   apps: Disabled by default
--   benchmarks: Disabled by default
--   outofcore: Disabled manually.
--   examples: Code examples are disabled by default.
--   people: Disabled manually.
--   simulation: Disabled by default.
--   global_tests: Disabled by default
--   tools: Disabled manually.
-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.

Context
Compile for iPad

To Reproduce

./vcpkg install  pcl --triplet=arm64-ios --allow-unsupported

I guess it has something to with:

CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
  HAVE_MM_MALLOC_EXITCODE (advanced)

Your Environment (please complete the following information):

  • OS: Mac m1 13.5.1
  • Compiler: Apple Clang latest
  • PCL Version 1.13.1
@kelteseth kelteseth added kind: bug Type of issue status: triage Labels incomplete labels Oct 12, 2023
@mvieth
Copy link
Member

mvieth commented Oct 13, 2023

As a workaround, you can try adding -DPCL_ENABLE_SSE=OFF here: https://github.com/microsoft/vcpkg/blob/1c5cac4b68933f25cdd953b7e2697d13d91ebda6/ports/pcl/portfile.cmake#L52

@mvieth mvieth added module: cmake and removed status: triage Labels incomplete labels Oct 13, 2023
@kelteseth
Copy link
Author

It works now, thanks 👍🎉 Maybe we should add SSE as an option that can be turned off in vcpkg...

@mvieth
Copy link
Member

mvieth commented Oct 14, 2023

It works now, thanks 👍🎉 Maybe we should add SSE as an option that can be turned off in vcpkg...

Sure, that wouldn't hurt. But we should also check the code in PCL (in https://github.com/PointCloudLibrary/pcl/blob/master/cmake/pcl_find_sse.cmake), whether check_cxx_source_runs is the correct thing to do (it calls try_run which gave the error message), or whether for example check_cxx_source_compiles would work, too.

@11janson
Copy link

11janson commented Dec 1, 2023

Hi,did you compile PCL on ios for iPad successfully?
I have the same problem, waitting for your reply. Thanks

@kelteseth
Copy link
Author

Hi,did you compile PCL on ios for iPad successfully? I have the same problem, waitting for your reply. Thanks

This worked for me #5843 (comment)

@11janson
Copy link

11janson commented Dec 7, 2023

It works now, thanks 👍🎉 Maybe we should add SSE as an option that can be turned off in vcpkg...

@kelteseth @mvieth
Hi, I run with the same code, ./vcpkg install pcl --triplet=arm64-ios --allow-unsupported, but get a error:building bzip2:arm64-ios failed with: BUILD_FAILED. Do you have the same problem?

image

@11janson
Copy link

11janson commented Dec 7, 2023

It works now, thanks 👍🎉 Maybe we should add SSE as an option that can be turned off in vcpkg...

@kelteseth @mvieth Hi, I run with the same code, ./vcpkg install pcl --triplet=arm64-ios --allow-unsupported, but get a error:building bzip2:arm64-ios failed with: BUILD_FAILED. Do you have the same problem?

image


I fix this bug. must install pkg-config first on the macOS.

@11janson
Copy link

11janson commented Dec 7, 2023

I compile pcl for arm64 iOS successfully, Thank you.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants