Summary: | adjustcurves.cpp - can't find version.h | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Treeve Jelbert <treeve> |
Component: | Portability-Compilation | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, christophe |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.10.0 | |
Sentry Crash Report: |
Description
Treeve Jelbert
2008-07-05 09:50:01 UTC
confirmed, but I have a slightly different error message: [ 46%] Building CXX object digikam/imageplugins/adjustcurves/CMakeFiles/digikamimageplugin_adjustcurves.dir/adjustcurves.o /kde4user/Programmieren/graphics/digikam/imageplugins/adjustcurves/adjustcurves.cpp:64:21: error: version.h: No such file or directory /kde4user/Programmieren/graphics/digikam/imageplugins/adjustcurves/adjustcurves.cpp: In constructor ‘DigikamAdjustCurvesImagesPlugin::AdjustCurveDialog::AdjustCurveDialog(QWidget*)’: /kde4user/Programmieren/graphics/digikam/imageplugins/adjustcurves/adjustcurves.cpp:101: error: ‘digiKamVersion’ was not declared in this scope make[2]: *** [digikam/imageplugins/adjustcurves/CMakeFiles/digikamimageplugin_adjustcurves.dir/adjustcurves.o] Error 1 make[1]: *** [digikam/imageplugins/adjustcurves/CMakeFiles/digikamimageplugin_adjustcurves.dir/all] Error 2 make: *** [all] Error 2 Oops, it is not different at all... :-) I'm still not completely awake... I cannot reproduce the problem here. All compile fine using a fresh checkout. In imageplugins/CmakeLists.txt, the include path set is right to find digikam/digikam/version.h. So i don't understand what's wrong. Note : Mandriva 2008.1 with cmake version 2.4-patch 8 Gilles Caulier I also use a fresh checkout, but it is not compiling. I will try to do further investigations. Just for the record. I had exactly the same bug when compiling inside of main svn tree using wiki receipt for KDE compilation. You know, kde/src/extragear/graphics and all other packages around (both svn version and downloaded tarball). But compiling separately, from tarball, even with the same cmakekde macro I was able to compile. Forgot to add: Mandriva 2008.0, gcc 4.3.0, cmake 2.6 It works for me know... very strange. I had to remove CMakeLists.txt in digikam/imageplugins/adjustcurves/ and restore it with svn up. After that, make runs fine. I don't know why it was not updated correctly before. Andi Mik, Go to another plugin sub-folder, like adjustlevels for ex. and run make. it's work ? Gilles possible reason : there's no version.h in src/extragear/graphics/digikam/digikam. Just a version.h.cmake (and the compiler looks in /src/extragear/graphics/digikam/imageplugins/../digikam) you get the same error in the adjustlevels subdir This is what I found out first, no version.h exists. But somehow it compiles right now... after checking out CMakeLists.txt again. But now it hangs here: [ 78%] Building CXX object digikam/themedesigner/CMakeFiles/digikamthemedesigner.dir/main.o /kde4user/Programmieren/graphics/digikam/themedesigner/main.cpp:39:21: error: version.h: No such file or directory /kde4user/Programmieren/graphics/digikam/themedesigner/main.cpp: In function ‘int main(int, char**)’: /kde4user/Programmieren/graphics/digikam/themedesigner/main.cpp:46: error: ‘digiKamVersion’ was not declared in this scope make[2]: *** [digikam/themedesigner/CMakeFiles/digikamthemedesigner.dir/main.o] Error 1 make[1]: *** [digikam/themedesigner/CMakeFiles/digikamthemedesigner.dir/all] Error 2 make: *** [all] Error 2 But again, removing CMakeLists.txt and checking it out again works fine... very strange. Why isn't svn not just updating correctly? Quick and (very) dirty hack that worked here : replace #include "version.h" with #include "../../digikam/version.h" (at least for imagesplugins subdir) r828317 digikam/trunk/extragear/graphics/digikam/CMakeLists.txt: include the directory where the generated version.h is /hug pinotree |