c-koi / gmic-qt

G'MIC-Qt is a versatile front-end to the image processing framework G'MIC.
GNU General Public License v3.0
207 stars 54 forks source link

Compile Error #73

Closed dafrasaga closed 5 years ago

dafrasaga commented 5 years ago

Hi All, I downloaded last git version of gmic and gmic-qt and typed

git clone https://github.com/dtschump/gmic.git git clone https://github.com/c-koi/gmic-qt.git make -C gmic/src CImg.h gmic_stdlib.h cd gmic-qt

mkdir build cd build

cmake .. -DGMIC_QT_HOST=gimp -DGMIC_PATH=/root/git/gmic/src/ -DCMAKE_BUILD_TYPE=Release make -j5

but I had:

`-- Using CMake version: 3.15.2 Building for target host application: gimp G'MIC path: /root/git/gmic/src/ Found G'MIC repository Found /root/git/gmic/src//CImg.h Found /root/git/gmic/src//gmic_stdlib.h CImg version is [270] G'MIC version is [270] -- Found FFTW3 -- FFTW Found Version: -- Found OpenMP_C: -fopenmp
-- Found OpenMP_CXX: -fopenmp
-- Found OpenMP: TRUE
G'Mic: using OpenMP Release build -- The following OPTIONAL packages have been found:

-- The following REQUIRED packages have been found:

-- Configuring done **CMake Error at CMakeLists.txt:483 (add_executable): Cannot find source file:

src/FilterParameters/CustomDoubleSpinbox.h**

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

-- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. ` Can you help me ??

c-koi commented 5 years ago

Fixed by d28db72ee90c40c0f2449779bfdf1476f0ed0e5e

dafrasaga commented 5 years ago

Hi c-koi it worked bu now it doesn't compile:

/usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/FilterSelector/FiltersModelReader.cpp.o: in function_GLOBALsub_I_FiltersModelReader.cpp': FiltersModelReader.cpp:(.text.startup+0x2f): undefined reference to fftw_init_threads' /usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/CroppedImageListProxy.cpp.o: in function_GLOBAL__sub_I_CroppedImageListProxy.cpp': CroppedImageListProxy.cpp:(.text.startup+0x2b): undefined reference to fftw_init_threads' /usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/CroppedActiveLayerProxy.cpp.o: in function_GLOBALsub_I_CroppedActiveLayerProxy.cpp': CroppedActiveLayerProxy.cpp:(.text.startup+0x2b): undefined reference to fftw_init_threads' /usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/FilterSyncRunner.cpp.o: in function_GLOBAL__sub_I_FilterSyncRunner.cpp': FilterSyncRunner.cpp:(.text.startup+0x2f): undefined reference to fftw_init_threads' /usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/FilterThread.cpp.o: in function_GLOBAL__sub_I_FilterThread.cpp': FilterThread.cpp:(.text.startup+0x2f): undefined reference to fftw_init_threads' /usr/bin/ld: CMakeFiles/gmic_gimp_qt.dir/src/gmic_qt.cpp.o:gmic_qt.cpp:(.text.startup+0x2f): more undefined references tofftw_init_threads' follow collect2: error: ld returned 1 exit status make[2]: [CMakeFiles/gmic_gimp_qt.dir/build.make:1257: gmic_gimp_qt] Error 1 make[1]: [CMakeFiles/Makefile2:77: CMakeFiles/gmic_gimp_qt.dir/all] Error 2 make: *** [Makefile:130: all] Error 2 ` Do you understand what is occurred?

dtschump commented 5 years ago

I suspect this is related to a missing -lfftw3_threads that should be added. This thing is a bit annoying, because not all systems define a separate library for supporting FFTW threads (sometimes, fftw-threads are just a part of the compiled libfftw, as on Windows).

dafrasaga commented 5 years ago

Hi David, as a simple user as I am do you advice something?? Who would add -lfftw3_threads and where ?

dtschump commented 5 years ago

@dafrasaga , don't worry, I think this should be fixed by @c-koi soon. I had lunch with him today and we talked about this issue :)

c-koi commented 5 years ago

Should be fixed by 9e98ec8d86c606b12d5caa58e7c762fed52dc2f4

dafrasaga commented 5 years ago

Hi c-koi, thanks thanks thanks. It worked!! It's as in this moments I like FOSS.