FrictionalGames / HPL1Engine

A real time 3D engine.
http://www.frictionalgames.com/
GNU General Public License v3.0
717 stars 136 forks source link

Please update the source to compile against angelscript-2.19.0 #1

Open hicham-haouari opened 14 years ago

hicham-haouari commented 14 years ago

Currently, HPL1Engine fails to compile against angelscript-2.19.0 with the following trace :

[ 0%] Building CXX object CMakeFiles/HPL.dir/sources/impl/scriptstring.cpp.o /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp: In function ‘void RegisterScriptStringNative(asIScriptEngine)’: /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:588: error: ‘asOBJ_CLASS_CDA’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:595: error: ‘asBEHAVE_ASSIGNMENT’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:596: error: ‘asBEHAVE_ADD_ASSIGN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:600: error: ‘asBEHAVE_ALLOC’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:601: error: ‘asBEHAVE_FREE’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:611: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:611: error: ‘asBEHAVE_EQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:612: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:612: error: ‘asBEHAVE_NOTEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:613: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:613: error: ‘asBEHAVE_LEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:614: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:614: error: ‘asBEHAVE_GEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:615: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:615: error: ‘asBEHAVE_LESSTHAN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:616: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:616: error: ‘asBEHAVE_GREATERTHAN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:617: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:617: error: ‘asBEHAVE_ADD’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:629: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:630: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:634: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:635: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:639: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:640: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:644: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:645: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:649: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:650: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp: In function ‘void RegisterScriptStringGeneric(asIScriptEngine)’: /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:658: error: ‘asOBJ_CLASS_CDA’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:665: error: ‘asBEHAVE_ASSIGNMENT’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:666: error: ‘asBEHAVE_ADD_ASSIGN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:670: error: ‘asBEHAVE_ALLOC’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:671: error: ‘asBEHAVE_FREE’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:681: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:681: error: ‘asBEHAVE_EQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:682: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:682: error: ‘asBEHAVE_NOTEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:683: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:683: error: ‘asBEHAVE_LEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:684: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:684: error: ‘asBEHAVE_GEQUAL’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:685: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:685: error: ‘asBEHAVE_LESSTHAN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:686: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:686: error: ‘asBEHAVE_GREATERTHAN’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:687: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:687: error: ‘asBEHAVE_ADD’ was not declared in this scope /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:699: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:700: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:704: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:705: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:709: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:710: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:714: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:715: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:719: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ /home/hicham/rpmbuild/SOURCES/HPL1Engine-1.0/sources/impl/scriptstring.cpp:720: error: ‘class asIScriptEngine’ has no member named ‘RegisterGlobalBehaviour’ make[2]: * [CMakeFiles/HPL.dir/sources/impl/scriptstring.cpp.o] Error 1 make[1]: * [CMakeFiles/HPL.dir/all] Error 2 make: *\ [all] Error 2

hicham-haouari commented 14 years ago

It doesn't compile with latest newton too

urkle commented 14 years ago

it has to be ported to the new version of newton (see the newton2 branch for another contributers work toward it). And scriptstring.cpp is a file FROM angelscript.. just replace it with the one in the angelscript source download. And any other changes that you need to make.. Send a patch:)

hicham-haouari commented 14 years ago

seems like the code have changed alot, I couldn't find scriptstring.cpp in angelscript source, which means that it needs some kind of porting too. I may try to work on that

hicham-haouari commented 14 years ago

what versions of angelscript/newton have been used ?

hicham-haouari commented 14 years ago

Oh, sorry, I found these

hicham-haouari commented 14 years ago

GLee should be moved out of the tree also I think, since it is third party

alex-demchenko commented 11 years ago

Please say, what versions of angelscript/newton have been used? I cant found(

urkle commented 11 years ago

@DreadIsBack The supported versions used are all included in the dependencies.zip https://github.com/FrictionalGames/HPL1Engine/downloads