[OSX 12.5.1][lidar view master 0c0e3271] omp.h not found error
Hi,
I am compiling lidarView with Slam support on OSX. My cmake command is:
cmake ../src/Superbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DENABLE_ceres=True -DENABLE_nanoflann=True -DENABLE_pcl=True -DLIDARVIEW_BUILD_SLAM=True
followed by:
cmake --build . -j
I get the following compilation error:
lidarview/build/install/include/eigen3/Eigen/Core:266:10: fatal error: 'omp.h' file not found #include <omp.h>
I can't seem to get much help online. Could you let me know how to fix this?
ps:
typing locate omp.h
on my machine yields this:
(base) chetan@Chetan-MBP build % locate omp.h
/Applications/Docker.app/Contents/Resources/snyk/docker/node-release/include/node/openssl/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/DriverKit.platform/Developer/SDKs/DriverKit.sdk/System/DriverKit/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/OSAComp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/netinet6/ipcomp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/regcomp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/regcomp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet6/ipcomp.h
/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/c++/v1/__algorithm/comp.h
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__algorithm/comp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/OSAComp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/netinet6/ipcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/regcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Perl/5.28/darwin-thread-multi-2level/CORE/regcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/regcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/netinet6/ipcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/OSAComp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/netinet6/ipcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/regcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/regcomp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__algorithm/comp.h
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/netinet6/ipcomp.h
/opt/anaconda3/envs/labelImg/include/c++/v1/__algorithm/comp.h
/opt/anaconda3/envs/labelImg/include/omp.h
/opt/anaconda3/envs/labelImg/include/openssl/comp.h
/opt/anaconda3/envs/labelImg/lib/clang/14.0.6/include/omp.h
/opt/anaconda3/envs/veloparser/include/c++/v1/__algorithm/comp.h
/opt/anaconda3/envs/veloparser/include/openssl/comp.h
/opt/anaconda3/include/omp.h
/opt/anaconda3/include/openssl/comp.h
/opt/anaconda3/lib/clang/12.0.0/include/omp.h
/opt/anaconda3/pkgs/libcxx-14.0.6-h9765a3e_0/include/c++/v1/__algorithm/comp.h
/opt/anaconda3/pkgs/llvm-openmp-12.0.0-h0dcd299_1/include/omp.h
/opt/anaconda3/pkgs/llvm-openmp-12.0.0-h0dcd299_1/lib/clang/12.0.0/include/omp.h
/opt/anaconda3/pkgs/llvm-openmp-14.0.6-h0dcd299_0/include/omp.h
/opt/anaconda3/pkgs/llvm-openmp-14.0.6-h0dcd299_0/lib/clang/14.0.6/include/omp.h
/opt/anaconda3/pkgs/openssl-1.1.1n-hca72f7f_0/include/openssl/comp.h
/opt/anaconda3/pkgs/openssl-1.1.1q-hca72f7f_0/include/openssl/comp.h
/usr/local/Cellar/boost/1.80.0/include/boost/intrusive/detail/key_nodeptr_comp.hpp
/usr/local/Cellar/gcc/12.2.0/lib/gcc/current/gcc/x86_64-apple-darwin21/12/include/omp.h
/usr/local/Cellar/libomp/14.0.6/include/omp.h
/usr/local/Cellar/libomp/15.0.3/include/omp.h
/usr/local/Cellar/openjpeg/2.5.0/share/doc/openjpeg-2.5/html/structopj__image__comp.html
/usr/local/Cellar/openjpeg/2.5.0/share/doc/openjpeg-2.5/html/structopj__jp2__cmap__comp.html
/usr/local/Cellar/openjpeg/2.5.0/share/doc/openjpeg-2.5/html/structopj__pi__comp.html
/usr/local/Cellar/openjpeg/2.5.0/share/doc/openjpeg-2.5/html/structopj__tcd__tilecomp.html
/usr/local/Cellar/openssl@1.1/1.1.1q/include/openssl/comp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/fpfh_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/impl/fpfh_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/impl/normal_3d_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/impl/shot_lrf_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/impl/shot_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/normal_3d_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/shot_lrf_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/features/shot_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/filters/fast_bilateral_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/filters/impl/fast_bilateral_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/tracking/impl/kld_adaptive_particle_filter_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/tracking/impl/particle_filter_omp.hpp
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/tracking/kld_adaptive_particle_filter_omp.h
/usr/local/Cellar/pcl/1.12.1_5/include/pcl-1.12/pcl/tracking/particle_filter_omp.h
/usr/local/include/omp.h
/usr/local/lib/python3.10/site-packages/torch/include/caffe2/core/common_omp.h
pps: if it helps, this is my cmake output:
CMake Error: Run 'cmake --help' for all supported options.
(base) chetan@Chetan-MBP build % cmake ../src/Superbuild -GNinja -DCMAKE_BUILD_TYPE=Release -DQt5_DIR=$(brew --prefix qt5)/lib/cmake/Qt5 -DENABLE_ceres=True -DENABLE_nanoflann=True -DENABLE_pcl=True -DLIDARVIEW_BUILD_SLAM=True
-- 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
-- Check size of void*
-- Check size of void* - done
-- Found Git: /usr/bin/git (found version "2.37.0 (Apple Git-136)")
-- Determined source version for paraview: 5.9.0
-- Enabling eigen for: ceres, lidarview, nanoflann, pcl
-- Enabling glog for: ceres
-- Enabling ceres as requested.
-- Enabling cxx11 as requested.
-- Enabling boost for: liblas, lidarview, pcl
-- Enabling bzip2 for: python3
-- Enabling zlib for: pcl, png, python3
-- Enabling png for: pcl, python3
-- Enabling ffi for: python3
-- Enabling sqlite for: python3
-- Enabling python3 for: lidarview, numpy, pythonbeniget, pythoncython, pythongast, pythonply, pythonpythran, pythonqt, pythonsetuptools
-- Enabling pythonsetuptools for: pythonbeniget, pythoncython, pythongast, pythonply, pythonpythran
-- Enabling pythongast for: pythonpythran
-- Enabling pythonbeniget for: pythonpythran
-- Enabling pythonply for: pythonpythran
-- Enabling pythonpythran for: pythoncython
-- Enabling pythoncython for: numpy
-- Enabling numpy for: lidarview
-- Enabling qt5 for: lidarview, pythonqt
-- Enabling liblas for: lidarview
-- Enabling paraview as requested.
-- Enabling pcap for: lidarview
-- Enabling yaml for: lidarview
-- Enabling pythonqt for: lidarview
-- Enabling flann for: pcl
-- Enabling qhull for: pcl
-- Enabling pcl as requested.
-- Enabling nanoflann as requested.
-- Enabling lidarview as requested.
-- Building projects: eigen, glog, ceres, cxx11, boost, bzip2, zlib, png, ffi, sqlite, python3, pythonsetuptools, pythongast, pythonbeniget, pythonply, pythonpythran, pythoncython, numpy, qt5, liblas, paraview, pcap, yaml, pythonqt, flann, qhull, pcl, nanoflann, lidarview
-- Found BZip2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/lib/libbz2.tbd (found version "1.0.8")
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
CMake Warning (dev) at lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:213 (message):
Optional dependencies for paraview not found: adios2, cuda, gdal, hdf5,
matplotlib, mpi, protobuf, visitbridge, silo, lookingglass, fides, xdmf3,
vrpn, vtkm, netcdf, openpmd, nlohmannjson, paraviewgettingstartedguide,
paraviewtutorialdata, paraviewweb, ffmpeg, mili, gmsh, genericio,
cosmotools
Call Stack (most recent call first):
lidarview-superbuild/Projects/paraview.cmake:134 (superbuild_add_project)
lidarview-superbuild/common-superbuild/cmake/SuperbuildMacros.cmake:1061 (include)
lidarview-superbuild/common-superbuild/CMakeLists.txt:170 (superbuild_process_dependencies)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/chetan/Documents/projects/lidarview/build
(base) chetan@Chetan-MBP build %
Edited by chetan