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.
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Sat Jul 14, 2007 6:47 pm
Hey there, i want to compile Irrlicht from the source/Irrlicht-dir, so i went to this dir and typed "make". I get errors like
Code: Select all
CIrrDeviceLinux.cpp:217: Error: »XF86VidModeSwitchToMode« wasn't defined in this scope
CIrrDeviceLinux.cpp:218: Error: »XF86VidModeSetViewPort« wasn't defined in this scope
make: *** [CIrrDeviceLinux.o] Error 1
What to do? (i've got x11-common)
mhack
Posts: 38 Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA
Post
by mhack » Sun Jul 15, 2007 1:33 am
Comment out the following line in 'include/IrrCompileConfig.h':
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Sun Jul 15, 2007 9:25 am
thanks-a-lot. At the end, i get
So, but ifi want to 'make' one of the examples, i get
Code: Select all
Makefile:29: Building...
g++ -I../../include -I/usr/X11R6/include -O3 -ffast-math main.cpp -o ../../bin/Linux/01.HelloWorld -L/usr/X11R6/lib -L../../lib/Linux -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11
/usr/bin/ld: cannot find -lIrrlicht
collect2: ld gab 1 als Ende-Status zurück
make: *** [all_linux] Error 1
(the last but one line might mean that ld told that we came to the end or so)
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sun Jul 15, 2007 11:14 am
Does the .a file exist? And did you move the examples directory somewhere else?
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Sun Jul 15, 2007 11:52 am
the .a-file exists in "/home/martin/irrlicht-1.3.1/source/Irrlicht", i didn't move anything
drarem
Posts: 81 Joined: Mon Mar 06, 2006 4:40 am
Contact:
Post
by drarem » Sun Jul 15, 2007 12:41 pm
it's looking for the .a file in your ../../lib/Linux directory.. are you sure you did a 'make' on Irrlicht itself successfully? If so, in your Irrilcht make file, where is it writing the .a file to?
I find it best to SVN over the code and then do a sudo make - I use sudo cause it's in a 'restricted' directory.
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Sun Jul 15, 2007 1:38 pm
i've got the file "Linux" in /home/martin/irrlicht-1.3.1/lib what'd be ../../lib/Linux and my file-browser notices it as a-file. so, it's existing.
ebo
Posts: 38 Joined: Sun Feb 19, 2006 5:39 pm
Post
by ebo » Sun Jul 15, 2007 1:50 pm
'Linux' should be a directory with a file named 'libIrrlicht.a' in it.
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Sun Jul 15, 2007 5:33 pm
i renamed it and put it in the dir Linux i created, now i get when making
Code: Select all
/usr/bin/ld: cannot find -lXxf86vm
EDIT: got the package xorg-dev, made, works, thanks
mhack
Posts: 38 Joined: Sun Apr 01, 2007 2:13 am
Location: Montana, USA
Post
by mhack » Sun Jul 15, 2007 7:57 pm
You can also just remove the '-lXxf86vm' from the example Makefile, it works fine without it.
IceLink
Posts: 6 Joined: Sat Jul 14, 2007 6:44 pm
Post
by IceLink » Wed Jul 18, 2007 8:04 pm
what would be the differences?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Wed Jul 18, 2007 8:48 pm
If you still have the compile config flag disabled as you were told in one of the first posts there is no difference, it's just linking less libraries. But if you reenable the compile flag you can use full screen apps with Irrlicht.