On lundi 24 juillet 2023 10:01:59 CEST tony Hamilton wrote: (...) > Working in this mode of unbounded ignorance is not very satisfying, so I > would be grateful if you can direct me to the source of your > understanding about cmake expecting /usr/bin/c++ to be an alias of > /usr/bin/g++. That way I can understand better the reason for this > common compile failure.
It's not so much that c++ needs to be an alias for g++, but that you have to tell cmake which version to use if that is different from the "system" version. On my system (OpenSUSe Leap 15.5), both /usr/bin/c++ and /usr/bin/g++ are symlinks to another file. Both link to version 7.x. So to get darktable to compile, I have to tell cmake to use a different version (which of course needs to be installed). To do that, there is the "export" command to set environment variables CC and CXX. The build script will use those two variables to decide which command to use for the C- and C++ compiler (resp.). For me, the following works (after removing o possible ./build dir): # export CC=gcc-12; export CXX=g++-12; ./build.sh That will build the program, but not install it. It tells you the command to install darktable (but you will have to precede that command with "sudo", as it needs to write to a system directory /opt Remco ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org