[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-windows
Subject:    Re: How to build a 3rd party kde-app on windows?
From:       mehrdad momeny <mehrdad.momeny () gmail ! com>
Date:       2009-04-03 12:49:14
Message-ID: 479f3d5e0904030548p35df1664t15b3d9a7204918e9 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@gmail.com> wrote:

> 2009/4/3 Mehrdad Momeny <mehrdad.momeny@gmail.com>:
> >
> > On Jumee 14 Farvardin 1388 15:11:15 Carlo wrote:
> >> 2009/4/3 Mehrdad Momeny <mehrdad.momeny@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@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@kde.org
> >> https://mail.kde.org/mailman/listinfo/kde-windows
> >
> >
> > _______________________________________________
> > Kde-windows mailing list
> > Kde-windows@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@kde.org
> https://mail.kde.org/mailman/listinfo/kde-windows
>

[Attachment #5 (text/html)]

Thanks for guid,<br>It passes that level!<br>But, fails at linking stage!<br><br>Here \
it is more info:<br><br>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.)<br> BTW the install dir is C:\KDE now! :D<br><br>Choqok src is at \
C:\choqok<br><br>Cmake command:<br>C:\choqok\build&gt;cmake.exe -G &quot;MinGW \
Makefiles&quot; .. -DCMAKE_INCLUDE_PATH=c:\kde\include \
-DCMAKE_LIBRARY_PATH=c:\kde\lib -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=c:\kde<br> <br>Make \
Result:<br>C:\choqok\build&gt;make<br>.<br>.<br>.<br>[ 96%] Building CXX object \
src/CMakeFiles/choqok.dir/account.obj<br>[100%] Building CXX object \
src/CMakeFiles/choqok.dir/settings.obj<br>make[2]: *** No rule to make target \
`D:/kde/kde-mingw/lib/libQtSvg4.a&#39;, needed by `bin/choqok.exe&#39;.   Stop.<br> \
make[1]: *** [src/CMakeFiles/choqok.dir/all] Error 2<br>make: *** [all] Error \
2<br><br><br>It seems that problem is that it try to find libraries at D:/kde/... but \
there isn&#39;t such a dir and I set the lib dir (on cmake command) to c:\kde\lib<br> \
And i don&#39;t remember any other place i set this! :-/<br><br>Thanks for helps \
:)<br>Mehrdad<br><br><div class="gmail_quote">On Fri, Apr 3, 2009 at 4:18 PM, Carlo \
<span dir="ltr">&lt;<a href="http://brandon.ml">brandon.ml</a>@<a \
href="http://gmail.com">gmail.com</a>&gt;</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;"><div class="im">2009/4/3 Mehrdad Momeny &lt;<a \
href="mailto:mehrdad.momeny@gmail.com">mehrdad.momeny@gmail.com</a>&gt;:<br>

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



_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic