Opened 19 months ago

Last modified 10 months ago

#62855 assigned defect

cmake @3.19.8: cmake-gui unable to find CMAKE_ROOT

Reported by: ATL-Flaneur (Andreas Yankopolus) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: cooljeanius (Eric Gallager), MaddTheSane (C.W. Betts)
Port: cmake

Description (last modified by ATL-Flaneur (Andreas Yankopolus))

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).

Checking on cmake-gui:

ayank@snorri programming % ls -l `which cmake-gui`
lrwxr-xr-x  1 root  admin  53 May 10 13:02 /opt/local/bin/cmake-gui -> /Applications/MacPorts/CMake.app/Contents/MacOS/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 (4)

comment:1 Changed 19 months ago by ATL-Flaneur (Andreas Yankopolus)

Description: modified (diff)

comment:2 Changed 19 months ago by jmroot (Joshua Root)

Keywords: cmake-gui removed
Owner: set to michaelld
Status: newassigned
Summary: cmake-gui unable to fine CMAKE_ROOTcmake @3.19.8: cmake-gui unable to find CMAKE_ROOT

comment:3 Changed 13 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 10 months ago by MaddTheSane (C.W. Betts)

Cc: MaddTheSane added
Note: See TracTickets for help on using tickets.