pcl icon indicating copy to clipboard operation
pcl copied to clipboard

Unable to compile for arm64 iOS

Open kelteseth opened this issue 2 years ago • 8 comments
trafficstars

[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 avatar Oct 12 '23 09:10 kelteseth

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 avatar Oct 13 '23 08:10 mvieth

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

kelteseth avatar Oct 13 '23 09:10 kelteseth

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.

mvieth avatar Oct 14 '23 15:10 mvieth

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

11janson avatar Dec 01 '23 07:12 11janson

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

This worked for me https://github.com/PointCloudLibrary/pcl/issues/5843#issuecomment-1761154905

kelteseth avatar Dec 01 '23 09:12 kelteseth

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 avatar Dec 07 '23 08:12 11janson

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 avatar Dec 07 '23 08:12 11janson

I compile pcl for arm64 iOS successfully, Thank you.

image

image

11janson avatar Dec 07 '23 09:12 11janson