+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: HPL1 Engine (https://www.frictionalgames.com/forum/forum-28.html)
+--- Thread: Linux x64 Compiling issues (/thread-18662.html)
Linux x64 Compiling issues - WickedShell - 10-07-2012
When attempting to compile the engine, I get stuck with an issue from impl/scriptstring.cpp, specificlly;
Code:
$ make
[ 0%] Building CXX object CMakeFiles/HPL.dir/sources/impl/scriptstring.cpp.o
/home/wickedshell/code/HPL1Engine/sources/impl/scriptstring.cpp: In function ‘void RegisterScriptString_Native(asIScriptEngine*)’:
/home/wickedshell/code/HPL1Engine/sources/impl/scriptstring.cpp:611:109: error: overloaded function with no contextual type information
make[2]: *** [CMakeFiles/HPL.dir/sources/impl/scriptstring.cpp.o] Error 1
make[1]: *** [CMakeFiles/HPL.dir/all] Error 2
make: *** [all] Error 2
Fedora Core 17, 64bit, full 32 bit development library as well. GCC version 4.7.2 Not sure where to go with this, spent a couple hours on it, but haven't made it anywhere with that yet, so I was looking for any advice I could get to get going.
RE: Linux x64 Compiling issues - Urkle - 10-07-2012
HPL1 can not currently be compiled on 64bit. you need to compile it in 32bit mode (Newton 1.x only supported 32bit). As for the error you see there it is most likely that GCC is now being stricter than it was before.. (I compiled penumbra originally on a Fedora 4 system running gcc 4.0.2).
The file there is from Angelscript, so you'll probably have to upgrade angelscript and upgrade the scriptstring.cpp to the version in the latest angelscript to get it compiling on the latest GCC,
RE: Linux x64 Compiling issues - WickedShell - 10-07-2012
Yeah, I added the -m32 flag earlier, just to ensure we stuck with a 32 bit build. I was mostly wondering if you had a workaround for the GCC issue without rolling back versions. I actually started trying to build it in the first place, as the binary form no longer runs on my machine, just exits, HPL.log looks like it's an issue with grabbing OpenAL, (well that's the last error in the log), anyway I was hoping that by building I could get around that error. HPL.log below for posterity.