Error while trying to compile

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
anthonyostrich
Posts: 5
Joined: Sat Nov 19, 2011 9:45 pm

Error while trying to compile

Post by anthonyostrich »

In file included from CIrrDeviceLinux.cpp:5:0:
CIrrDeviceLinux.h:31:38: fatal error: X11/extensions/xf86vmode.h: No such file or directory
compilation terminated.
make: *** [CIrrDeviceLinux.o] Error 1
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Error while trying to compile

Post by Cube_ »

post source code, noone can help you without it
"this is not the bottleneck you are looking for"
anthonyostrich
Posts: 5
Joined: Sat Nov 19, 2011 9:45 pm

Re: Error while trying to compile

Post by anthonyostrich »

aaammmsterdddam wrote:post source code, noone can help you without it
I'm just trying to compile the engine. I didn't change the source at all.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Error while trying to compile

Post by Cube_ »

hmm... couldn't you have said that earlier?
I have personally never encountered any errors, what are you compiling with? gcc?
what OS? (Linux is a bit loose in this case)
Ubuntu 11.04, gcc works fine.
"this is not the bottleneck you are looking for"
anthonyostrich
Posts: 5
Joined: Sat Nov 19, 2011 9:45 pm

Re: Error while trying to compile

Post by anthonyostrich »

aaammmsterdddam wrote:hmm... couldn't you have said that earlier?
I have personally never encountered any errors, what are you compiling with? gcc?
what OS? (Linux is a bit loose in this case)
Ubuntu 11.04, gcc works fine.
I'm running Ubuntu 11.10. All I know is that I followed what the instructions said.
If you wish to compile the engine in linux yourself,

goto the \source directory. Run a 'make' in the subfolder 'Irrlicht'.' [This is when I get that error]

After this, you should be able to make all example applications in \examples.

Then just start an X Server and run them, from the directory where they are.
Alternatively, is there anywhere I can get the engine already compiled so that I don't have to do this?
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Error while trying to compile

Post by serengeor »

just download the "xf86vmode" libraries\headers trough synaptic or configure irrlicht to not to use the "xf86vmode".
Working on game: Marrbles (Currently stopped).
anthonyostrich
Posts: 5
Joined: Sat Nov 19, 2011 9:45 pm

Re: Error while trying to compile

Post by anthonyostrich »

serengeor wrote:just download the "xf86vmode" libraries\headers trough synaptic or configure irrlicht to not to use the "xf86vmode".
I searched "xf86vmode" in synaptic and got zero results.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Error while trying to compile

Post by Cube_ »

google it, the package name should be found using a google search (I find all packages I need that way)
"this is not the bottleneck you are looking for"
anthonyostrich
Posts: 5
Joined: Sat Nov 19, 2011 9:45 pm

Re: Error while trying to compile

Post by anthonyostrich »

Now the engine compiled. But when I try compiling any of the examples, I get the error "cannot find -lGL". I'm stupid. I should have just used the Ubuntu package.
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Error while trying to compile

Post by Cube_ »

not sure what -IGL is... never seen it...
"this is not the bottleneck you are looking for"
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Error while trying to compile

Post by randomMesh »

"Whoops..."
Post Reply