[Solved] Irrlicht + 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
zakhrim
Posts: 7
Joined: Mon Apr 30, 2007 7:03 am
Location: Italy

[Solved] Irrlicht + Ubuntu

Post by zakhrim »

Hi guys!
First of all, sorry for my english... it isn't my mother language.
I'm a newbie of Irrlicht (and it's some time i don't use C++...).
I'm trying to configure Irrlicht to work under Ubuntu 7.04 and Anjuta, but i'm not able to do that.
Is there anybody who could help me?

Thanks,
Zak
Last edited by zakhrim on Tue May 01, 2007 12:27 pm, edited 1 time in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Anjuta? Anyway, try to install all necessary packages (X11, OpenGL etc.) and start 'make' in source/Irrlicht
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

What you mean by can't work under ubuntu? Is it you meaning that you can't compile your application? Or you can compile but can't run your application?

Edit: lol hybrid is fast.
zakhrim
Posts: 7
Joined: Mon Apr 30, 2007 7:03 am
Location: Italy

Post by zakhrim »

I mean i can't compile.
Now i can't try to launch make (i'm working). I will try as soon as i get home!
zakhrim
Posts: 7
Joined: Mon Apr 30, 2007 7:03 am
Location: Italy

Post by zakhrim »

Hi again...
Hybrid, I tried to launch make on source/Irrlicht folder but i have many errors, because the compiler can't locate some files

Code: Select all

COpenGLDriver.h:39:20: error: GL/gl.h: No such file or directory
COpenGLDriver.h:40:21: error: GL/glu.h: No such file or directory
COpenGLDriver.h:41:21: error: GL/glx.h: No such file or directory
I guess that i didnt install some package, am I right? Does somebody know which package/s i need?

Zak?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

You need to install OpenGL SDK. By the way are you trying to recompile irrlicht?
zakhrim
Posts: 7
Joined: Mon Apr 30, 2007 7:03 am
Location: Italy

Post by zakhrim »

Yes i was trying to do what Hybrid suggested (launch make)
I installed some more packages (the mesa packages) but now i have one more problem :cry:

Code: Select all

In file included from CIrrDeviceLinux.cpp:5:
CIrrDeviceLinux.h:32:38: error: X11/extensions/xf86vmode.h: No such file or directory
Zak
zakhrim
Posts: 7
Joined: Mon Apr 30, 2007 7:03 am
Location: Italy

[Solved] Irrlicht + Ubuntu

Post by zakhrim »

Done! :D
There were many libraries to add to the system.

For everyone who will have the same problem, i needed to install the following packages:
  • autoconf (2.61-3)
    automake (1:1.10+nogfdl-1)
    autotools-dev (20060920.1)
    m4 (1.4.8-1build1)
    libgl1-mesa-dev (6.5.2-3ubuntu7)
    libglu1-mesa-dev (6.5.2-3ubuntu7)
    libx11-dev (2:1.1.1-1ubuntu3)
    libxau-dev (1:1.0.3-1)
    libxdmcp-dev (1:1.0.2-1)
    mesa-common-dev (6.5.2-3ubuntu7)
    x11proto-core-dev (7.0.10-1)
    x11proto-input-dev (1.4.1-1)
    x11proto-kb-dev (1.0.3-2ubuntu1)
    xtrans-dev (1.0.3-1)
    libfontenc-dev (1:1.0.4-1)
    libfreetype6-dev (2.2.1-5ubuntu1)
    libxfont-dev (1:1.2.7-1ubuntu1)
    x11proto-fonts-dev (2.0.2-5ubuntu1)
    xlibs-static-dev (1:7.2-0ubuntu11)
    zlib1g-dev (1:1.2.3-13ubuntu4)
    libxxf86vm-dev (1:1.0.1-2)
    x11proto-xf86vidmode-dev (2.2.2-4ubuntu1)
    libxext-dev (2:1.0.3-1build1)
    x11proto-xext-dev (7.0.2-5ubuntu1)
Maybe some package is also redundant, or unusefull for Irrlicht, but that's the history of system changes i made to have Irrlicht configured!
Now everything works fine, the examples too!
Thanks guys!

Bye,
Zak
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

hmm should we add this into the wiki?
anylo
Posts: 71
Joined: Mon Feb 20, 2006 11:14 am

Post by anylo »

Virion wrote:hmm should we add this into the wiki?
Wrote it like month or two ago.

Building Irrlicht from source - Ubuntu Edgy/Feisty
buhatkj
Posts: 444
Joined: Fri Dec 12, 2003 4:53 am
Contact:

Post by buhatkj »

yah ubuntu kicks butt as distros go, but out of the box it isnt set up for development. there are a lot of packages to install to get it ready to work with irrlicht or even just to do a hello world in any given IDE. I am trying out kdevelop for now, Tho I might turn to Code::blocks if I can get it running.
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
anylo
Posts: 71
Joined: Mon Feb 20, 2006 11:14 am

Post by anylo »

buhatkj wrote:yah ubuntu kicks butt as distros go, but out of the box it isnt set up for development. there are a lot of packages to install to get it ready to work with irrlicht or even just to do a hello world in any given IDE.
Basically all you need to build hello world is build-essential (virtual) package. For Irrlicht you also need

xserver-xorg-dev
x11proto-xf86vidmode-dev
libxxf86vm-dev
mesa-common-dev
libgl1-mesa-dev
libglu1-mesa-dev
xlibs-dev
(for examples)

packages. So the amount of required libraries isn't that much after all. And even if it is, who cares. It's so easy to install dev-packages in Ubuntu.
I am trying out kdevelop for now, Tho I might turn to Code::blocks if I can get it running.
KDevelop is nice and I'm planning to add more info about it into wiki (after completing my "little" home improvement project).
Post Reply