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: 14 Sep 2010, 03:32

cross compiling in linux

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

Re: cross compiling in linux

Post 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
User avatar
Kage
Manasource
Manasource
Posts: 929
Joined: 02 May 2009, 18:12

Re: cross compiling in linux

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

Re: cross compiling in linux

Post by Cotillion »

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

Re: cross compiling in linux

Post 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.
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: cross compiling in linux

Post by Jaxad0127 »

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

Re: cross compiling in linux

Post by perv »

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

Re: cross compiling in linux

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

Re: cross compiling in linux

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

Re: cross compiling in linux

Post 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?
Post Reply