cross compiling in linux

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
perv
Newly Registered User
Posts: 5
Joined: Tue Sep 14, 2010 4:32 am

cross compiling in linux

Post by perv » Tue Sep 14, 2010 5:20 am

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.
User avatar
Cotillion
Novice
Novice
Posts: 180
Joined: Fri Oct 31, 2008 3:56 am

Re: cross compiling in linux

Post by Cotillion » Tue Sep 14, 2010 7:51 pm

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
User avatar
Kage
Warrior
Warrior
Posts: 927
Joined: Sat May 02, 2009 7:12 pm

Re: cross compiling in linux

Post by Kage » Tue Sep 14, 2010 7:52 pm

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.
<Kage_Jittai> ... are you saying I am elite :D
<thorbjorn> Yes. :P
User avatar
Cotillion
Novice
Novice
Posts: 180
Joined: Fri Oct 31, 2008 3:56 am

Re: cross compiling in linux

Post by Cotillion » Tue Sep 14, 2010 8:21 pm

Kage wrote:No, he wants to build the windows client on the Linux OS.
oO.png
oO.png (1.84 KiB) Viewed 1067 times
perv
Newly Registered User
Posts: 5
Joined: Tue Sep 14, 2010 4:32 am

Re: cross compiling in linux

Post by perv » Tue Sep 14, 2010 9:44 pm

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.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: cross compiling in linux

Post by Jaxad0127 » Wed Sep 15, 2010 6:19 am

Try changing it to the path your distro put it in.
Image
perv
Newly Registered User
Posts: 5
Joined: Tue Sep 14, 2010 4:32 am

Re: cross compiling in linux

Post by perv » Thu Sep 16, 2010 9:54 am

I ultimately decided to compile on a Windows box. I feel dirty, but it works.
User avatar
Jaxad0127
TMW Adviser
TMW Adviser
Posts: 4209
Joined: Thu Nov 01, 2007 6:35 pm
Location: Internet

Re: cross compiling in linux

Post by Jaxad0127 » Thu Sep 16, 2010 3:07 pm

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.
Image
perv
Newly Registered User
Posts: 5
Joined: Tue Sep 14, 2010 4:32 am

Re: cross compiling in linux

Post by perv » Mon Sep 27, 2010 8:21 pm

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.
User avatar
Try-zar
Peon
Peon
Posts: 34
Joined: Thu Jul 08, 2010 8:01 am
Location: South Africa
Contact:

Re: cross compiling in linux

Post by Try-zar » Tue Oct 05, 2010 5:12 pm

May I ask why you wanted to compile the Windows binary for a Linux system? Why not just use the Linux version?
Post Reply