How to build a 3rd party kde-app on windows?

mehrdad momeny mehrdad.momeny at gmail.com
Fri Apr 3 14:48:32 CEST 2009


Thanks for guid,
It passes that level!
But, fails at linking stage!

Here it is more info:

KDE install dir is C:\KDE (I installed part of it at C:\Program files\KDE
and after it, i moved the whole dir here and install some other pkgs.)
BTW the install dir is C:\KDE now! :D

Choqok src is at C:\choqok

Cmake command:
C:\choqok\build>cmake.exe -G "MinGW Makefiles" ..
-DCMAKE_INCLUDE_PATH=c:\kde\include -DCMAKE_LIBRARY_PATH=c:\kde\lib
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=c:\kde

Make Result:
C:\choqok\build>make
.
.
.
[ 96%] Building CXX object src/CMakeFiles/choqok.dir/account.obj
[100%] Building CXX object src/CMakeFiles/choqok.dir/settings.obj
make[2]: *** No rule to make target `D:/kde/kde-mingw/lib/libQtSvg4.a',
needed by `bin/choqok.exe'.  Stop.
make[1]: *** [src/CMakeFiles/choqok.dir/all] Error 2
make: *** [all] Error 2


It seems that problem is that it try to find libraries at D:/kde/... but
there isn't such a dir and I set the lib dir (on cmake command) to
c:\kde\lib
And i don't remember any other place i set this! :-/

Thanks for helps :)
Mehrdad

On Fri, Apr 3, 2009 at 4:18 PM, Carlo <brandon.ml at gmail.com> wrote:

> 2009/4/3 Mehrdad Momeny <mehrdad.momeny at gmail.com>:
> >
> > On Jumee 14 Farvardin 1388 15:11:15 Carlo wrote:
> >> 2009/4/3 Mehrdad Momeny <mehrdad.momeny at gmail.com>:
> >> > Hi guys,
> >> > I want to build my KDE app for windows!
> >> > Already installed kdelibs(+dev), kdebase-apps and kdebase-runtime, ...
> >> > via KDE win installer.
> >> > My app is just depend on KDELibs, I think. (It's Choqok, A Microblog
> >> > client. src is at extragear/network)
> >> >
> >> > I check the tutorials, but can't find how should i do this!?
> >> >
> >> > Running Cmake on src dir says that can't find Compilers and I don't
> >> > think
> >> > how could i set for it. :(
> >> >
> >> > And about Emerge tool:
> >> > I already installed those libs, how could i tell it to use them,
> instead
> >> > of build all from src? and how someone can build a third party kde app
> >> > with it?
> >> >
> >> > Any help appreciated :)
> >> > Mehrdad
> >> > _______________________________________________
> >> > Kde-windows mailing list
> >> > Kde-windows at kde.org
> >> > https://mail.kde.org/mailman/listinfo/kde-windows
> >>
> >> if you installed msvc packages you need to install msvc and the
> >> platform sdk while if you installed mingw packages you need mingw
> >> then you need to setup the path properly, for msvc there is a script
> >> setenv.bat somewhere, then choose the right generator for cmake mingw
> >> makefiles for mingw and nmake makefiles for msvc
> > Just installed MinGW(gcc and g++ and make) and its related kde packages!
> > But, how could i tell CMake to use it?
> >
> > Thanks anyway :)
> >> _______________________________________________
> >> Kde-windows mailing list
> >> Kde-windows at kde.org
> >> https://mail.kde.org/mailman/listinfo/kde-windows
> >
> >
> > _______________________________________________
> > Kde-windows mailing list
> > Kde-windows at kde.org
> > https://mail.kde.org/mailman/listinfo/kde-windows
> >
> >
>
> you have to set the path properly, follow the mingw section of the
> guide linked by ralf
> _______________________________________________
> Kde-windows mailing list
> Kde-windows at kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-windows/attachments/20090403/0b7b35f4/attachment.htm 


More information about the Kde-windows mailing list