Code Blocks Ubuntu and Irrlicht

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
MacGyver
Posts: 6
Joined: Tue Sep 04, 2007 9:25 pm

Code Blocks Ubuntu and Irrlicht

Post by MacGyver »

Hello
can any one tell me how to setup Code Blocks under Ubuntu to compile
the Irrlicht examples ?

Greats MacGyver
z4rd0z
Posts: 11
Joined: Sat Jan 12, 2008 9:11 am

Post 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
MacGyver
Posts: 6
Joined: Tue Sep 04, 2007 9:25 pm

Post 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
z4rd0z
Posts: 11
Joined: Sat Jan 12, 2008 9:11 am

Post 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
idlewire
Posts: 5
Joined: Tue Aug 28, 2007 1:55 am

Post 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?
MacGyver
Posts: 6
Joined: Tue Sep 04, 2007 9:25 pm

Post 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
MacGyver
Posts: 6
Joined: Tue Sep 04, 2007 9:25 pm

Post 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*)'
idlewire
Posts: 5
Joined: Tue Aug 28, 2007 1:55 am

Post by idlewire »

Post Reply