Opened 4 years ago

Last modified 8 months ago

#62855 closed defect

cmake-gui unable to fine CMAKE_ROOT — at Initial Version

Reported by: ATL-Flaneur (Andreas Yankopolus) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc:
Port: cmake

Description

I'm trying to use cmake-gui to compile CloudCompare using the 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@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@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.

Change History (0)

Note: See TracTickets for help on using tickets.