[MacPorts] #62855: cmake-gui unable to fine CMAKE_ROOT
MacPorts
noreply at macports.org
Mon May 10 17:42:34 UTC 2021
#62855: cmake-gui unable to fine CMAKE_ROOT
-------------------------+--------------------
Reporter: ATL-Flaneur | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: cmake-gui | Port: cmake
-------------------------+--------------------
I'm trying to use cmake-gui to compile [https://cloudcompare.org
CloudCompare] using the
[https://github.com/CloudCompare/CloudCompare/blob/master/BUILD.md build
instructions]. I've installed cmake-gui using `sudo port install +gui
+qt5`.
Something is wrong with `CMAKE_ROOT` as it pertains to `cmake-gui` in that
I get:
{{{
ayank at snorri programming % cmake-gui --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
cmake version 3.19.8
CMake suite maintained and supported by Kitware (kitware.com/cmake).
}}}
No problems with regular `cmake`:
{{{
ayank at snorri programming % cmake --version
cmake version 3.19.8
CMake suite maintained and supported by Kitware (kitware.com/cmake).
}}}
The errors I get with CloudCompare are all downstream of this.
After doing `git clone --recursive
https://github.com/cloudcompare/CloudCompare.git` I'm starting CMake with
`cmake-gui &`, selecting directory
``/Users/ayank/Documents/programming/CloudCompare`` as the source code
directory and ``/Users/ayank/Documents/programming/CloudCompare/build`` as
the build directory. Clicking ``Configure``, I'm keeping the defaults of
``Unix Makefiles`` and ``Use default native compilers``.
I then get a pop-up window with `Error in configuration process, project
files may be invalid` and the following error text:
{{{
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
CMake Error: CMake was unable to find a build program corresponding to
"Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to
select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!
}}}
CloudCompare builds fine if I do:
{{{
cd build
cmake ..
make
}}}
However, I want to compile CloudCompare with PDAL support for reading
.las/.laz files and therefore need to get the GUI working for setting
compile options.
--
Ticket URL: <https://trac.macports.org/ticket/62855>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list