LukasT.dev(a)gmail.com wrote:
On Wednesday 19 August 2009 11:21:44 Richard W.M. Jones wrote:
> On Tue, Aug 18, 2009 at 11:54:13AM +0200, LukasT.dev(a)gmail.com wrote:
>> I'm using 32 bit system. Have you got idea how to build kdelibs and
>> basically any cmake based project?
> cmake-based projects should just work. We have a %{_mingw32_cmake}
> RPM macro and a mingw32-cmake program (in sufficiently new releases).
Where can I get them? Are they somewhere in testing repos?
mingw32-cmake script was introduced to mingw32-filesystem starting from
version 51-1, which is only available in rawhide. I am afraid you are
out of luck for F-10 and F-11 installations at this time.
How those rpms are named?
Can you give me an example how to cross-compile with cmake?
On a rawhide installation you probably need to do something like that:
sudo yum install mingw32-gcc-c++ mingw32-qt
cd <your_app_dir>
mkdir build
cd build
mingw32-cmake ..
make
However I haven't tried to actually crosscompile anything using
mignw32-cmake myself, so there might be some more tricks involved.
Compiling qt apps with qmake need QT_LIBINFIX=4 set [1], and for that
reason cmake might not be able to find Qt out of the box.
[1]
https://fedoraproject.org/wiki/MinGW/Tips#Compiling_QT_applications_and_l...
--
Kalev