Page 1 of 1

Code Blocks Ubuntu and Irrlicht

Posted: Sat Jan 12, 2008 1:28 pm
by MacGyver
Hello
can any one tell me how to setup Code Blocks under Ubuntu to compile
the Irrlicht examples ?

Greats MacGyver

Posted: Sat Jan 12, 2008 2:27 pm
by z4rd0z
Hi,

First you do not need Code::Blocks to compile IrrLicht examples under Ubuntu. The g++ compiler and the needed dev libs are sufficient.

But if you want C::B under Ubuntu there is a documentation on the codeblocks wiki: http://wiki.codeblocks.org/index.php?ti ... _on_Ubuntu

Posted: Sat Jan 12, 2008 3:53 pm
by MacGyver
Hi
thanks for respons.
The problem is not C:B , C:B runs fine.
I want to compile an irrlicht example with C:B.
I have link the libs and the header but it dosnt work.
Who i compile a have an error like undefined referece .
Hope you can help me.
Greats MacGyver

Posted: Sat Jan 12, 2008 5:30 pm
by z4rd0z
Please go the tutorial directory you want to compile and just run make. Does it work? If not, can you send the exact messages you have on your console?

Be sure to have these Ubuntu packages installed:

libgl1-mesa-dev
libglu1-mesa
libglu1-mesa-dev
libxext-dev
libxxf86vm-dev

Posted: Sat Jan 12, 2008 7:11 pm
by idlewire
I'm actually trying to do the same thing. I can compile using code::blocks, except that when I try run an example from within code::blocks, it can't find any media like textures or models, but if I just run the executable, it finds everything no problem. Anyone got any ideas?

Posted: Sat Jan 12, 2008 7:23 pm
by MacGyver
hi
@ z4rd0z with make is no problem, but i want to compile with C:B

@ idlewire you can compile it under C:B ?
can you send me some information about compiler and linker setup ore
anything else ?

Greats MacGyver

Posted: Sat Jan 12, 2008 8:08 pm
by MacGyver
Hello again
thats my error message

Code: Select all

undefined reference to `irr::createDevice(irr::video::E_DRIVER_TYPE, irr::core::dimension2d<int> const&, unsigned int, bool, bool, bool, irr::IEventReceiver*, char const*)'

Posted: Sat Jan 12, 2008 9:54 pm
by idlewire