Pages: 1 2
Author Topic: Cross Compiling  (153,412 Views)
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Posted on: May 20, 2013, 02:17:20 AM
In the past it was necessary that you build your project from the platform you intend to target, each platform. This may be a bit a pain in the but for indie devs who don't have 3 different computers or dual boot. So fundies has decided to start our cross compiler abilities and has created a nice patch for everyone.

Here is me testing it on Ubuntu...


**** Prerequisite Packages *****

sudo apt-get install mingw-w64-i686-dev g++-mingw-w64-i686


***** Instructions *****
1) Install ENIGMA
2) [snip]cd your_enigma_install_directory[/snip]
3) [snip]wget http://awesome-toons.org/WinPatch.zip[/snip]
4) [snip]unzip WinPatch.zip[/snip]
5) You may optionally install WINE Emulator to ensure your game built correctly before testing it on Windows if you are on Linux
6) Go to ENIGMA->ENIGMA Settings and set audio system to SFML or None as OpenAL does not work with MinGW32
7) Set compiler to MinGW32
8) Test compile an empty game
9) You should be good to go!  (Y)

***** Running Games *****
32-bit Debian or Ubuntu : [snip]apt-get install fglrx-glx or libgl1-mesa-glx or nvidia-glx or nvidia-glx-legacy-96xx[/snip]
64-bit Debian or Ubuntu : [snip]apt-get install fglrx-glx-ia32 or ia32-libs or nvidia-glx-ia32 or nvidia-glx-legacy-96xx-ia32[/snip]

Please give feedback and suggestions and discuss the future development of this in this topic.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #1 Posted on: May 20, 2013, 06:13:32 AM
great!!  (Y)
i try now to follow guide
EDIT
o my... it compile  ;D
but this have sense, i'm idiot
Quote6) Go to ENIGMA->ENIGMA Settings and set audio system to SFML or None as OpenAL does not work with MinGW32
openal not go in windows, i have the problem with this,  ;D
Thanks for this, the system switch for compile is bad
i'm happy  (Y) (Y) (Y)
EDIT2
in fedora wine with open video driver, not view game, i have tessted three month ago, in ubuntu wine run fine with ati open driver
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #2 Posted on: May 22, 2013, 07:44:28 PM
Er...
I tried compiling with and empty game, and installed all dependencies. I got this error:

http://pastebin.com/ERiUMSk4

:S

-Zesterer (Xen)
Offline (Unknown gender) IsmAvatar

LateralGM Developer
LGM Developer
Joined: Apr 2008
Posts: 877
View profile
Reply #3 Posted on: May 22, 2013, 09:05:22 PM
make[1]: i486-mingw32-g++: Command not found

Seems to suggest you don't have g++ installed? Or maybe it's expecting a specific version of g++ which isn't yours.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #4 Posted on: May 27, 2013, 09:08:53 PM
Quotemake[1]: i486-mingw32-g++: Command not found
i have this error in first time, but i have follow guide and enigma compile  ;)
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #5 Posted on: May 29, 2013, 05:53:40 AM
hey Robert, but can i compile 32bit ubuntu bin in 64 bit sistem?
i have, for example install libopenal 32bit, but enigma don't recognize it
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #6 Posted on: May 30, 2013, 09:45:27 AM
It should be able to gra, do you by chance have both the 32 and 64bit libraries?, they could be getting mixed. I am generally not so good with this kind of stuff and cheeseboy is the one who made this. But yes theoretical what you are trying to do gra should be possible and if not it should be fixed.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #7 Posted on: May 31, 2013, 08:16:56 PM
Quotemake[1]: i486-mingw32-g++: Command not found
i have find the error, if i select mingw64, but mingw32 go well
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #8 Posted on: May 31, 2013, 09:27:58 PM
Oh gra, are you installing from source code using github or are you using the new windows installer? Because we had the wrong MinGW version linked on the download page for sometime.
Offline (Unknown gender) gra

Member
Joined: Feb 2013
Posts: 147
View profile
Reply #9 Posted on: June 01, 2013, 06:17:28 AM
this error is on ubuntu
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #10 Posted on: June 01, 2013, 08:28:27 AM
Yah you might have installed MinGW32 when you need MinGW64 :P
Offline (Unknown gender) intygamer

Member
Joined: Mar 2013
Posts: 77
View profile
Reply #11 Posted on: July 03, 2013, 04:52:06 PM
Hi

I copied the above command to download windows compiler on ubuntu 12.04 and got the following message.

------------------------------------------------------------------------------------------------------------------------------------------------
joey@joey-Dimension-8250:~$ sudo apt-get install mingw-w64-i686-dev g++-mingw-w64-i686
[sudo] password for joey:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mingw-w64-i686-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mingw-w64-i686-dev' has no installation candidate
joey@joey-Dimension-8250:~$
------------------------------------------------------------------------------------------------------------------------------------------------

Please help.
Thanks
Joe
Offline (Unknown gender) intygamer

Member
Joined: Mar 2013
Posts: 77
View profile
Reply #12 Posted on: July 03, 2013, 05:01:02 PM
I tried to download the programs to run the windows compiled games in ubuntu, below is the result

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
joey@joey-Dimension-8250:~$ sudo apt-get install fglrx-glx or libgl1-mesa-glx or nvidia-glx or nvidia-glx-legacy-96xx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package fglrx-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package nvidia-glx is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'fglrx-glx' has no installation candidate
E: Unable to locate package or
E: Unable to locate package or
E: Package 'nvidia-glx' has no installation candidate
E: Unable to locate package or
E: Unable to locate package nvidia-glx-legacy-96xx
joey@joey-Dimension-8250:~$
------------------------------------------------------------------------------

Maybe I need to add repository to download these?

Thanks
Joe
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #13 Posted on: July 08, 2013, 07:52:59 AM
intygamer, I can't say much about this as I did not create it, cheeseboy did and forced me to post it >:
Offline (Unknown gender) intygamer

Member
Joined: Mar 2013
Posts: 77
View profile
Reply #14 Posted on: July 08, 2013, 10:37:13 PM
Thanks Robert for responding.

I will wait for Josh to respond.  I probally need to add the repo to ubuntu for the terminal command to work.  Ubuntu repo has a mingw64 compiler, but not the one in command line sudo apt-get install mingw-w64-i686-dev g++-mingw-w64-i686

I looked under downloading windows version of enigma by source and seen the link for http://tdm-gcc.tdragon.net/download I'm not sure if I can use these for ubuntu and did not see the exact files listed.

Thanks
Joe
Pages: 1 2