Pages: 1 2 »
  Print  
Author Topic: Cross Compiling  (Read 15985 times)
Offline (Male) Goombert
Posted on: May 19, 2013, 09:17:20 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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 *****
Code: [Select]
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.
« Last Edit: May 19, 2013, 09:56:50 pm by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) gra
Reply #1 Posted on: May 20, 2013, 01:13:32 am

Member
Joined: Feb 2013
Posts: 147

View Profile
great!!  (Y)
i try now to follow guide
EDIT
o my... it compile  ;D
but this have sense, i'm idiot
Quote
6) 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
« Last Edit: May 20, 2013, 01:57:31 am by gra » Logged
Offline (Male) zesterer
Reply #2 Posted on: May 22, 2013, 02:44:28 pm

Member
Location: Mars
Joined: Jan 2013
Posts: 16

View Profile Email
Er...
I tried compiling with and empty game, and installed all dependencies. I got this error:

http://pastebin.com/ERiUMSk4

:S

-Zesterer (Xen)
Logged
Offline (Female) IsmAvatar
Reply #3 Posted on: May 22, 2013, 04:05:22 pm

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
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.
Logged
Offline (Unknown gender) gra
Reply #4 Posted on: May 27, 2013, 04:08:53 pm

Member
Joined: Feb 2013
Posts: 147

View Profile
Quote
make[1]: i486-mingw32-g++: Command not found
i have this error in first time, but i have follow guide and enigma compile  ;)
Logged
Offline (Unknown gender) gra
Reply #5 Posted on: May 29, 2013, 12:53:40 am

Member
Joined: Feb 2013
Posts: 147

View Profile
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
Logged
Offline (Male) Goombert
Reply #6 Posted on: May 30, 2013, 04:45:27 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) gra
Reply #7 Posted on: May 31, 2013, 03:16:56 pm

Member
Joined: Feb 2013
Posts: 147

View Profile
Quote
make[1]: i486-mingw32-g++: Command not found
i have find the error, if i select mingw64, but mingw32 go well
Logged
Offline (Male) Goombert
Reply #8 Posted on: May 31, 2013, 04:27:58 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
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.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) gra
Reply #9 Posted on: June 01, 2013, 01:17:28 am

Member
Joined: Feb 2013
Posts: 147

View Profile
this error is on ubuntu
Logged
Offline (Male) Goombert
Reply #10 Posted on: June 01, 2013, 03:28:27 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Yah you might have installed MinGW32 when you need MinGW64 :P
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) intygamer
Reply #11 Posted on: July 03, 2013, 11:52:06 am

Member
Joined: Mar 2013
Posts: 77

View Profile Email
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
Logged
Offline (Unknown gender) intygamer
Reply #12 Posted on: July 03, 2013, 12:01:02 pm

Member
Joined: Mar 2013
Posts: 77

View Profile Email
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
Logged
Offline (Male) Goombert
Reply #13 Posted on: July 08, 2013, 02:52:59 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
intygamer, I can't say much about this as I did not create it, cheeseboy did and forced me to post it >:
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) intygamer
Reply #14 Posted on: July 08, 2013, 05:37:13 pm

Member
Joined: Mar 2013
Posts: 77

View Profile Email
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
Code: [Select]
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
Logged
Pages: 1 2 »
  Print