[Klone-users] Cross compilation on Linux for Windows

Mickael Auger mickael.auger at gmail.com
Thu Apr 16 05:13:01 EDT 2009


Hi,

I use :
- KLone 2.2.0
- Ubuntu 7.10 with Mingw (my work station)


I wish to compil a win32 binary to execute KLone server on Windows XP.

I install Mingw on my Linux and I create this toolchain file for KLone :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#custom path because mingw is compiled by not install
CROSS = /usr/local/cross-tools/bin/i386-mingw32
MINGW32_CFLAGS =
MINGW32_CXXFLAGS = ${MINGW32_CFLAGS}

CC = ${CROSS}-gcc ${MINGW32_CFLAGS}
LDFLAGS =
CXX = ${CROSS}-g++ ${MINGW32_CXXFLAGS}
CXXFLAGS = ${CFLAGS}
AR = ${CROSS}-ar
RANLIB = ${CROSS}-ranlib
LD = ${CROSS}-ld
NM = ${CROSS}-nm
STRIP = ${CROSS}-strip
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


I compiled my project but it failed :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
...
[wrn] could not find optional dependency 'doxygen'
processing configuration output from cache
make[4]: entrant dans le répertoire «
/home/ma/test_klone/klone-2.2.0_windows/klone-2.2.0/build/target/klone-core-2.2.0
»
make[5]: entrant dans le répertoire «
/home/ma/test_klone/klone-2.2.0_windows/klone-2.2.0/build/target/klone-core-2.2.0/build/libu
»
==> configuring libu with args: --prefix=/usr/local --no_docs --no_array
make[5]: *** [.realconf] Erreur 1
...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


The end of target/kloned-core-2.2.0/build/libu/party.log is :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
...
searching for optional featx feature doxygen
[wrn] could not find optional dependency 'doxygen'
checking for type struct sockaddr_in
compilation failed
[err] failed check on required type struct sockaddr_in!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


I seen the "traget/klone-core-2.2.0/libu/configure" to find the problem and
I seen that "makl_target_name" function returned "custom"
But I wish use the configuration of Mingw for MAKL (OS_WIN, -lwsock32 ...),
so I add in mainly Makefile of KLone :
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
MAKL_PLATFORM = mingw
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

However if I log the "makl_target_name" value in
"traget/klone-core-2.2.0/libu/configure" and in
"traget/klone-core-2.2.0/configure", the value is "custom" but not "mingw".
I don't know how specifiy the "makl_target_name" or the "MAKL_PLATFORM".

I also tested to add "MAKL_PLATFORM" in my toolchain but it's similar.


Please help me ?
Thanks

-- 
Mickaël AUGER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20090416/f4448de8/attachment.htm


More information about the Klone-users mailing list