16-10-19, 07:26
(15-10-19, 17:46)mimi85 a écrit : Bonjour,
Depuis quelques temps je compile de temps à autres une version de développement au travers de "docker" avec le tuto de @rawfiner. Tout fonctionnait correctement. Depuis quelques jours, j'essaie de compiler une version de la 2.7 sans succès, j'ai une erreur de cmake
Je viens de re-essayer en décomposant la commande d'update du submodule rawspeed comme dit dans le post + haut en réponse à Luc, mais toujours pareil.....Code :root@d6e652ffa682:~/darktable# git submodule init
Submodule 'src/external/rawspeed' (https://github.com/darktable-org/rawspeed.git) registered for path 'src/external/rawspeed'
root@d6e652ffa682:~/darktable# git submodule update
Cloning into '/root/darktable/src/external/rawspeed'...
Submodule path 'src/external/rawspeed': checked out '5a4ccfb2a5307fbfb1837bb2b1eaaf24d131c4a3'
root@d6e652ffa682:~/darktable# CC=gcc-8 CXX=g++-8 ./build.sh --install
Darktable build script
Building directory: /root/darktable/build
Installation prefix: /opt/darktable
Build type: RelWithDebInfo
Build generator: Unix Makefiles
Build tasks: 8
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_policy):
The OLD behavior for policy CMP0048 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Error at /usr/share/cmake-3.13/Modules/CMakeDetermineCXXCompiler.cmake:47 (message):
Could not find compiler set in environment variable CXX:
g++-8.
Call Stack (most recent call first):
CMakeLists.txt:20 (project)
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
J'avais cru comprendre que "docker" récupérait l'environnement ce qui m'allait très bien, n'étant pas un pro de la compilation.
Config Ubuntu 18.04 LTS
Bonjour
La version du compilateur a changé dans le dockerfile.
Du coup, gcc-8 n'est plus installé, et gcc-9 est installé à la place.
Il faut simplement indiquer ça dans le CC et CCX dans la commande comme ceci :
CC=gcc-9 CXX=g++-9 ./build.sh --install