ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: zesterer on April 10, 2013, 08:59:08 am

Title: Compiling Option
Post by: zesterer on April 10, 2013, 08:59:08 am
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
Title: Re: Compiling Option
Post by: Josh @ Dreamland on April 10, 2013, 10:05:39 am
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.
Title: Re: Compiling Option
Post by: zesterer on April 10, 2013, 10:34:51 am
Hmmm... I guess I will have to switch back to actual GM to compile for Windows :(

f***ed up WINE, here we come!
Title: Re: Compiling Option
Post by: Josh @ Dreamland on April 10, 2013, 02: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.
Title: Re: Compiling Option
Post by: TheExDeus on April 11, 2013, 07:19:21 am
The windows version Poly made works with newest gcc/mingw.
Title: Re: Compiling Option
Post by: zesterer on April 12, 2013, 10:13:35 am
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?
Title: Re: Compiling Option
Post by: Josh @ Dreamland on April 12, 2013, 11:24:25 am
If that's all you need, go for it.
Title: Re: Compiling Option
Post by: zesterer on April 12, 2013, 11:28:40 am
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
Title: Re: Compiling Option
Post by: Josh @ Dreamland on April 12, 2013, 11:29:45 am
I... don't remember, either. I think if you run %TEMP% it'll take you there. I think it's under ~/AppData.
Title: Re: Compiling Option
Post by: zesterer on April 12, 2013, 11:32:03 am
Ok, thanks for the help  ;)
Title: Re: Compiling Option
Post by: TheExDeus on April 12, 2013, 12:40:31 pm
LGM shows what file it runs. Ends with a .tmp. Just copy that file.
Title: Re: Compiling Option
Post by: zesterer on April 12, 2013, 01:09:38 pm
Ok, thanks :)