desura / Desurium

Free online games platform (juegos gratis), with an open source client. LGPL repo for Desura client. Potentially out of date. See https://github.com/desura/desura-app for newest (LGPL) client.
https://www.desura.com/es
GNU General Public License v3.0
268 stars 44 forks source link

compilation failed with v8 3.21.12.1 #648

Open TheSiege opened 10 years ago

TheSiege commented 10 years ago
[ 21%] Building CXX object src/static/scriptengine/CMakeFiles/scriptengine.dir/code/ScriptCoreHelper.cpp.o
cd /var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/src/static/scriptengine && /usr/bin/x86_64-pc-linux-gnu-g++  -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_NO_CXX11_SCOPED_ENUMS=1 -DBOOST_NO_SCOPED_ENUMS=1 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxDEBUG_LEVEL=0  -DNDEBUG -O2 -pipe -march=native -ftree-vectorize -mavx -maes   -fPIC -pipe -fvisibility=hidden -finline-functions  -fpermissive -std=c++0x -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/include -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/common -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/include -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/fetch_cef-prefix/src/fetch_cef    -o CMakeFiles/scriptengine.dir/code/ScriptCoreHelper.cpp.o -c /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:87:37: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> JSPrint(const v8::Arguments& args, F messageFunct) 
                                     ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:87:52: warning: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
 v8::Handle<v8::Value> JSPrint(const v8::Arguments& args, F messageFunct) 
                                                    ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp: In function ‘v8::Handle<v8::Value> JSPrint(const int&, F)’:
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:90:27: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
  for (int i = 0; i < args.Length(); i++)
                           ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:102:17: error: invalid types ‘const int[int]’ for array subscript
   JSPrint(args[i], messageFunct);
                 ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp: At global scope:
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:110:37: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> JSDebug(const v8::Arguments& args) 
                                     ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:110:52: warning: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
 v8::Handle<v8::Value> JSDebug(const v8::Arguments& args) 
                                                    ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:121:39: error: ‘Arguments’ in namespace ‘v8’ does not name a type
 v8::Handle<v8::Value> JSWarning(const v8::Arguments& args) 
                                       ^
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreHelper.cpp:121:54: warning: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive]
 v8::Handle<v8::Value> JSWarning(const v8::Arguments& args) 
                                                      ^
lodle commented 10 years ago

Same issue here: https://code.google.com/p/plv8js/issues/detail?id=79

Any reason why we cant update v8 to latest on all platforms @karolherbst ?

TheSiege commented 10 years ago

could there please be an option to force bundle v8 like with wxwidgets? a seperate v8 package had been dropped by a lot of distributions