Compiling under Linux

https://attnam.com/topics/Compiling-under-Linux

The Cathedral of Attnam > Other Coding

#1 Aug 28, 2008, 1:28 am Hide

danmal

There's a few errors with compiling IVAN on a recent Linux distro but luckily they're fairly easy to correct.
FeLib/Include/fearray.h: line 37. Change "inline fearray::fearray(const fearray& A)" to "inline fearray::fearray(const fearray& A)"

FeLib/Include/fearray.h: line 45. Change "inline fearray::fearray(const type* Array, sizetype Size)" to "inline fearray::fearray(const type* Array, sizetype Size)"

Main/Source/script.cpp: line 474. Change "contentscript::contentscript()" to "contentscript::contentscript()"

Main/Source/script.cpp: line 501. Change "contentscript::contentscript()" to "contentscript::contentscript()"

Main/Source/script.cpp: line 595. Change "contentscript::contentscript()" to "contentscript::contentscript()"

Main/Source/script.cpp: line 682. Change "template contentmap::contentmap() : ContentMap(0) { }" to "template contentmap::contentmap() : ContentMap(0) { }"

You also have to then run:
./configure CXXFLAGS=
make
make install

Without "CXXFLAGS=" IVAN will compile but crash as soon as you leave town. The code should probably be fixed instead but that's beyond my abilities. This won't work for the latest CVS of IVAN as it makes some code changes that break compiling. This has been tested on Kubuntu 8.04 32bit.

I'll try and create a patch file during the weekend and have a look at the CVS code.
#2 Aug 31, 2008, 1:59 pm Hide

nukes

I've already done all that. check the livan source thread.