KOffice cross compilation

LukasT.dev@gmail.com lukast.dev at gmail.com
Thu Aug 20 16:36:46 UTC 2009


On Wednesday 19 August 2009 17:15:58 Itamar Reis Peixoto wrote:
> with a fedora 10, 11 or rawhide
>
> try
>
>
> yum -y install mingw32\*
>
> mingw32-configure
> mingw32-make
>

CMake is not configure.
Just to ensure you, I tried what you suggested in kdelibs-4.3.0/
I thought that there will be something like mingw32-cmake but there is not..
Any idea?

./mingw32-configure
getopt: unrecognized option '--cache-file=mingw32-config.cache'
getopt: unrecognized option '--host=i686-pc-mingw32'
getopt: unrecognized option '--build=i686-pc-linux-gnu'
getopt: unrecognized option '--target=i686-pc-mingw32'
getopt: unrecognized option '--exec-prefix=/usr/i686-pc-mingw32/sys-root/mingw'
getopt: unrecognized option '--localstatedir=/usr/i686-pc-mingw32/sys-
root/mingw/var'
getopt: unrecognized option '--sharedstatedir=/usr/i686-pc-mingw32/sys-
root/mingw/com'

KDE4 uses the CMake (http://www.cmake.org) buildsystem instead of configure.
CMake uses different options than configure, but some have direct equivalents:
   <srcdir>           : the source directory
   --prefix=<dir>     : -DCMAKE_INSTALL_PREFIX:PATH=<dir>
   --bindir=<dir>     : -DBIN_INSTALL_DIR:PATH=<dir>
   --includedir=<dir> : -DINCLUDE_INSTALL_DIR:PATH=<dir>
   --libdir=<dir>     : -DLIB_INSTALL_DIR:PATH=<dir>
Once CMake has run successfully, you can use "make edit_cache" to view and 
modify all settings.
For more information visit 
"http://techbase.kde.org/Development/Tutorials/CMake#Run_CMake"

Your current configure options translate more or less to:
   cmake -DCMAKE_INSTALL_PREFIX:PATH='/usr/i686-pc-mingw32/sys-root/mingw' -
DBIN_INSTALL_DIR:PATH='/usr/i686-pc-mingw32/sys-root/mingw/bin' -
DLIB_INSTALL_DIR:PATH='/usr/i686-pc-mingw32/sys-root/mingw/lib' -
DINCLUDE_INSTALL_DIR:PATH='/usr/i686-pc-mingw32/sys-root/mingw/include' . ; 
make ; make install



More information about the mingw mailing list