Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
3.01 problème lors de la compilation
#11
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....
Luc Viatour Photographe 
Website
Répondre
#12
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.
Aussi appelé Nilvus !
Debian Sid - darktable master
Répondre
#13
Passe moi ton zip Luc, que j'essaie de le compiler.
Répondre
#14
(26-12-19, 21:32)LViatour a écrit : 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....

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) :

Code :
git checkout master

Code :
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 :

Code :
git submodule init
(et là j'ai eu une référence de mise à jour OpenCL) puis

Code :
git submodule update

Compilation ensuite ok.
Aussi appelé Nilvus !
Debian Sid - darktable master
Répondre
#15
(26-12-19, 22:02)nicoauffray a écrit :
(26-12-19, 21:32)LViatour a écrit : 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....

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) :

Code :
git checkout master

Code :
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 :

Code :
git submodule init
(et là j'ai eu une référence de mise à jour OpenCL) puis

Code :
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
Luc Viatour Photographe 
Website
Répondre
#16
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 :


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


puis les étapes que j'ai décrites ?
Aussi appelé Nilvus !
Debian Sid - darktable master
Répondre
#17
(26-12-19, 22:55)nicoauffray a écrit : 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 :


Code :
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
Luc Viatour Photographe 
Website
Répondre
#18
La rafale de commit c'est moi 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:


Code :
$ git reset --hard
$ git pull
$ git submodule init
$ git submodule upadte
$ rm -fr build
$ ./build.sh
--
Pascal - GNU/Debian (sid) - version darktable git/master
http://photos.obry.net
Répondre
#19
(26-12-19, 23:21)pascal a écrit : La rafale de commit c'est moi 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:


Code :
$ 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 Viatour Photographe 
Website
Répondre
#20
Luc, tu as pu compiler la master ?
Répondre


Atteindre :


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