Issues compiling MechVM in Linux Mint 15

MechVM - A MechWarrior 2 remake.

Moderator: Skyfaller

Post Reply
Raven IIC
I.S. Baby
Posts: 2
Joined: Mon Sep 02, 2013 11:08 am

Issues compiling MechVM in Linux Mint 15

Post by Raven IIC »

Hello, new here.
Never played Mechwarrior 2 before (except the demo), but I've heard and seen videos.

I'm trying to compile MechVM. Have all the libraries installed (I think): libsdl1.2-dev (read somewhere that it might be needed), freeglut3-dev, g++, and libqt4-dev.

The problem experienced:

Code: Select all

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -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
In file included from MWBase.h:9:0,
                 from Archive.h:11,
                 from Archive.cpp:8:
BGString.h: In instantiation of ‘void BGFilePath<C>::operator+=(const C*) [with C = char]’:
Archive.cpp:91:17:   required from here
BGString.h:1015:10: error: ‘appendNoDups’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
BGString.h:1015:10: note: declarations in dependent base ‘TBGString<char>’ are not found by unqualified lookup
BGString.h:1015:10: note: use ‘this->appendNoDups’ instead
make: *** [Archive.o] Error 1
I get this after typing "make" in terminal.
What could be wrong (I don't quite understand what the output is giving)?

--Thanks in advance :)
Raven IIC
I.S. Baby
Posts: 2
Joined: Mon Sep 02, 2013 11:08 am

Re: Issues compiling MechVM in Linux Mint 15

Post by Raven IIC »

Anyone have any clue as to whats wrong?
Post Reply