Forum darktable FR

Version complète : erreurs lors de la compilation de 3.0.0
Vous consultez actuellement la version basse qualité d’un document. Voir la version complète avec le bon formatage.
Bonjour, je tente vainement d'installer darktable 3.0

Voilà ce qui se passe:

Code :
~/darktable-3.0.0$ ./build.sh
Darktable build script

Building directory:  /home/regis/darktable-3.0.0/build
Installation prefix: /opt/darktable
Build type:          RelWithDebInfo
Build generator:     Unix Makefiles
Build tasks:         4


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.


-- 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 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Success
-- 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
-- Missing intltool-merge
-- Found desktop-file-validate
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
-- Could NOT find LLVM (missing: LLVM_DIR)
CMake Warning at CMakeLists.txt:311 (message):
 Could not find LLVM 3.9+


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


-- Test-compilation of OpenCL programs is disabled.
-- Missing jsonschema, problems in noiseprofiles.json might go unnoticed
-- Missing xsltproc
-- Missing saxon-xslt
-- No xslt interpreter found
-- Missing xmllint
CMake Error at CMakeLists.txt:361 (message):
 Some external programs couldn't be found


-- Configuring incomplete, errors occurred!
See also "/home/regis/darktable-3.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/regis/darktable-3.0.0/build/CMakeFiles/CMakeError.log".

Je ne suis pas un grand expert de compilation.

Avant de faire des dégâts, quelqu'un pourrait-il me donner un coup de main? D'avance merci et joyeux fêtes à tous!
Bonjour darkshot,

Il te manque des librairies nécessaires pour compiler darktable. Ici, déjà les librairies llvm et xslt.

C'est en anglais mais facile à suivre, tu as toutes les explications pour compiler ici : https://redmine.darktable.org/projects/d...rktable_26

Ca marche très bien pour la 3.0 (les règles de compil n'ont pas vraiment changées, sinon d'avoir des versions de certaines librairies plus récentes).
(24-12-19, 17:03)nicoauffray a écrit : [ -> ]Bonjour darkshot,

Il te manque des librairies nécessaires pour compiler darktable. Ici, déjà les librairies llvm et xslt.

C'est en anglais mais facile à suivre, tu as toutes les explications pour compiler ici : https://redmine.darktable.org/projects/d...rktable_26

Ca marche très bien pour la 3.0 (les règles de compil n'ont pas vraiment changées, sinon d'avoir des versions de certaines librairies plus récentes).

Merci oui, en effet, il manquait pas mal de dépendances...Merci, mais comment il se lance darktable???
Via /chemininstalldarktable/bin/darktable

Où chemininstalldarktable est le dossier où tu l'as installé. Ensuite, tu peux créer un raccourci dans le menu de ton environnement graphique avec ce lien.
(24-12-19, 17:40)nicoauffray a écrit : [ -> ]Via /chemininstalldarktable/bin/darktable

Où chemininstalldarktable est le dossier où tu l'as installé. Ensuite, tu peux créer un raccourci dans le menu de ton environnement graphique avec ce lien.
 Bon j'ai compilé comme-ça:
Code :
./build.sh --prefix /opt/darktable --build-type Release
Darktable build script

Building directory:  /home/regis/darktable-3.0.0/build
Installation prefix: /opt/darktable
Build type:          Release
Build generator:     Unix Makefiles
Build tasks:         4


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.


-- 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 - Success
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member
-- Performing Test CXX_COMPILER_UNDERSTANDS_-Wno-error=address-of-packed-member - Success
-- 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
-- Found LLVM 9.0.0
-- Found clang compiler - /usr/bin/clang-9
-- Found clang opencl-c.h header in /usr/lib/llvm-9/lib/clang/9.0.0/include
-- Will be able to test-compile OpenCL programs. Nice.
-- Missing jsonschema, problems in noiseprofiles.json might go unnoticed
-- Found xsltproc
-- Found xmllint
-- All external programs found
-- Found Gettext: /usr/bin/msgmerge (found version "0.19.8.1")
-- Found msgfmt to convert .po file. Translation enabled
-- Performing Test RAWSPEED_CXX_DEBUG_INFO_FOR_AUTO_IS_SUPPORTED
-- Performing Test RAWSPEED_CXX_DEBUG_INFO_FOR_AUTO_IS_SUPPORTED - Success
-- Checking for -march=native support
-- Performing Test MARCHNATIVE
-- Performing Test MARCHNATIVE - Success
-- Checking for -march=native support - works
-- Checking for -std=c++14 support
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Checking for -std=c++14 support - works
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WALL
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WALL - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WEXTRA
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WEXTRA - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WCAST_QUAL
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WCAST_QUAL - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WEXTRA_SEMI
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WEXTRA_SEMI - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WFORMAT_2
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WFORMAT_2 - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WMISSING_PROTOTYPES
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WMISSING_PROTOTYPES - Failed
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WOLD_STYLE_CASTS
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WOLD_STYLE_CASTS - Failed
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WPOINTER_ARITH
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WPOINTER_ARITH - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSTRICT_PROTOTYPES
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSTRICT_PROTOTYPES - Failed
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WTRADITIONAL
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WTRADITIONAL - Failed
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WVLA
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WVLA - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WMISSING_FORMAT_ATTRIBUTE
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WMISSING_FORMAT_ATTRIBUTE - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSUGGEST_ATTRIBUTE_FORMAT
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSUGGEST_ATTRIBUTE_FORMAT - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WNO_UNUSED_PARAMETER
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WNO_UNUSED_PARAMETER - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSTACK_USAGE_4096
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WSTACK_USAGE_4096 - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WFRAME_LARGER_THAN_4096
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WFRAME_LARGER_THAN_4096 - Success
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WLARGER_THAN_32768
-- Performing Test RAWSPEED_HAVE_CXX_FLAG_WLARGER_THAN_32768 - Success
-- Looking for OpenMP
-- Found OpenMP_C: -fopenmp (Required is at least version "4.0")
-- Found OpenMP_CXX: -fopenmp (Required is at least version "4.0")
-- Looking for OpenMP - found (system)
-- Looking for pugixml
-- Found Pugixml 1.9
-- Looking for pugixml - found (system)
-- Looking for JPEG
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Looking for JPEG - found
-- Looking for jpeg_mem_src
-- Looking for jpeg_mem_src - found
-- Looking for ZLIB
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.11", minimum required is "1.2.11")
-- Looking for C++ include zlib.h
-- Looking for C++ include zlib.h - found
-- Check size of uLongf
-- Check size of uLongf - done
-- Looking for Z_OK
-- Looking for Z_OK - found
-- Checking prototype uncompress for HAVE_ZLIB_UNCOMPRESS_PROTOTYPE - True
-- Checking prototype zError for HAVE_ZLIB_ZERROR_PROTOTYPE - True
-- Looking for uncompress
-- Looking for uncompress - found
-- Looking for zError
-- Looking for zError - found
-- Looking for ZLIB - found (system)
-- Looking for malloc
-- Looking for malloc - found
-- Looking for free
-- Looking for free - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Performing Test HAVE_CXX_THREAD_LOCAL
-- Performing Test HAVE_CXX_THREAD_LOCAL - Success
-- Found XMLLINT: /usr/bin/xmllint  
-- The following features have been enabled:

* OpenMP-based threading, used for parallelization of the library
* XML reading, used for loading of data/cameras.xml
* Lossy JPEG decoding, used for DNG Lossy JPEG compression decoding
* ZLIB decoding, used for DNG Deflate compression decoding

-- The following OPTIONAL packages have been found:

* LLVM (required version >= 9)
* Gettext
* XMLLINT, command line XML tool, <http://xmlsoft.org/>
  Used for validation of data/cameras.xml

-- The following RECOMMENDED packages have been found:

* JPEG, free library for handling the JPEG image data format, implements a JPEG codec
  Used for decoding DNG Lossy JPEG compression
* ZLIB (required version >= 1.2.11), software library used for data compression
  Used for decoding DNG Deflate compression

-- The following REQUIRED packages have been found:

* OpenMP (required version >= 4.0), Open Multi-Processing, <https://www.openmp.org/>
  Used for parallelization of the library
* Pugixml (required version >= 1.8), Light-weight, simple and fast XML parser, <http://pugixml.org/>
  Used for loading of data/cameras.xml

-- Performing Test COMPILER_SUPPORTS_C99
-- Performing Test COMPILER_SUPPORTS_C99 - Success
-- Performing Test COMPILER_SUPPORTS_C11
-- Performing Test COMPILER_SUPPORTS_C11 - Success
-- Checking for -std=c++14 support
-- Checking for -std=c++14 support - works
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found Glib 2.62.1
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'gtk+-3.0'
--   Found gtk+-3.0, version 3.24.12
-- Found GTK3: /usr/include/gtk-3.0;/usr/include/at-spi2-atk/2.0;/usr/include/at-spi-2.0;/usr/include/dbus-1.0;/usr/lib/x86_64-linux-gnu/dbus-1.0/include;/usr/include/gtk-3.0;/usr/include/gio-unix-2.0;/usr/include/cairo;/usr/include/libdrm;/usr/include/pango-1.0;/usr/include/harfbuzz;/usr/include/pango-1.0;/usr/include/fribidi;/usr/include/atk-1.0;/usr/include/cairo;/usr/include/pixman-1;/usr/include/uuid;/usr/include/freetype2;/usr/include/libpng16;/usr/include/gdk-pixbuf-2.0;/usr/include/libmount;/usr/include/blkid;/usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include (Required is at least version "3.22")
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found suitable version "2.9.4", minimum required is "2.6")
-- Checking for one of the modules 'libsoup-2.4;libsoup2'
-- Checking for one of the modules 'libsoup-2.2;libsoup2'
-- Could NOT find GPHOTO2 (missing: GPHOTO2_LIBRARY GPHOTO2_INCLUDE_DIR)
-- Could NOT find OPENEXR (missing: OPENEXR_LIBRARY)
-- Could NOT find WEBP (missing: WEBP_LIBRARY WEBP_INCLUDE_DIR) (Required is at least version "0.3.0")
-- Found LENSFUN: /usr/lib/x86_64-linux-gnu/liblensfun.so  
-- Found GIO
-- Found GThread: /usr/lib/x86_64-linux-gnu/libgthread-2.0.so  
-- Found GModule: /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so  
-- Found PANGOCAIRO: /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so  
-- Found RSVG2: /usr/lib/x86_64-linux-gnu/librsvg-2.so  
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.4")
-- Found Sqlite3 3.29.0
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.65.3")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37")
-- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.10")
-- Found LCMS2: /usr/lib/x86_64-linux-gnu/liblcms2.so  
-- Found JsonGlib
-- Found EXIV2: /usr/lib/x86_64-linux-gnu/libexiv2.so  
-- Could NOT find FLICKCURL (missing: FLICKCURL_LIBRARY FLICKCURL_INCLUDE_DIR)
CMake Warning at cmake/modules/LibFindMacros.cmake:263 (message):
 WARNING: MISSING PACKAGE

 We could not find development headers for OpenJPEG.  Do you have the
 necessary dev package installed? This package is NOT REQUIRED and you may
 ignore this warning but by doing so you may miss some functionality of
 darktable.

 Relevant CMake configuration variables:

   OpenJPEG_INCLUDE_DIR=<not found>
   OpenJPEG_LIBRARY=<not found>

 You may use CMake GUI, cmake -D or ccmake to modify the values.  Delete
 CMakeCache.txt to discard all values and force full re-detection if
 necessary.

Call Stack (most recent call first):
 cmake/modules/FindOpenJPEG.cmake:29 (libfind_process)
 src/CMakeLists.txt:354 (find_package)


-- Checking for module 'iso-codes'
--   Found iso-codes, version 4.3
-- Could NOT find LIBSECRET (missing: LIBSECRET_INCLUDE_DIRS LIBSECRET_LIBRARIES)
CMake Warning at cmake/modules/LibFindMacros.cmake:263 (message):
 WARNING: MISSING PACKAGE

 We could not find development headers for GraphicsMagick.  Do you have the
 necessary dev package installed? This package is NOT REQUIRED and you may
 ignore this warning but by doing so you may miss some functionality of
 darktable.

 Relevant CMake configuration variables:

   GraphicsMagick_INCLUDE_DIR-NOTFOUND=
   GraphicsMagick_INCLUDE_DIR=<not found>
   GraphicsMagick_LIBRARY-NOTFOUND=
   GraphicsMagick_LIBRARY=<not found>

 You may use CMake GUI, cmake -D or ccmake to modify the values.  Delete
 CMakeCache.txt to discard all values and force full re-detection if
 necessary.

Call Stack (most recent call first):
 cmake/modules/FindGraphicsMagick.cmake:33 (libfind_process)
 src/CMakeLists.txt:416 (find_package)


-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS
-- Performing Test HAVE_BUILTIN_CPU_SUPPORTS - Success
-- Does the compiler support __builtin_cpu_supports(): 1
-- Performing Test HAVE_TLS
-- Performing Test HAVE_TLS - Success
-- Checking for -march=native support
-- Checking for one of the modules 'lua53;lua5.3;lua-5.3;lua'
-- Lua support: System library for lua 5.3 not found (to use darktable's version use -DDONT_USE_INTERNAL_LUA=Off)
-- Found Pugixml 1.9
-- Map mode: disabled, please install libosmgpsmap
-- No libcolord found, this build will lack the ability to get the screen profile from colord
-- Could NOT find Cups (missing: CUPS_LIBRARIES CUPS_INCLUDE_DIR)
-- Print mode: disabled, please install CUPS dev package
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found suitable version "7.65.3", minimum required is "7.56")
-- Found recent CURL version to build piwigo.
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- no colord support for darktable-cmstest. not cool.
CMake Warning at doc/CMakeLists.txt:37 (message):
 the sources of the usermanual are missing so you won't be able to generate
 it.  if this is a release tarball then that's normal.

 please grab them from github if you want to work on the manual.


Je nai pas pu tout mettre le forum n'accepte pas, trop long. Bref, ça a l'air ok
Mais c'est quoi le chemin? Désolé mais j'suis un peu perdu..
C'est ça dans ton log :
Code :
Installation prefix: /opt/darktable

Donc, darktable est installé dans /opt/darktable. Le chemin pour le lancer est donc /opt/darktable/bin/darktable
ok merci beaucoup, je viens de me rendre compte que je n'ai pas posté dans la bonne rubrique. Quelqu'un peut gentiment déplacer dans "installation"? Merci encore.