1
General / Re: Aquaria Source Code Released
« on: February 11, 2012, 02:45:49 pm »Quote
Which OS are you using that you get that joystick error? Compiles fine for me on win/linux/osx.I'm running Sabayon Linux. Btw with gcc the code built fine, only ekopath needed that inclusion to be added. It's a standard header, so it won't do any bad in gcc but if you think it's better to limit it to specific compilers, the correct ifdef for ekopath would be __PATHCC__ (and __INTEL_COMPILER in case icpc complains about the same thing, I only tried the fixed version with it).
Quote
(And btw, instead of __LINUX__, BBGE_BUILD_LINUX and related are used throughout the code.)I don't know, I just saw other ifdefs like that in the same file and copied & pasted.
Quote
I have crash problems with gcc and -O3, better use -O2, to be on the safe side.I played with the ekopath bin and had no problems. I added the necessary to CMakeFiles.txt to keep -O2 for gcc only.
I'm attaching a patch (based on revision 37d19fdd3fc4+), it contains the fixes we've been discussing plus warning fixes for the intel compiler plus some minor crap.
All of the fixes can be put on the main repo, as well as the CMakeLists.txt. The only thing that should be noted is that I added the -march=native option in there: this means that you can use it to build on your machine but the generated binary is suboptimal or broken for other machines. That option must be taken away when builing a distributable binary.
I'm not really planning to bash onto the code, I had some time to kill and played with it, but thanks for telling me about the mailing list!
Edit: the attachment function is not working, the patch is here.