Pages: « 1 2
  Print  
Author Topic: Cross Compiling  (Read 39758 times)
Offline (Male) Josh @ Dreamland
Reply #15 Posted on: July 08, 2013, 06:05:51 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
Sorry; for some reason, I missed your question.

That package installs fine here, though I am on 13.04. Make sure you're on a 64-bit system, and have Universe enabled as a package source.

If you find a different cross-compiler package, that's fine, as long as the binary names are the same or you update them in the configuration file (Compilers/Linux/MinGW*.ey).
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) intygamer
Reply #16 Posted on: July 11, 2013, 07:25:38 pm

Member
Joined: Mar 2013
Posts: 77

View Profile Email
Thanks Josh

I take it regardless of the Mingw64 package that any of these wont run on 32bit machine even in 32bit mode? 

Thanks
Joe



Logged
Offline (Male) Josh @ Dreamland
Reply #17 Posted on: July 11, 2013, 08:15:42 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
MinGW64 should offer an -m32 flag like the rest of the GNU compilers. But you'll need the 32-bit libraries, and I'm not sure if they're included. Obtaining 32-bit native libraries is a chore; obtaining cross-compiler libraries is a huge chore; I can't imagine obtaining the 32-bit cross-compiler libraries. Good luck. ;)
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #18 Posted on: July 11, 2013, 10:16:14 pm

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

View Profile
JoshDreamland, we will eventually work this out the correct way wont we? I mean is that not kind of the point of ENIGMA, build games and they run anywhere? :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 #19 Posted on: July 11, 2013, 10:22:18 pm

Member
Joined: Mar 2013
Posts: 77

View Profile Email
Thanks Josh

I will wait till I get my 64bit machine, see if Santa will hook me up.  lol

Thanks for your help.
Joe

Logged
Offline (Male) Josh @ Dreamland
Reply #20 Posted on: July 13, 2013, 07:03:11 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
If your current machine is 32-bit, then any version of MinGW64 will come with all the correct settings and libraries to build for 32-bit. You should be all set.

Robert: My plan for ENIGMA is "build anywhere, run wherever you build." The best I intend to offer is a distribution mechanism which builds your game for each platform, for you.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) Goombert
Reply #21 Posted on: July 14, 2013, 02:44:10 am

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

View Profile
Ok Josh, but if a dinkhole like Greg can make this cross compiler, I mean, yah :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) gra
Reply #22 Posted on: May 16, 2014, 03:13:43 pm

Member
Joined: Feb 2013
Posts: 147

View Profile
cross compiling news
i have found error in cross compilation, i solved in this mode:
install dependencies
Code: [Select]
sudo apt-get install mingw-w64-i686-dev g++-mingw-w64-i686 winedownload windows patch and copy only the folder ENIGMAsystem in enigma dev
now rename folder in
Code: [Select]
/enigma-dev/ENIGMAsystem/Additional/Windowsin
Code: [Select]
/enigma-dev/ENIGMAsystem/Additional/i686-w64-mingw32ald lets go to compile the windows executable
Logged
Offline (Unknown gender) sorlok_reaves
Reply #23 Posted on: August 22, 2014, 12:25:48 am
Contributor
Joined: Dec 2013
Posts: 260

View Profile
With a bit of hacking, I was able to get Mingw-w64 cross-compiling Windows binaries on Linux. Et voila:

OpenAL seems to be working just fine; the only issue I ran into is that mp3 support is disabled (and mp3s crash the game). I'll be looking into this; I think I just compiled OpenAL with the wrong feature set. But WAVs work just fine, so I'm pretty optimistic.

Unfortunately, a lot of "mingw-lib" packages are missing from Ubuntu, so I had to locally install them myself. This is kind of a pain for the average developer ---I only did it because mingw-32bit on Windows can't actually compile Iji (it's too big).
Logged
Offline (Unknown gender) time-killer-games
Reply #24 Posted on: August 22, 2014, 01:59:54 pm
"Guest"


Email
This is great! GameMaker: Studio beat us to it though. While they may say the contrary on the YoYoGames System Requirements page ...
Quote
Computer running Ubuntu required for export
~ https://www.yoyogames.com/studio/system-requirements

You can technically compile just dandy without a single computer running linux. Trying to "compile" may throw an error saying "Can't connect to Ubuntu" but the files are still outputed anyways and they worked just fine after I sent them to my virtual machine. Since they've done a pretty spotless job at maintaining their Ubuntu export there's really no difference between that and a Windows export in terms of how your games should run. Unless you happen to really like Linux, you don't really need one to compile for it without worry concerning bug complaints.
Logged
Offline (Unknown gender) sorlok_reaves
Reply #25 Posted on: August 22, 2014, 09:38:24 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Yeah, it's not really my intention to compete with YYG. :P This is just because I can't actually compile Iji on Windows (it's too big), so cross-compiling's the only option.

Ok, I wrote a wiki page detailing how I did it:
http://enigma-dev.org/docs/Wiki/CrossCompileWithAudio

I'm still trying to figure out why mp3 won't work; WAVs work fine, so that's very confusing to me. If anyone figures it out, please let me know.
Logged
Offline (Unknown gender) TheExDeus
Reply #26 Posted on: August 24, 2014, 01:59:06 pm

Developer
Joined: Apr 2008
Posts: 1860

View Profile
I think trying to compile with mingw64 on windows would also be a solution, but you would probably have to hit the thing with many rocks to make it work. I can't specifically remember the reason why mingw64 didn't work with ENIGMA on windows.
Logged
Offline (Unknown gender) sorlok_reaves
Reply #27 Posted on: August 24, 2014, 04:47:49 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
I think trying to compile with mingw64 on windows would also be a solution, but you would probably have to hit the thing with many rocks to make it work. I can't specifically remember the reason why mingw64 didn't work with ENIGMA on windows.

That would probably work, but I'm not too experienced with MinGW on Windows, much less its 64-bit woes. Cross-compiling is easier and faster, anyway, but thanks for the advice.
Logged
Pages: « 1 2
  Print