Page 1 of 1

[Solved] Irrlicht + Ubuntu

Posted: Mon Apr 30, 2007 7:11 am
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

Posted: Mon Apr 30, 2007 7:59 am
by hybrid
Anjuta? Anyway, try to install all necessary packages (X11, OpenGL etc.) and start 'make' in source/Irrlicht

Posted: Mon Apr 30, 2007 8:02 am
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.

Posted: Mon Apr 30, 2007 8:19 am
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!

Posted: Tue May 01, 2007 10:23 am
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?

Posted: Tue May 01, 2007 10:30 am
by Virion
You need to install OpenGL SDK. By the way are you trying to recompile irrlicht?

Posted: Tue May 01, 2007 11:04 am
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

[Solved] Irrlicht + Ubuntu

Posted: Tue May 01, 2007 12:22 pm
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

Posted: Tue May 01, 2007 2:02 pm
by Virion
hmm should we add this into the wiki?

Posted: Tue May 01, 2007 6:38 pm
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

Posted: Tue May 01, 2007 8:43 pm
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.

Posted: Wed May 02, 2007 3:05 pm
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).