Hi i seem i can't build digikam from trunk.
First of all Gilles' bootstrap doesn't work for x86_64 arch, but that's not the point, will provide a better one later. Anyway the real point is i can't build it because from graphics cmake fails: CMake Error: IMLIB_DIR is not set. It must be set to the directory containing IMLIBConfig.cmake in order to use IMLIB. the failing line is macro_optional_find_package(IMLIB) I seem to have imlib installed, but i don't know what cmake is looking for.... So i commented that line and after that it seems cmake (or kde stuff don't know) does not care of PKG_CONFIG_PATH, after running cmake i've got (libkipi for instance): [...] -- Found Kipi library in cache: /usr/lib64/libkipi.so [...] -- libkipi library found.......... YES That means the kde3 one, but pkg-config libkipi --cflags --libs -I/home/angelo/src/KDE/TEST-KDE4/include -L/home/angelo/src/KDE/TEST-KDE4/lib64 -lkipi That means pkg-config knows what taking thanks to PKG_CONFIG_PATH, e.g. my local installation... Any help? Thanks Angelo _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
On Wednesday 13 February 2008 Angelo Naselli wrote:
> Hi i seem i can't build digikam from trunk. > First of all Gilles' bootstrap doesn't work for x86_64 > arch, but that's not the point, will provide a better > one later. > Anyway the real point is i can't build it because from > graphics cmake fails: > CMake Error: IMLIB_DIR is not set. It must be set to the directory containing IMLIBConfig.cmake in order to use IMLIB. > the failing line is macro_optional_find_package(IMLIB) > I seem to have imlib installed, but i don't know what cmake is > looking for.... > So i commented that line and after that it seems cmake (or kde stuff don't know) > does not care of PKG_CONFIG_PATH, after running cmake i've got > (libkipi for instance): > [...] > -- Found Kipi library in cache: /usr/lib64/libkipi.so > [...] > -- libkipi library found.......... YES > That means the kde3 one, but > pkg-config libkipi --cflags --libs > -I/home/angelo/src/KDE/TEST-KDE4/include -L/home/angelo/src/KDE/TEST-KDE4/lib64 -lkipi > > That means pkg-config knows what taking thanks to PKG_CONFIG_PATH, e.g. my local > installation... > > Any help? Gerhard > Thanks > Angelo > -- ><((((º> ¸.·´¯`·... ><((((º> ¸.·´¯`·...¸ ><((((º> http://www.gerhard.fr _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
> > Any help?
> > This has to do with you KDE4 installation, Angelo, cmake does not find the macros that come with > KDE4 like macro_optional_find_package. Find these macros and link that directory > into the cmake macro folder (anyway, that's the way I solved it for me). Thanks Gerhard, but i cannot understand what i've missed :/ If you know which file contains that macro i can try to find the right package or where should it be... Angelo _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
Le Wednesday 13 February 2008 22:44:39 Angelo Naselli, vous avez écrit :
> > > Any help? > > > > This has to do with you KDE4 installation, Angelo, cmake does not find > > the macros that come with KDE4 like macro_optional_find_package. Find > > these macros and link that directory into the cmake macro folder (anyway, > > that's the way I solved it for me). > > Thanks Gerhard, but i cannot understand what i've missed :/ > If you know which file contains that macro i can try to find the right > package or where should it be... I have exactly the same problem. As workaround, I commented two lines in extragear/graphics/CMakeLists.txt. Here is the diff --- CMakeLists.txt (révision 774217) +++ CMakeLists.txt (copie de travail) @@ -10,11 +10,11 @@ macro_optional_find_package(OpenGL) macro_optional_find_package(Freetype) -macro_optional_find_package(IMLIB) +#macro_optional_find_package(IMLIB) macro_optional_find_package(Boost) MACRO_LOG_FEATURE(OPENGL_FOUND "libopengl" "OpenGL lib is needed to build the kpovmodeler project" "http://www.X.org/" FALSE "" "") -MACRO_LOG_FEATURE(IMLIB_FOUND "imlib" "imlib is needed to build kuickshow project" "http://freshmeat.net/projects/imlib/" FALSE "" "") +#MACRO_LOG_FEATURE(IMLIB_FOUND "imlib" "imlib is needed to build kuickshow project" "http://freshmeat.net/projects/imlib/" FALSE "" "") add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1) include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES}) I hope it will solve your problem Philippe _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
> Hi Angelo,
> > I have exactly the same problem. As workaround, I commented two lines in extragear/graphics/CMakeLists.txt. Here is the diff > > --- CMakeLists.txt (révision 774217) > +++ CMakeLists.txt (copie de travail) [...] > I hope it will solve your problem > Thanks Philippe, but that solves only the first cmake problem, and i've already commented those lines. The unresolved one intead is concerning PKG_CONFIG_PATH I seem i cannot get the right compiler flags and path for libkipi-libkexiv2 and libkdcarw that i have compiled and installed locally into my home. Angelo _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
In reply to this post by Bugzilla from anaselli@linux.it
On Wednesday 13 February 2008 Angelo Naselli wrote:
> > > Any help? > > > > This has to do with you KDE4 installation, Angelo, cmake does not find the macros that come with > > KDE4 like macro_optional_find_package. Find these macros and link that directory > > into the cmake macro folder (anyway, that's the way I solved it for me). > Thanks Gerhard, but i cannot understand what i've missed :/ > If you know which file contains that macro i can try to find the right package > or where should it be... > > Angelo > /usr/share/cmake-2.4/Modules The Kde4 provided modules are here (in my case): /usr/lib/kde4/share/kde4/apps/cma-modules/ Here you find for example MacroOptionalFindPackage.cmake So I linked the modules from /usr/lib/kde4/share/kde4/apps/cma-modules/ into /usr/share/cmake-2.4/Modules and cmake found them. Hope that helps you Gerhard -- ><((((º> ¸.·´¯`·... ><((((º> ¸.·´¯`·...¸ ><((((º> http://www.gerhard.fr _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel signature.asc (196 bytes) Download Attachment |
Angelo,
Under Mandriva 2008.0 + cooker, KDE4 cmake modules are installed to : /opt/kde4/share/apps/cmake/modules Best Gilles 2008/2/14, Gerhard Kulzer <[hidden email]>: On Wednesday 13 February 2008 Angelo Naselli wrote: _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Regarding macro_optional_find_package error:
I added FIND_PACKAGE(KDE4 REQUIRED) to digikam/CMakeLists.txt My KDE4 *cmake modules were then found without any other action such as linking, copying etc. I hope this simple fix will work for everyone with this problem. I compiled KDE4 from tarballs. http://www.cmake.org/Wiki/CMake:How_To_Build_KDE4_Software RoyBoy626 _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
2008/3/9, RoyBoy626 <[hidden email]>: Regarding macro_optional_find_package error: this is already in extragear/graphics/CMakeLists.txt. To compile digiKam, you need to checkout whole extragear/graphics, not only extragear/graphics/digikam, and remove all sub-dirs excepted 'cmake' and 'digikam'. Finally run cmake . from extragear/graphics, not from digikam sub-dir directly... Best Gilles Caulier _______________________________________________ Digikam-devel mailing list [hidden email] https://mail.kde.org/mailman/listinfo/digikam-devel |
Free forum by Nabble | Edit this page |