On 23/07/2023 17:07, Patrick Shanahan wrote:
* tony Hamilton <[email protected]> [07-23-23 10:40]:

On 23/07/2023 14:28, Patrick Shanahan wrote:
* tony Hamilton <[email protected]> [07-23-23 09:24]:
I'm trying to compile dt release 4.4.2, using the same process that worked
for me with 4.4.1 a  short time ago. I get this error:

"-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:23 (project):
    The CMAKE_CXX_COMPILER:

      /usr/bin/c++

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full
path
    to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!

I tried to check the entry in 'CMakeLists.txt' - but there are 88 such files
listed in my 'darktable' directory. I have no idea which one to check. I
don't understand why this error occurs now, neither do I understand how to
fix it. Any advice, please?

By the way, as part of preparing for this build I completely removed my
install of 4.4.1 from /opt/darktable, so now I don't have any way of using
darktable.
09:26 crash: ~ > l /usr/bin/c++
lrwxrwxrwx 1 root root 6 Jun 14 11:13 /usr/bin/c++ -> g++-13*
09:27 crash: ~ > rpm -qf /usr/bin/c++
gcc-c++-13-1.3.x86_64


do you actually have gcc-c++ package installed.  note you don't say what
distro so package name may differ.  I am on openSUSE Tumbleweed.


Synaptic tells me that I have both versions 11 and 12 of the GNU C++
compiler installed. Indeed, I don't understand how I could have compiled
4.4.1 without these. But, amazingly, I appear not to have a directory
/usr/bin/C++ - how can this be ?

Apologies about not identifying the distro: I'm on Mint 21.1, based on
Ubuntu 22.04
I know little to nothing about *butus/mint but apparently cmake expects
/usr/bin/c++ to be an alias of  /usr/bin/g++-(11 or 12)
since you have 11 and 12 installed.

replying on list

Thanks for this further explanation. I notice that a number of people - mostly a lot smarter than me at compiling dt - have stumbled across the problem of the build process failing with a complaint that the version of the GNU compiler that it finds (typically 11.xx) is too old: version 12.xx is required. This problem foxed me for a while because Synaptic tells me that I do have  version 12 installed.  The only way I found around it was to delete the directory named 'build' before running the build.sh script. Apparently this avoids the build process from being mislead by some setting in a cmake cache somewhere - but since I don't know where that is, I just delete the 'build' directory completely.

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.

____________________________________________________________________________
darktable user mailing list
to unsubscribe send a mail to [email protected]

Reply via email to