SFML community forums

Help => General => Topic started by: MadSiser on February 07, 2019, 12:46:10 pm

Title: (Linux C::B) Cross compiling
Post by: MadSiser on February 07, 2019, 12:46:10 pm
How can I make *.exe file in Linux Code::Blocks? I want send my project to friend which can't compiling, so I want create file which when he clicked will be working.
Write me it in steps, please.
Title: Re: (Linux C::B) Cross compiling
Post by: Laurent on February 07, 2019, 02:13:31 pm
The same as when you compile for Linux, but with a cross-compiler. You'd better find a proper tutorial, than waiting for people to explain on a forum.

Besides, this is the SFML forum, so please focus on SFML related questions.
Title: Re: (Linux C::B) Cross compiling
Post by: MadSiser on February 11, 2019, 11:21:52 pm
Yeah but all tutorials says about Windows. I can't find information about that.  :(
Title: Re: (Linux C::B) Cross compiling
Post by: Laurent on February 12, 2019, 08:46:43 am
The very first Google result is a stackoverflow thread (https://stackoverflow.com/questions/2033997/how-to-compile-for-windows-on-linux-with-gcc-g) with plenty of useful information. It even gives a link to a tutorial for Code::Blocks (http://forums.codeblocks.org/index.php?topic=3343.0). So please don't say you can't find anything ;)
Title: Re: (Linux C::B) Cross compiling
Post by: MadSiser on March 01, 2019, 05:35:05 pm
I was do it but still do not work (worked in project without SFML libraries). I have linked all libraries and added macro but I have error.
Title: Re: (Linux C::B) Cross compiling
Post by: catalinnic on March 02, 2019, 11:45:19 am
you can use wine with codeblocks for windows or you can install mingw to compile for windows