Pages: 1
  Print  
Author Topic: Compiling Option  (Read 3095 times)
Offline (Male) zesterer
Posted on: April 10, 2013, 08:59:08 AM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
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
Logged
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: April 10, 2013, 10:05:39 AM

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

View Profile Email
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.
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) zesterer
Reply #2 Posted on: April 10, 2013, 10:34:51 AM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
Hmmm... I guess I will have to switch back to actual GM to compile for Windows :(

f***ed up WINE, here we come!
Logged
Offline (Male) Josh @ Dreamland
Reply #3 Posted on: April 10, 2013, 02:50:57 PM

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

View Profile Email
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.
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) TheExDeus
Reply #4 Posted on: April 11, 2013, 07:19:21 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
The windows version Poly made works with newest gcc/mingw.
Logged
Offline (Male) zesterer
Reply #5 Posted on: April 12, 2013, 10:13:35 AM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
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?
Logged
Offline (Male) Josh @ Dreamland
Reply #6 Posted on: April 12, 2013, 11:24:25 AM

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

View Profile Email
If that's all you need, go for it.
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) zesterer
Reply #7 Posted on: April 12, 2013, 11:28:40 AM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
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
Logged
Offline (Male) Josh @ Dreamland
Reply #8 Posted on: April 12, 2013, 11:29:45 AM

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

View Profile Email
I... don't remember, either. I think if you run %TEMP% it'll take you there. I think it's under ~/AppData.
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) zesterer
Reply #9 Posted on: April 12, 2013, 11:32:03 AM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
Ok, thanks for the help  ;)
Logged
Offline (Unknown gender) TheExDeus
Reply #10 Posted on: April 12, 2013, 12:40:31 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
LGM shows what file it runs. Ends with a .tmp. Just copy that file.
Logged
Offline (Male) zesterer
Reply #11 Posted on: April 12, 2013, 01:09:38 PM

Member
Location: Mars
Joined: Jan 2013
Posts: 17

View Profile Email
Ok, thanks :)
Logged
Pages: 1
  Print