Compiling MechVM on Linux
Posted: Mon Jun 18, 2012 2:30 pm
Trying to compile MechVM on Xubuntu fials for me. All dependencies are fulfilled.
Here is the console output:
Here is the console output:
Any suggestions? I get the feeling I need to pass -fpermissive to g++ somehow, but i'm not sure how.theantibob@SpyRon:~/Games/MechVM-2011-04-04/src$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-2.0 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib-2.0/include -I. -o Archive.o Archive.cpp
In file included from BGString.h:18:0,
from MWBase.h:9,
from Archive.h:11,
from Archive.cpp:8:
BGVector.h: In member function ‘const T& BGVector<T, bufID>::operator[](size_t) const’:
BGVector.h:61:75: error: there are no arguments to ‘ExceptionBase’ that depend on a template parameter, so a declaration of ‘ExceptionBase’ must be available [-fpermissive]
BGVector.h:61:75: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from MWBase.h:9:0,
from Archive.h:11,
from Archive.cpp:8:
BGString.h: In member function ‘void BGFilePath<C>::getCWD()’:
BGString.h:1047:36: error: ‘chars’ was not declared in this scope
BGString.h:1047:43: error: ‘reserved’ was not declared in this scope
BGString.h:1048:32: error: there are no arguments to ‘setReserve’ that depend on a template parameter, so a declaration of ‘setReserve’ must be available [-fpermissive]
BGString.h:1051:7: error: ‘length’ was not declared in this scope
BGString.h:1051:25: error: ‘chars’ was not declared in this scope
BGString.h: In member function ‘bool BGFilePath<C>::changeExtension(const char*)’:
BGString.h:1058:11: error: ‘length’ was not declared in this scope
BGString.h:1060:25: error: ‘chars’ was not declared in this scope
BGString.h:1061:28: error: there are no arguments to ‘setLength’ that depend on a template parameter, so a declaration of ‘setLength’ must be available [-fpermissive]
BGString.h: In member function ‘bool BGFilePath<C>::exists() const’:
BGString.h:1073:25: error: ‘chars’ was not declared in this scope
BGString.h:1073:30: error: there are no arguments to ‘fileExists’ that depend on a template parameter, so a declaration of ‘fileExists’ must be available [-fpermissive]
In file included from MechWarrior3ZBD.h:14:0,
from Archive.cpp:11:
Point3D.h: In constructor ‘Point3<T>::Point3(T, T, T)’:
Point3D.h:204:23: error: ‘Point3f_ID’ was not declared in this scope
Point3D.h: In constructor ‘Point3<T>::Point3(const Point3D&)’:
Point3D.h:208:23: error: ‘Point3f_ID’ was not declared in this scope
make: *** [Archive.o] Error 1