Code: Select all
In file included from /home/luke/Src/VegaStrike/vegastrike/src/cmd/ai/aggressive.cpp:24:0:
/home/luke/Src/VegaStrike/vegastrike/src/vs_random.h: In member function 'unsigned int VSRandom::genrand_int32()':
/home/luke/Src/VegaStrike/vegastrike/src/vs_random.h:132:57: warning: narrowing conversion of 'VSRandom::MATRIX_A()' from 'int' to 'unsigned int' inside { } is ill-formed in C++11 [-Wnarrowing]
In file included from /home/luke/Src/VegaStrike/vegastrike/src/cmd/ai/aggressive.cpp:25:0:
/home/luke/Src/VegaStrike/vegastrike/src/python/python_compile.h: In member function 'PyObject* PythonBasicType::NewObject() const':
/home/luke/Src/VegaStrike/vegastrike/src/python/python_compile.h:43:57: error: 'PyString_FromString' was not declared in this scope
/home/luke/Src/VegaStrike/vegastrike/src/cmd/ai/aggressive.cpp: In member function 'bool Orders::AggressiveAI::ProcessCurrentFgDirective(Flightgroup*)':
/home/luke/Src/VegaStrike/vegastrike/src/cmd/ai/aggressive.cpp:759:22: warning: unused variable 'callme' [-Wunused-variable]
make[2]: *** [CMakeFiles/engine_com.dir/src/cmd/ai/aggressive.o] Error 1
make[1]: *** [CMakeFiles/engine_com.dir/all] Error 2
make: *** [all] Error 2
Looking online a bit I found that in the new Python3 PyString_FromString() call seems to have been replaced by PyBytes_FromString() according to this post:
https://github.com/OpenImageIO/oiio/issues/197
A quick grep of the source shows the depricated call being used in other files as well. Just wondering if I should sumbit this as a bug and work on fixing it or do I just have an incorrect version of python?
I am running Python 3.3.0-1 it looks like.
I also just hit another error also linked to python it looks like;
Code: Select all
/home/luke/Src/VegaStrike/vegastrike/src/python/python_compile.cpp: In function 'void CompileRunPython(const string&)':
/home/luke/Src/VegaStrike/vegastrike/src/python/python_compile.cpp:85:84: error: cannot convert 'PyCodeObject*' to 'PyObject* {aka _object*}' for argument '1' to 'PyObject* PyEval_EvalCode(PyObject*, PyObject*, PyObject*)'
make[2]: *** [CMakeFiles/engine_com.dir/src/python/python_compile.o] Error 1
make[1]: *** [CMakeFiles/engine_com.dir/all] Error 2
make: *** [all] Error 2
Thanks.