Opened 3 years ago

Closed 4 weeks ago

#62855 closed defect (fixed)

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), nilason (Nicklas Larsson), mascguy (Christopher Nielsen)
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 (9)

comment:1 Changed 3 years ago by ATL-Flaneur (Andreas Yankopolus)

Description: modified (diff)

comment:2 Changed 3 years 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 2 years ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 2 years ago by MaddTheSane (C.W. Betts)

Cc: MaddTheSane added

comment:5 Changed 9 months ago by nilason (Nicklas Larsson)

comment:6 Changed 9 months ago by nilason (Nicklas Larsson)

Cc: nilason added

comment:7 Changed 8 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:8 Changed 8 months ago by nilason (Nicklas Larsson)

In cb2671f50d23112a090fbdf2489634f3510e4431/macports-ports (master):

cmake-devel-gui: fix CMAKE_ROOT for cmake-gui

CMake code for cmake-gui looks inside app bundle for CMAKE_ROOT,
this patches it to look in MacPorts $prefix.

See: #62855

comment:9 Changed 4 weeks ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.