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

Not able to compile #82

Open
Prashant-Swift opened this issue Jul 14, 2023 · 0 comments
Open

Not able to compile #82

Prashant-Swift opened this issue Jul 14, 2023 · 0 comments

Comments

@Prashant-Swift
Copy link

I have follow the instruction given in doc

I am using Mac mini with M2 Pro chip

here is the log

I am not expert cmake and library building pls guide me

One more question does this will work in iOS apps ?

sudo cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./install
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- 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
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_policy):
The OLD behavior for policy CMP0076 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

-- Eigen3 root path: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/3rdparty/Eigen
-- STB root path: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/3rdparty/stb
-- The C 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
-- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND)
CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.26.4/share/cmake/Modules/ExternalProject.cmake:3091 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set. The policy's OLD behavior will be used. When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes. The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want. Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.26.4/share/cmake/Modules/ExternalProject.cmake:4208 (_ep_add_download_command)
tests/CMakeLists.txt:20 (ExternalProject_Add)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /opt/homebrew/Cellar/cmake/3.26.4/share/cmake/Modules/ExternalProject.cmake:3091 (message):
The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
not set. The policy's OLD behavior will be used. When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes. The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want. Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.26.4/share/cmake/Modules/ExternalProject.cmake:4208 (_ep_add_download_command)
tests/CMakeLists.txt:28 (ExternalProject_Add)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
-- Could NOT find OpenMP (missing: OpenMP_CXX_FOUND)
-- HAPPLY root path: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/3rdparty/happly
-- [Deps] Found std::filesystem for image loading
-- Found Git: /usr/bin/git (found version "2.37.1 (Apple Git-137.1)")
-- Found Doxygen: /opt/homebrew/bin/doxygen (found suitable version "1.9.7", minimum required is "1.8.0") found components: doxygen missing components: dot
-- [download 13% complete]
-- [download 100% complete]
-- [download 100% complete]
-- Configuring done (3.8s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build
(base) prashanttukadiya@Prashants-Mac-mini build % make install
Building CXX object apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o
error: unable to open output file 'CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o': 'Permission denied'
1 error generated.
make[2]: *** [apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o] Error 1
make[1]: *** [apps/io/CMakeFiles/opengr_apps_io.dir/all] Error 2
make: *** [all] Error 2
(base) prashanttukadiya@Prashants-Mac-mini build % sudo make install
[ 16%] Building CXX object apps/io/CMakeFiles/opengr_apps_io.dir/gr/io/io.cc.o
[ 33%] Linking CXX static library libopengr_apps_io.a
[ 33%] Built target opengr_apps_io
[ 33%] Built target opengr
[ 50%] Building CXX object apps/Super4PCS/CMakeFiles/Super4PCS.dir/super4pcs_test.cc.o
[ 66%] Linking CXX executable Super4PCS
[ 66%] Built target Super4PCS
[ 83%] Building CXX object apps/ExtPointBinding/CMakeFiles/ExtPointBinding.dir/external_point_binding_test.cc.o
[100%] Linking CXX executable ExtPointBinding
[100%] Built target ExtPointBinding
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/scripts/run-example.bat
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/scripts/run-example.sh
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/hippo1.obj
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/textured_cube2.png
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/hippo2.ply
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/hippo2.obj
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/hippo1.ply
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/textured_cube.mtl
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/textured_cube.obj
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/assets/textured_cube.png
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/bin/Super4PCS
[cctools-port]: generating fake signature for '/Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/bin/Super4PCS'
ldid.cpp(3332): _assert(): errno=2
ldid.cpp(3332): _assert(): errno=2
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/pcl
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/pcl/registration
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/pcl/registration/impl
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/pcl/registration/impl/super4pcs.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/pcl/registration/super4pcs.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/bin/ExtPointBinding
[cctools-port]: generating fake signature for '/Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/bin/ExtPointBinding'
ldid.cpp(3332): _assert(): errno=2
ldid.cpp(3332): _assert(): errno=2
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/doc
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/doc/html
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/doc/html/doxy-boot.js
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/doc/html/customdoxygen.css
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/doc/Doxyfile
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/lib/cmake/opengr/OpenGR-AlgoLibTargets.cmake
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/lib/cmake/opengr/OpenGR-AccelLibTargets.cmake
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/lib/cmake/opengr/OpenGR-UtilsLibTargets.cmake
-- Up-to-date: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/utils.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/kdtree.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/normalset.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/pairExtraction
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/pairExtraction/intersectionNode.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/pairExtraction/intersectionFunctor.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/pairExtraction/intersectionPrimitive.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/pairExtraction/bruteForceFunctor.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/normalset.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/accelerators/normalHealSet.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/congruentSetExplorationBase.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/FunctorBrute4pcs.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/PointPairFilter.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/match3pcs.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/FunctorSuper4pcs.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/match3pcs.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/congruentSetExplorationBase.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/matchBase.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/pairCreationFunctor.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/Functor4pcs.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/match4pcsBase.hpp
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/matchBase.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/algorithms/match4pcsBase.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/disablewarnings.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/shared.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/crtp.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/timer.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/sampling.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/registrationMetrics.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/logger.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/include/gr/utils/geometry.h
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/lib/cmake/opengr/OpenGRConfig.cmake
-- Installing: /Users/prashanttukadiya/Desktop/OPEN GR/OpenGR/build/install/lib/cmake/opengr/OpenGRConfigVersion.cmake
(base) prashanttukadiya@Prashants-Mac-mini build % cd install/scripts/
(base) prashanttukadiya@Prashants-Mac-mini scripts % 7 ./run-example.sh

zsh: command not found: 7
(base) prashanttukadiya@Prashants-Mac-mini scripts % ./run-example.sh

zsh: permission denied: ./run-example.sh
(base) prashanttukadiya@Prashants-Mac-mini scripts % ./run-example.
zsh: no such file or directory: ./run-example.
(base) prashanttukadiya@Prashants-Mac-mini scripts % ./run-example.sh
zsh: permission denied: ./run-example.sh
(base) prashanttukadiya@Prashants-Mac-mini scripts % sudo ./run-example.sh
Password:

Running Super4PCS
./run-example.sh: line 68: 7158 Killed: 9 ../bin/Super4PCS -i ../assets/hippo1.obj ../assets/hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r super4pcs_fast.obj -m mat_super4pcs_fast.txt
real 0.38
user 0.00
sys 0.00
./run-example.sh: line 69: 7159 Killed: 9 ../bin/Super4PCS -i ../assets/hippo1.ply ../assets/hippo2.ply -o 0.7 -d 0.01 -t 1000 -n 200 -r super4pcs_fast.ply -m mat_super4pcs_fast.txt
real 0.00
user 0.00
sys 0.00

Running 4PCS
./run-example.sh: line 74: 7160 Killed: 9 ../bin/Super4PCS -i ../assets/hippo1.obj ../assets/hippo2.obj -o 0.7 -d 0.01 -t 1000 -n 200 -r 4pcs_fast.obj -m mat_4pcs_fast.txt -x
real 0.00
user 0.00
sys 0.00
./run-example.sh: line 75: 7161 Killed: 9 ../bin/Super4PCS -i ../assets/hippo1.ply ../assets/hippo2.ply -o 0.7 -d 0.01 -t 1000 -n 200 -r 4pcs_fast.ply -m mat_4pcs_fast.txt -x
real 0.00
user 0.00
sys 0.00

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

No branches or pull requests

1 participant