* tony Hamilton <shaky.st...@ntlworld.com> [07-24-23 14:48]: > > > On 24/07/2023 09:26, Remco Viëtor wrote: > > 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 > > > This is commendably clear and most appreciated. Is it safe to remove the > /build directory in its entirety?
yes. as a matter of fact, I have scripted my process and remove the ../darktable/build directory on successful build. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org