Page 1 of 1

cross compiling in linux

Posted: 14 Sep 2010, 04:20
by perv
I am trying to cross-compile (for Windows) the 29.1 client in Fedora Linux. I have read the README.cmake file, and have installed mingw32, but I am not sure where to go from there. For example, the README refers to the installation path of mingw32, but I installed mingw32 via yum, so as far as I can tell, I have some executables in /usr/bin, but... I am lost.

Does anyone here have any experience with this sort of thing? Any help would be greatly appreciated.

Re: cross compiling in linux

Posted: 14 Sep 2010, 18:51
by Cotillion
perv wrote:I am trying to cross-compile (for Windows) the 29.1 client in Fedora Linux. I have read the README.cmake file, and have installed mingw32, but I am not sure where to go from there. For example, the README refers to the installation path of mingw32, but I installed mingw32 via yum, so as far as I can tell, I have some executables in /usr/bin, but... I am lost.

Does anyone here have any experience with this sort of thing? Any help would be greatly appreciated.
I may be misunderstanding:

If you want the client on linux,
get the latest source from git, follow these directions - http://doc.manasource.org/git_repository

Help can be found on the linux forum - http://forums.themanaworld.org/viewforum.php?f=7
, search for building on linux, I'm a bit lazy otherwise I'd post the direct link that would be of more help.

Immediate assistance is best gained via IRC, read here - http://wiki.themanaworld.org/index.php/ ... channel.3F
, and it should point you to the right # to help you.

It is possible i've missed the boat with your question, I'm still a bit hung over from the Chargers loss last night.

-Cotillion

Re: cross compiling in linux

Posted: 14 Sep 2010, 18:52
by Kage
Cotillion wrote:
perv wrote:I am trying to cross-compile (for Windows) the 29.1 client in Fedora Linux. I have read the README.cmake file, and have installed mingw32, but I am not sure where to go from there. For example, the README refers to the installation path of mingw32, but I installed mingw32 via yum, so as far as I can tell, I have some executables in /usr/bin, but... I am lost.

Does anyone here have any experience with this sort of thing? Any help would be greatly appreciated.
I may be misunderstanding:

If you want the client on linux,
get the latest source from git, follow these directions - http://doc.manasource.org/git_repository

Help can be found on the linux forum - http://forums.themanaworld.org/viewforum.php?f=7
, search for building on linux, I'm a bit lazy otherwise I'd post the direct link that would be of more help.

Immediate assistance is best gained via IRC, read here - http://wiki.themanaworld.org/index.php/ ... channel.3F
, and it should point you to the right # to help you.

It is possible i've missed the boat with your question, I'm still a bit hung over from the Chargers loss last night.

-Cotillion
No, he wants to build the windows client on the Linux OS.

Re: cross compiling in linux

Posted: 14 Sep 2010, 19:21
by Cotillion
Kage wrote:No, he wants to build the windows client on the Linux OS.
oO.png
oO.png (1.84 KiB) Viewed 2526 times

Re: cross compiling in linux

Posted: 14 Sep 2010, 20:44
by perv
Thanks for the replies, guys. I guess I should clarify a bit:

Kage is correct: I am trying to compile a Windows executable on my Fedora box.

I pulled down the latest client source from git, and installed mingw32. There is a file named README.cmake in the top level of the git files. This file has a section devoted to cross-compiling, and describes how to create a toolchain file containing:

SET(CMAKE_FIND_ROOT_PATH /build/mingw32 /build/tmw-libs )

But that line assumes that mingw32 is installed in /build.

If anyone has any experience cross-compiling tmw, or knows who wrote that section of README.cmake, I'd be very grateful for your reply.

Re: cross compiling in linux

Posted: 15 Sep 2010, 05:19
by Jaxad0127
Try changing it to the path your distro put it in.

Re: cross compiling in linux

Posted: 16 Sep 2010, 08:54
by perv
I ultimately decided to compile on a Windows box. I feel dirty, but it works.

Re: cross compiling in linux

Posted: 16 Sep 2010, 14:07
by Jaxad0127
If you can come to the #mana channel on irc.freenode.net, Aard can help you. He wrote that file and has the Mana nightlies building under BSD.

Re: cross compiling in linux

Posted: 27 Sep 2010, 19:21
by perv
Thanks to all who replied. It turns out that Code::Blocks is a reasonably good tool, and compiling on Windows is much less painful than cross-compiling on Linux. I had failed to properly identify my objective - a Windows .exe.

Re: cross compiling in linux

Posted: 05 Oct 2010, 16:12
by Try-zar
May I ask why you wanted to compile the Windows binary for a Linux system? Why not just use the Linux version?