Hi again,<br>I set the kdepimlibs dir for it ( -DKdepimLibs_DIR=C:\KDE\lib\cmake\KdepimLibs-4.2.0 ) and it passes cmake checks<br><br>First i have to tell that I'm trying to build "Bilbo Blogger" > <a href="http://bilbo.gnufolks.org/" target="_blank">http://bilbo.gnufolks.org/</a> a KDE Blogging client<br>
It uses a modified version of KBlog lib (called here BilboKBlog)<br><br>And at compile time i get this:<br><br>C:\Documents and Settings\mehrdad\Desktop\bilbo-0.9\build>make<br>Scanning dependencies of target bilbokblog_automoc<br>
Generating gdata.moc<br>Generating metaweblog.moc<br>Generating blogger1.moc<br>Generating blog.moc<br>Generating wordpressbuggy.moc<br>Generating movabletype.moc<br>[ 0%] Built target bilbokblog_automoc<br>Scanning dependencies of target bilbokblog<br>
[ 1%] Building CXX object bilbokblog/CMakeFiles/bilbokblog.dir/bilbokblog_autom<br>oc.obj<br>[ 3%] Building CXX object bilbokblog/CMakeFiles/bilbokblog.dir/blog.obj<br>C:\Documents and Settings\mehrdad\Desktop\bilbo-0.9\bilbokblog\blog.cpp:66: warn<br>
ing: non-inline function 'void KBlog::Blog::setUserAgent(const QString&, const Q<br>String&)' is defined after prior declaration as dllimport: attribute ignored<br>C:\Documents and Settings\mehrdad\Desktop\bilbo-0.9\bilbokblog\blog.cpp:66: warn<br>
ing: 'void KBlog::Blog::setUserAgent(const QString&, const QString&)' defined lo<br>cally after being referenced with dllimport linkage<br>In file included from C:\Documents and Settings\mehrdad\Desktop\bilbo-0.9\bilbok<br>
blog\blog.cpp:147:<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:62: error: definit<br>ion of static data member 'KBlog::Blog::staticMetaObject' of dllimport'd class<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:62: warning: 'KBlo<br>
g::Blog::staticMetaObject' defined locally after being referenced with dllimport<br> linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:104: warning: non-<br>inline function 'void KBlog::Blog::listedRecentPosts(const QList<KBlog::BlogPost<br>
>&)' is defined after prior declaration as dllimport: attribute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:104: warning: 'voi<br>d KBlog::Blog::listedRecentPosts(const QList<KBlog::BlogPost>&)' defined locally<br>
after being referenced with dllimport linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:111: warning: non-<br>inline function 'void KBlog::Blog::createdPost(KBlog::BlogPost*)' is defined aft<br>
er prior declaration as dllimport: attribute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:111: warning: 'voi<br>d KBlog::Blog::createdPost(KBlog::BlogPost*)' defined locally after being refere<br>
nced with dllimport linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:118: warning: non-<br>inline function 'void KBlog::Blog::fetchedPost(KBlog::BlogPost*)' is defined aft<br>er prior declaration as dllimport: attribute ignored<br>
C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:118: warning: 'voi<br>d KBlog::Blog::fetchedPost(KBlog::BlogPost*)' defined locally after being refere<br>nced with dllimport linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:125: warning: non-<br>
inline function 'void KBlog::Blog::modifiedPost(KBlog::BlogPost*)' is defined af<br>ter prior declaration as dllimport: attribute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:125: warning: 'voi<br>
d KBlog::Blog::modifiedPost(KBlog::BlogPost*)' defined locally after being refer<br>enced with dllimport linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:132: warning: non-<br>inline function 'void KBlog::Blog::removedPost(KBlog::BlogPost*)' is defined aft<br>
er prior declaration as dllimport: attribute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:132: warning: 'voi<br>d KBlog::Blog::removedPost(KBlog::BlogPost*)' defined locally after being refere<br>
nced with dllimport linkage<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:139: warning: non-<br>inline function 'void KBlog::Blog::error(KBlog::Blog::ErrorType, const QString&)<br>' is defined after prior declaration as dllimport: attribute ignored<br>
C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:139: warning: 'voi<br>d KBlog::Blog::error(KBlog::Blog::ErrorType, const QString&)' defined locally af<br>ter being referenced with dllimport linkage<br>
C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:146: warning: non-<br>inline function 'void KBlog::Blog::errorPost(KBlog::Blog::ErrorType, const QStri<br>ng&, KBlog::BlogPost*)' is defined after prior declaration as dllimport: attribu<br>
te ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:146: warning: 'voi<br>d KBlog::Blog::errorPost(KBlog::Blog::ErrorType, const QString&, KBlog::BlogPost<br>*)' defined locally after being referenced with dllimport linkage<br>
C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:153: warning: non-<br>inline function 'void KBlog::Blog::errorMedia(KBlog::Blog::ErrorType, const QStr<br>ing&, KBlog::BlogMedia*)' is defined after prior declaration as dllimport: attri<br>
bute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:153: warning: 'voi<br>d KBlog::Blog::errorMedia(KBlog::Blog::ErrorType, const QString&, KBlog::BlogMed<br>ia*)' defined locally after being referenced with dllimport linkage<br>
C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:160: warning: non-<br>inline function 'void KBlog::Blog::errorComment(KBlog::Blog::ErrorType, const QS<br>tring&, KBlog::BlogPost*, KBlog::BlogComment*)' is defined after prior declarati<br>
on as dllimport: attribute ignored<br>C:/DOCUME~1/mehrdad/Desktop/bilbo-0.9/build/BILBOK~1/blog.moc:160: warning: 'voi<br>d KBlog::Blog::errorComment(KBlog::Blog::ErrorType, const QString&, KBlog::BlogP<br>ost*, KBlog::BlogComment*)' defined locally after being referenced with dllimpor<br>
t linkage<br>make[2]: *** [bilbokblog/CMakeFiles/bilbokblog.dir/blog.obj] Error 1<br>make[1]: *** [bilbokblog/CMakeFiles/bilbokblog.dir/all] Error 2<br>make: *** [all] Error 2<br><br>Do anybody have any idea about it!?<br>
<br>Thanks,<br>Mehrdad<br><br><div class="gmail_quote">On Mon, Apr 6, 2009 at 12:08 AM, mehrdad momeny <span dir="ltr"><<a href="mailto:mehrdad.momeny@gmail.com" target="_blank">mehrdad.momeny@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to build a kdepimlibs depended project!<br>But Cmake could not find KDEPIMLibs! :-/<br>I already installed kdepimlibs(Bin+Devel) as well as kdelibs with kde win installer (Trying kde 4.2.1 packages)<br><br>
Here is the output:<br>
<br><i>C:\Documents and Settings\mehrdad\Desktop\bilbo-0.9\build></i><b>cmake.exe -G "MinGW Ma<br>kefiles" .. -DCMAKE_INCLUDE_PATH=c:\kde\include -DCMAKE_LIBRARY_PATH=c:\kde\lib -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=c:\kde</b><br>
-- Found Qt-Version 4.4.3 (using C:/KDE/bin/qmake.exe)<br>-- Found kdewin32 library: C:/KDE/lib/libkdewin32.dll.a<br>-- Phonon Version: 4.3.0<br>-- Found KDE 4.2 include dir: C:/KDE/include<br>-- Found KDE 4.2 library dir: C:/KDE/lib<br>
-- Found the KDE4 kconfig_compiler preprocessor: C:/KDE/bin/kconfig_compiler.exe<br><br>-- Found automoc4: C:/KDE/bin/automoc4.exe<br>CMake Error at C:/KDE/share/cmake-2.6/Modules/FindPackageHandleStandardArgs.cmak<br>e:57 (MESSAGE):<br>
Could NOT find KdepimLibs (missing: KdepimLibs_CONFIG)<br>Call Stack (most recent call first):<br> C:/KDE/share/apps/cmake/modules/FindKdepimLibs.cmake:73 (find_package_handle_s<br>tandard_args)<br> CMakeLists.txt:7 (find_package)<br>
<br><br>-- Configuring incomplete, errors occurred!<br><br>Thanks,<br><font color="#888888">Mehrdad<br>
</font></blockquote></div><br>