I’m trying to compile G’Mic on ubuntu 18.04 amd64, but it fails.
I used the following, then make :
cmake … -DGMIC_QT_HOST=gimp -DGMIC_PATH=/home/fabien/Programmes/gmic/src -DCMAKE_BUILD_TYPE=Release
Result :
/home/fabien/Programmes/gmic/src/gmic.cpp: In static member function ‘static const cimg_library::CImg& gmic::decompress_stdlib()’:
/home/fabien/Programmes/gmic/src/gmic.cpp:2357:59: error: ‘data_gmic_stdlib’ was not declared in this scope
CImgList::get_unserialize(CImg(data_gmic_stdlib,1,size_data_gmic_stdlib,1,1,true))[0].
^~~~~~~~~~~~~~~~
/home/fabien/Programmes/gmic/src/gmic.cpp:2357:78: error: ‘size_data_gmic_stdlib’ was not declared in this scope
gList::get_unserialize(CImg(data_gmic_stdlib,1,size_data_gmic_stdlib,1,1,true))[0].
^~~~~~~~~~~~~~~~~~~~~
CMakeFiles/gmic_gimp_qt.dir/build.make:1642: recipe for target ‘CMakeFiles/gmic_gimp_qt.dir/home/fabien/Programmes/gmic/src/gmic.cpp.o’ failed
make[2]: *** [CMakeFiles/gmic_gimp_qt.dir/home/fabien/Programmes/gmic/src/gmic.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target ‘CMakeFiles/gmic_gimp_qt.dir/all’ failed
make[1]: *** [CMakeFiles/gmic_gimp_qt.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2
Do you have any idea what is wrong ?
Thanks for your help
…/gmic/src/gmic.cpp:2357:78: error: ‘size_data_gmic_stdlib’ was not declared in this scope
CImgList::get_unserialize(CImg(data_gmic_stdlib,1,size_data_gmic_stdlib,1,1,true))[0].
^
Makefile:1669: recipe for target ‘.obj/gmic.o’ failed
make: *** [.obj/gmic.o] Error 1
$ pkg-config --cflags gimp-2.0
Package gimp-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gimp-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gimp-2.0' found
I searched for the .pc file in the system, and then ran :
After a search I could find gimp.h file in the directory where I compiled gimp and in :
/usr/include/gimp-3.0/libgimp
/opt/gimp/include/gimp-2.0/libgimp
I don’t know really. This is beyond my knowledge
I personally use qmake instead of cmake to compile the plug-in, but I doubt this will make a difference, as both rely on the result of pkg-config to set the good compiler flags.