Pages: 1
Author Topic: Compiling Option  (44,225 Views)
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Posted on: April 10, 2013, 01:59:08 PM
Hi,

You guys may know me from being around the forum recently. I got ENIGMA a few months ago, but only really started using it recently. I have compiled a few things, made a few concept engines, perlin noise, etc. Everything seems to work fine, and the compiler is pretty sound as far as I can see. Although the IDE has a lot to be gained, I hear they are working on several others, so thats good.

What I am most concerned about is compiling for other systems. I run Linux Mint 14 (basically Ubuntu 12.10), but I only seem to be able to compile for Linux. When I try Windows or android, I get errors. Is there some kind of 'secondary compiler' I am meant to install for them? I understand that Android relies on the Android API, but that doesn't explain why Windows gives me "error in C++" or something from the compiler.

Thanks for reading,

Zesterer
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #1 Posted on: April 10, 2013, 03:05:39 PM
Something is wrong with the newest MinGW, and I've yet to investigate. I'd say there was something wrong with ENIGMA, but it's worked intermittently in previous releases of MinGW, and it has always worked in GCC on Linux. So basically, I wholly blame MinGW, and it'll be broken like that until I have time to find what's changed, and then it'll be broken again next time the MinGW team updates.

What's most disconcerting is that I originally blamed MinGW-make, but the cross-compiler descriptor instructs ENIGMA to use the regular make, which has proved capable of reading our makefile. So I'm really not sure what's up.
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #2 Posted on: April 10, 2013, 03:34:51 PM
Hmmm... I guess I will have to switch back to actual GM to compile for Windows :(

f***ed up WINE, here we come!
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #3 Posted on: April 10, 2013, 07:50:57 PM
Unfortunately, that's all I can recommend for you. I've talked to cheesesboy, who originally mucked around with the cross-compiler descriptor until he got it sort of working. According to him, ALURE has never built correctly in the cross-compiler toolchain. So even if I did fix whatever it is make is bitching about, it wouldn't do you much good, unfortunately.

I intend to replace ALURE with a custom set of codec managers, eventually. ALURE is a convenience library, so it really doesn't have a place in ENIGMA, as easy as it made life for me. Moreover, KCat changes its interface every five minutes, and Ubuntu is always 12 years behind, so it's really just a messy prospect, maintenance-wise. And to top it all off, since ALURE handles all the codec importing, ENIGMA doesn't have any control over it.

Come to think of it, I may yet be able to use some pieces of ALURE in ENIGMA...

But anyway, the point is that cross-compiling is a mess right now for a number of reasons. It'll be in sooner or later.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #4 Posted on: April 11, 2013, 12:19:21 PM
The windows version Poly made works with newest gcc/mingw.
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #5 Posted on: April 12, 2013, 03:13:35 PM
So does this all mean that compiling for Windows works, but only on Windows? Is it worth using my virtualbox W7 to compile my stuff?
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #6 Posted on: April 12, 2013, 04:24:25 PM
If that's all you need, go for it.
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #7 Posted on: April 12, 2013, 04:28:40 PM
Ok, thanks! I guess thats a solution :)

Btw, where will I find the compiled project on Windows? Is there a /temp equivalent? I've not used Windows in so long I have forgotten :D
Offline (Unknown gender) Josh @ Dreamland

Prince of all Goldfish
Developer
Joined: Feb 2008
Posts: 2,950
View profile
Reply #8 Posted on: April 12, 2013, 04:29:45 PM
I... don't remember, either. I think if you run %TEMP% it'll take you there. I think it's under ~/AppData.
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #9 Posted on: April 12, 2013, 04:32:03 PM
Ok, thanks for the help  ;)
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #10 Posted on: April 12, 2013, 05:40:31 PM
LGM shows what file it runs. Ends with a .tmp. Just copy that file.
Offline (Unknown gender) zesterer

Member
Joined: Jan 2013
Posts: 16
View profile
Reply #11 Posted on: April 12, 2013, 06:09:38 PM
Ok, thanks :)
Pages: 1