3.01 problème lors de la compilation

J’ai un problème sur un PC d’un collègue ou j’ai compilé la version 3.1.

Une idée pour résoudre la compilation.?

Voici le message ou s’arrête la compilation:
[ 25%] Building C object src/CMakeFiles/lib_darktable.dir/common/curl_tools.c.o
In file included from /home/christophe/darktable/src/common/bilateralcl.c:21:0:
/home/christophe/darktable/src/common/bilateralcl.h:26:10: fatal error: CL/cl.h: Aucun fichier ou dossier de ce type
#include <CL/cl.h> // for cl_mem, _cl_mem
^~~~~~~~~
compilation terminated.
src/CMakeFiles/lib_darktable.dir/build.make:172: recipe for target ‹ src/CMakeFiles/lib_darktable.dir/common/bilateralcl.c.o › failed
make[2]: *** [src/CMakeFiles/lib_darktable.dir/common/bilateralcl.c.o] Error 1
make[2]: *** Attente des tâches non terminées…
In file included from /home/christophe/darktable/src/common/opencl.h:38:0,
from /home/christophe/darktable/src/develop/imageop.h:37,
from /home/christophe/darktable/src/common/color_picker.c:23:
/home/christophe/darktable/src/common/dlopencl.h:27:10: fatal error: CL/cl.h: Aucun fichier ou dossier de ce type
#include <CL/cl.h>
^~~~~~~~~
compilation terminated.

Je viens juste de compiler sans problème Luc, il y a eu une rafale de commit à 19:43.

je viens de refaire une compilation avec les changement de dernière minute et c’est pareil…

Peut-être un git submodule init et un git submodule update à faire ?

je viens d’effacer toute la compilation, j’ai refais tout à zero.

Mais j’ai un autre message d’erreur maintenant concernant les watermark:
[ 61%] Building C object src/iop/CMakeFiles/splittoning.dir/introspection_splittoning.c.o
In file included from /home/christophe/darktable/build/src/iop/introspection_watermark.c:48:0:
/home/christophe/darktable/src/iop/watermark.c: In function ‘_watermark_get_svgdoc’:
/home/christophe/darktable/src/iop/watermark.c:816:3: error: unknown type name ‘dt_variables_params_t’; did you mean ‘dt_iop_params_t’?
dt_variables_params_t *params;
^~~~~~~~~~~~~~~~~~~~~
dt_iop_params_t
/home/christophe/darktable/src/iop/watermark.c:817:3: error: implicit declaration of function ‘dt_variables_params_init’; did you mean ‘dt_view_manager_init’? [-Werror=implicit-function-declaration]
dt_variables_params_init(&params);
^~~~~~~~~~~~~~~~~~~~~~~~
dt_view_manager_init
/home/christophe/darktable/src/iop/watermark.c:818:9: error: request for member ‘filename’ in something not a structure or union
params->filename = image->filename;
^~
/home/christophe/darktable/src/iop/watermark.c:819:9: error: request for member ‘jobcode’ in something not a structure or union
params->jobcode = « watermark »;
^~
/home/christophe/darktable/src/iop/watermark.c:820:9: error: request for member ‘sequence’ in something not a structure or union
params->sequence = 0;
^~
/home/christophe/darktable/src/iop/watermark.c:821:9: error: request for member ‘imgid’ in something not a structure or union
params->imgid = image->id;
^~
/home/christophe/darktable/src/iop/watermark.c:822:3: error: implicit declaration of function ‘dt_variables_set_tags_flags’; did you mean ‘dt_tag_get_tags_images’? [-Werror=implicit-function-declaration]
dt_variables_set_tags_flags(params, flags);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
dt_tag_get_tags_images
/home/christophe/darktable/src/iop/watermark.c:823:12: error: implicit declaration of function ‘dt_variables_expand’ [-Werror=implicit-function-declaration]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^~~~~~~~~~~~~~~~~~~
/home/christophe/darktable/src/iop/watermark.c:823:10: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^
Scanning dependencies of target lowpass
cc1: all warnings being treated as errors
src/iop/CMakeFiles/watermark.dir/build.make:67: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o › failed
make[2]: *** [src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o] Error 1
CMakeFiles/Makefile2:4612: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/all › failed
make[1]: *** [src/iop/CMakeFiles/watermark.dir/all] Error 2
make[1]: *** Attente des tâches non terminées…
[ 61%] Building C object src/iop/CMakeFiles/lowpass.dir/introspection_lowpa

Là, je coince !

zut, il semble ne pas trouver une image mais quoi…

Tu veux que je te zippe mon répertoire source ?

je viens de ziper le miens et je l’envoi sur le pc du collègue mais je fais cela à distance donc c’est long…

N’hésites pas à demander si besoin.

bon je comprends rien cela bloque toujours:
[ 61%] Building C object src/iop/CMakeFiles/splittoning.dir/introspection_splittoning.c.o
In file included from /home/christophe/darktable/build/src/iop/introspection_watermark.c:48:0:
/home/christophe/darktable/src/iop/watermark.c: In function ‘_watermark_get_svgdoc’:
/home/christophe/darktable/src/iop/watermark.c:816:3: error: unknown type name ‘dt_variables_params_t’; did you mean ‘dt_iop_params_t’?
dt_variables_params_t *params;
^~~~~~~~~~~~~~~~~~~~~
dt_iop_params_t
/home/christophe/darktable/src/iop/watermark.c:817:3: error: implicit declaration of function ‘dt_variables_params_init’; did you mean ‘dt_view_manager_init’? [-Werror=implicit-function-declaration]
dt_variables_params_init(&params);
^~~~~~~~~~~~~~~~~~~~~~~~
dt_view_manager_init
/home/christophe/darktable/src/iop/watermark.c:818:9: error: request for member ‘filename’ in something not a structure or union
params->filename = image->filename;
^~
/home/christophe/darktable/src/iop/watermark.c:819:9: error: request for member ‘jobcode’ in something not a structure or union
params->jobcode = « watermark »;
^~
/home/christophe/darktable/src/iop/watermark.c:820:9: error: request for member ‘sequence’ in something not a structure or union
params->sequence = 0;
^~
/home/christophe/darktable/src/iop/watermark.c:821:9: error: request for member ‘imgid’ in something not a structure or union
params->imgid = image->id;
^~
Scanning dependencies of target lowpass
/home/christophe/darktable/src/iop/watermark.c:822:3: error: implicit declaration of function ‘dt_variables_set_tags_flags’; did you mean ‘dt_tag_get_tags_images’? [-Werror=implicit-function-declaration]
dt_variables_set_tags_flags(params, flags);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
dt_tag_get_tags_images
/home/christophe/darktable/src/iop/watermark.c:823:12: error: implicit declaration of function ‘dt_variables_expand’ [-Werror=implicit-function-declaration]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^~~~~~~~~~~~~~~~~~~
/home/christophe/darktable/src/iop/watermark.c:823:10: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^
cc1: all warnings being treated as errors
src/iop/CMakeFiles/watermark.dir/build.make:67: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o › failed
make[2]: *** [src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o] Error 1
CMakeFiles/Makefile2:4612: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/all › failed
make[1]: *** [src/iop/CMakeFiles/watermark.dir/all] Error 2
make[1]: *** Attente des tâches non terminées…

Je n’ai pas tout à fait les mêmes problèmes mais j’ai aussi des erreurs de compilation. Pascal ayant intégré beaucoup de PR aujourd’hui, il est possible que ça a créé des problèmes.

Passe moi ton zip Luc, que j’essaie de le compiler.

Finalement, j’ai réussi à compiler la 3.0.1 en appliquant à la lettre la réponse de rawfiner. Habituellement, un git submodule update suffisait mais il semble qu’il faille vraiment reprendre à 0. Dans mon dossier de compil, je me suis déjà assuré d’être sur la branche master (et non next par exemple) :

git checkout master
git pull

(pour m’assurer d’avoir la dernière mise à jour)

Puis j’ai supprimé le dossier build (et le dossier où darktable s’installe). Ensuite, j’ai fait donc :

git submodule init

(et là j’ai eu une référence de mise à jour OpenCL) puis

git submodule update

Compilation ensuite ok.

et bien chez moi cela ne change rien…
[ 61%] Building C object src/iop/CMakeFiles/lowpass.dir/introspection_lowpass.c.o
In file included from /home/christophe/darktable/build/src/iop/introspection_watermark.c:48:0:
/home/christophe/darktable/src/iop/watermark.c: In function ‘_watermark_get_svgdoc’:
/home/christophe/darktable/src/iop/watermark.c:816:3: error: unknown type name ‘dt_variables_params_t’; did you mean ‘dt_iop_params_t’?
dt_variables_params_t *params;
^~~~~~~~~~~~~~~~~~~~~
dt_iop_params_t
[ 61%] Linking C shared module libcolisa.so
/home/christophe/darktable/src/iop/watermark.c:817:3: error: implicit declaration of function ‘dt_variables_params_init’; did you mean ‘dt_view_manager_init’? [-Werror=implicit-function-declaration]
dt_variables_params_init(&params);
^~~~~~~~~~~~~~~~~~~~~~~~
dt_view_manager_init
/home/christophe/darktable/src/iop/watermark.c:818:9: error: request for member ‘filename’ in something not a structure or union
params->filename = image->filename;
^~
/home/christophe/darktable/src/iop/watermark.c:819:9: error: request for member ‘jobcode’ in something not a structure or union
params->jobcode = « watermark »;
^~
/home/christophe/darktable/src/iop/watermark.c:820:9: error: request for member ‘sequence’ in something not a structure or union
params->sequence = 0;
^~
/home/christophe/darktable/src/iop/watermark.c:821:9: error: request for member ‘imgid’ in something not a structure or union
params->imgid = image->id;
^~
/home/christophe/darktable/src/iop/watermark.c:822:3: error: implicit declaration of function ‘dt_variables_set_tags_flags’; did you mean ‘dt_tag_get_tags_images’? [-Werror=implicit-function-declaration]
dt_variables_set_tags_flags(params, flags);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
dt_tag_get_tags_images
Scanning dependencies of target colorin
/home/christophe/darktable/src/iop/watermark.c:823:12: error: implicit declaration of function ‘dt_variables_expand’ [-Werror=implicit-function-declaration]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^~~~~~~~~~~~~~~~~~~
/home/christophe/darktable/src/iop/watermark.c:823:10: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^
[ 61%] Built target colisa
cc1: all warnings being treated as errors
src/iop/CMakeFiles/watermark.dir/build.make:67: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o › failed
make[2]: *** [src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o] Error 1
CMakeFiles/Makefile2:4612: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/all › failed
make[1]: *** [src/iop/CMakeFiles/watermark.dir/all] Error 2
make[1]: *** Attente des tâches non terminées…
Scanning dependencies of target profile_gamma

C’est étrange. Quand tu as dis être reparti de 0, as-tu essayé de supprimer carrément ton dossier darktable (celui du code source) et de repartir complètement à 0 avec :

git clone https://github.com/darktable-org/darktable.git

puis les étapes que j’ai décrites ?

J’ai supprimé mon dossier darktable et créé un vierge et aussi viré /opt/darktable et fais les trois commandes

La rafale de commit c’est moi :slight_smile:

Sinon, Luc pour ton problème c’est le support OpenCL qui utilise maintenant le dépôt upstream avec un sous-module donc les commandes que l’on t’a données sont les bonnes.

Tu peux probablement corriger le problème ensuite (les autres erreurs ressemblent à des problèmes de mise-à-jour) par:

$ git reset --hard $ git pull $ git submodule init $ git submodule upadte $ rm -fr build $ ./build.sh

Ben non cela ne fonctionne toujours pas…
[ 61%] Generating introspection_lowpass.c
In file included from /home/christophe/darktable/build/src/iop/introspection_watermark.c:48:0:
/home/christophe/darktable/src/iop/watermark.c: In function ‘_watermark_get_svgdoc’:
/home/christophe/darktable/src/iop/watermark.c:816:3: error: unknown type name ‘dt_variables_params_t’; did you mean ‘dt_iop_params_t’?
dt_variables_params_t *params;
^~~~~~~~~~~~~~~~~~~~~
dt_iop_params_t
/home/christophe/darktable/src/iop/watermark.c:817:3: error: implicit declaration of function ‘dt_variables_params_init’; did you mean ‘dt_view_manager_init’? [-Werror=implicit-function-declaration]
dt_variables_params_init(&params);
^~~~~~~~~~~~~~~~~~~~~~~~
dt_view_manager_init
/home/christophe/darktable/src/iop/watermark.c:818:9: error: request for member ‘filename’ in something not a structure or union
params->filename = image->filename;
^~
/home/christophe/darktable/src/iop/watermark.c:819:9: error: request for member ‘jobcode’ in something not a structure or union
params->jobcode = « watermark »;
^~
/home/christophe/darktable/src/iop/watermark.c:820:9: error: request for member ‘sequence’ in something not a structure or union
params->sequence = 0;
^~
/home/christophe/darktable/src/iop/watermark.c:821:9: error: request for member ‘imgid’ in something not a structure or union
params->imgid = image->id;
^~
/home/christophe/darktable/src/iop/watermark.c:822:3: error: implicit declaration of function ‘dt_variables_set_tags_flags’; did you mean ‘dt_tag_get_tags_images’? [-Werror=implicit-function-declaration]
dt_variables_set_tags_flags(params, flags);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
dt_tag_get_tags_images
/home/christophe/darktable/src/iop/watermark.c:823:12: error: implicit declaration of function ‘dt_variables_expand’ [-Werror=implicit-function-declaration]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^~~~~~~~~~~~~~~~~~~
/home/christophe/darktable/src/iop/watermark.c:823:10: error: assignment makes pointer from integer without a cast [-Werror=int-conversion]
svgdoc = dt_variables_expand(params, svgdata, FALSE);
^
Scanning dependencies of target lowpass
[ 61%] Linking C shared module libcolisa.so
cc1: all warnings being treated as errors
src/iop/CMakeFiles/watermark.dir/build.make:67: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o › failed
make[2]: *** [src/iop/CMakeFiles/watermark.dir/introspection_watermark.c.o] Error 1
CMakeFiles/Makefile2:4612: recipe for target ‹ src/iop/CMakeFiles/watermark.dir/all › failed
make[1]: *** [src/iop/CMakeFiles/watermark.dir/all] Error 2
make[1]: *** Attente des tâches non terminées…
[ 61%] Linking C shared module libdenoiseprofile.so
[ 61%] Building C object src/iop/CMakeFiles/lowpass.dir/introspection_lowpass.c.o
Scanning dependencies of target colorin
[ 61%] Built target colisa

Luc, tu as pu compiler la master ?