Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Contributor: LViatourinstallation 2.7 sur Ubuntu problème compilation
#1
Bonjour à tous,

J’essaye d'installer la version 2.7 sur Ubuntu 18.04 pour mon fils (et avoir la même configuration que moi).

mais la compilation bloque, si vous avez une idée de ce qu'il manque?


root@laurent-P65-67HSHP:~/darktable# ./build.sh 
Darktable build script

Building directory:  /home/laurent/darktable/build
Installation prefix: /opt/darktable
Build type:          RelWithDebInfo
Build generator:     Unix Makefiles
Build tasks:         8


-- Is the target platform supported: 1
-- Found little endian system. Good.
-- Building SSE2-optimized codepaths: ON
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=varargs - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test C_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Failed
-- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768
-- Performing Test C_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wframe-larger-than=32768 - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768
-- Performing Test C_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wstack-usage=32768 - Success
-- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288
-- Performing Test C_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wlarger-than=524288 - Success
-- Looking for external programs
-- Found perl
-- Found intltool-merge
-- Found desktop-file-validate
CMake Warning at CMakeLists.txt:273 (find_package):
  Could not find a configuration file for package "LLVM" that is compatible
  with requested version "9".

  The following configuration files were considered but not accepted:

    /usr/lib/llvm-8/cmake/LLVMConfig.cmake, version: 8.0.0
    /usr/lib/llvm-7/cmake/LLVMConfig.cmake, version: 7.0.0
    /usr/lib/llvm-5.0/cmake/LLVMConfig.cmake, version: 5.0.1
    /usr/lib/llvm-3.9/cmake/LLVMConfig.cmake, version: 3.9.1
    /usr/lib/llvm-6.0/cmake/LLVMConfig.cmake, version: 6.0.0
    /usr/lib/llvm-4.0/cmake/LLVMConfig.cmake, version: 4.0.1

Call Stack (most recent call first):
  CMakeLists.txt:281 (find_llvm)


-- Found LLVM 8.0.0
CMake Warning at CMakeLists.txt:307 (message):
  Could not find appropriate clang compiler


CMake Warning at CMakeLists.txt:308 (message):
  Test-compilation of OpenCL programs can not be done.


-- Test-compilation of OpenCL programs is disabled.
-- Found jsonschema
-- Found xsltproc
-- Found xmllint
-- All external programs found
-- Found msgfmt to convert .po file. Translation enabled
CMake Error at src/external/CMakeLists.txt:11 (message):
  RawSpeed submodule not found.  You probably want to run:

  $ git submodule init

  and then

  $ git submodule update


-- Configuring incomplete, errors occurred!
See also "/home/laurent/darktable/build/CMakeFiles/CMakeOutput.log".
See also "/home/laurent/darktable/build/CMakeFiles/CMakeError.log".
Luc Viatour Photographe 
Website
Répondre
#2
Bonjour
il faut simplement que tu lances les deux commandes indiquées :
git submodule init
git submodule update
Après ça, ça devrait mieux se passer ;-)
Répondre
#3
un grand merci cela fonctionne Smile
Luc Viatour Photographe 
Website
Répondre
#4
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

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!
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.....
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
Répondre


Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)