Anyone got this working with ubuntu?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
d-grafix
Posts: 4
Joined: Wed Sep 14, 2005 9:00 pm

Anyone got this working with ubuntu?

Post by d-grafix »

Im getting the error when building the helloworld example:

Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/01.HelloWorld -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
../../lib/Linux/libIrrlicht.a(COpenGLDriver.o): In function `irr::video::COpenGLDriver::loadExtensions()':
/home/dan/programming/irrlicht-1.3/source/Irrlicht/COpenGLDriver.cpp:581: undefined reference to `glXGetProcAddress'
collect2: ld returned 1 exit status
make: *** [all_linux] Error 1


What am i missing / doing wrong?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

First try to update your gfx driver. But you can also check the COpenGLExtensionHandler.cpp for the definition of this symbol. There's a workaround which you can enable to make this compile.
d-grafix
Posts: 4
Joined: Wed Sep 14, 2005 9:00 pm

Post by d-grafix »

thanks that worked
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Which one, driver or define?
d-grafix
Posts: 4
Joined: Wed Sep 14, 2005 9:00 pm

Post by d-grafix »

Oops Sorry, it was the define, i uncommented the line for the workaround and recompiled it. It was found in the file COpenGLDriver.cpp not COpenGLExtensionHandler.cpp
I already have he latest legacy drivers (GEForceFX5200pci)
ebharv
Posts: 3
Joined: Thu Oct 25, 2007 7:52 pm
Contact:

Post by ebharv »

First do a make clean to remove anything the failed make may have created.

Follow the instructions at this link
http://www.irrlicht3d.org/wiki/index.ph ... uildUbuntu
worked for me.

Can compile and run tutorial programs so I know it's working, just having trouble compiling and running my own code.

I can't get it to link.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Uhm, the error messages would help here. But I guess that you lack some X11 extension packages.
Post Reply