Irrlicht and Linux

BlitzMax Forums/BlitzMax Programming/Irrlicht and Linux

Hi, I have been messing around with slackware and the Irrlicht mod. I have managed to compile it to some degree, but I get a funny error right at the end of compilation even though the lib files are created.

"Could not read from Ln (or In) file included from gg.mod/irrlicht.mod/irrlicht.cpp" so I click ok then get:
"Compile error"

There need to be some changes to the source files as well for it to compile under linux:

1) You need to change all the \ to / when it comes to file names - I wrote a script to do this for me.

2) There is a file called array_SKey_something.h which has case issues ie its all lower case but within the source it has higher case within the name as well.

3) I have ( as far as i know ) compiled the module, but when I try and compile a program, there are lots of undefined references to opengl functions. If i compile the original examples using gcc it works fine. I have installed the mesa opengl libs and recompiled irrlicht and placed the new .a file into BlitzMax's lib folder. I have then rebuilt all modules but I still get undefined references, maybe it could be something to do with my mystery error when building the module.


Here is a log from compiling the module from teh command line:

http://www.mintratech.co.uk/bmakelog.txt

And here is a section of my error log when compiling example 2:

/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x755): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glBindTexture'
/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x7ae): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glTexImage2D'
/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x7ec): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glTexParameteri'
/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x806): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glTexParameteri'
/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x84b): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glTexParameterf'
/home/james/downloads/BlitzMax109/lib/libIrrlicht.a(COpenGLTexture.o)(.text+0x866): In function `irr::video::COpenGLTexture::copyTexture()':
: undefined reference to `glTexParameterf'
collect2: ld returned 1 exit status