KDEPIMLibs not found!

Carlo brandon.ml at gmail.com
Thu Apr 9 12:29:23 CEST 2009


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


More information about the Kde-windows mailing list