PDA

View Full Version : Installing Irrlicht in linux


BLTicklemonster
November 4th, 2005, 09:25 PM
Talk about "not enough info":

HOW TO COMPILE THE ENGINE WITH LINUX



If you wish to compile the engine in linux yourself, unzip the source source.zip

file in the \source directory. Run a 'make' in the now existing new subfolder 'Irrlicht'.

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.



If you get a compiling/linking problem like



undefined reference to `glXGetProcAddress'



Then there are several solutions:

A) This disables the use of OpenGL extensions:

Open the file IrrCompileConfig.h, comment out _IRR_LINUX_OPENGL_USE_EXTENSIONS_,

and recompile Irrlicht using

make clean

make

B) Replace all opccurrences of 'glXGetProcAddress' with 'glXGetProcAddressARB' and run a

make

This will solve the issue but keep the OpenGL extension enabled.


Yay!!! Now somebody want to tell me what that means? How does one "make"?

(for those of you who are not tollerant of newbs coming in with insane questions like this, and are of the opinion that we ought to do more than ask questions, remember that if developers were more thorough, and would put exact instructions with their software, we'd all get along better, and more people would be using Linux. This is the number one problem with Linux as I see it. Programmers and developers write stuff like they are talking to each other, then chastise anyone who asks to be taught. Please, if you are one of these people, take time to reflect on your position, then come help us migrate away from the dark side...)

(think about what if programmers did as sloppy a job writing code as they do writing instructions...)


By the way, what I'm looking for is an editor with which I can create models for UT.

Harleen
November 5th, 2005, 06:01 AM
Yay!!! Now somebody want to tell me what that means? How does one "make"?

By tying "make" on the command prompt. Quite easy, isnt it?;)

BLTicklemonster
November 5th, 2005, 08:46 AM
Had it worked like that, I'd not have asked :)

Harleen
November 5th, 2005, 05:38 PM
Without a more precise description, what has failed, you probably won't get more help than that. ;-)

Just out of curiosity: Wherefore do you want to compile Irrlicht? It's just a 3d-engine and no complete application, as far as I know.

BLTicklemonster
November 5th, 2005, 05:44 PM
Okay, I've got a folder full of stuff that won't do anything when I double click on them.

How much more precise I can get than that, I don't know.

from the terminal, do I go cd /home/bill/irrlicht*

and then ... or what?

Harleen
November 5th, 2005, 05:52 PM
from the terminal, do I go cd /home/bill/irrlicht*

and then ... or what?

Just a blind guess from the compilation tips you posted above:


cd source
make


or something like that...
There has to be one folder, that contains a file named "Makefile". Running "make" in that folder should do the trick.

madjo
November 5th, 2005, 07:45 PM
Those instructions are for developers, because Irrlicht isn't a complete application (as has been mentioned here already), so it might be my guess that they know how to compile things...

and yeah, that is done from the command line... it is quite hard to do 'make' from within a GUI.

BLTicklemonster
November 7th, 2005, 03:36 PM
Those instructions are for developers, because Irrlicht isn't a complete application (as has been mentioned here already), so it might be my guess that they know how to compile things...

and yeah, that is done from the command line... it is quite hard to do 'make' from within a GUI.

lol ya think?

I'll give it a shot later. Right now I'm hung up trying to do vmware. Thanks.

mbaszczewski
September 9th, 2006, 04:13 AM
make
g++ -Wno-reorder -I../../include -Izlib -Ijpeglib -Ilibpng -DIRRLICHT_EXPORTS=1 -c -o CIrrDeviceLinux.o CIrrDeviceLinux.cpp
In file included from CIrrDeviceLinux.cpp:5:
CIrrDeviceLinux.h:25:38: error: X11/extensions/xf86vmode.h: No such file or directory
CIrrDeviceLinux.h:223: error: ‘XF86VidModeModeInfo’ does not name a type
CIrrDeviceLinux.cpp: In destructor ‘virtual irr::CIrrDeviceLinux::~CIrrDeviceLinux()’:
CIrrDeviceLinux.cpp:120: error: ‘oldVideoMode’ was not declared in this scope
CIrrDeviceLinux.cpp:120: error: ‘XF86VidModeSwitchToMode’ was not declared in this scope
CIrrDeviceLinux.cpp:121: error: ‘XF86VidModeSetViewPort’ was not declared in this scope
CIrrDeviceLinux.cpp: In member function ‘bool irr::CIrrDeviceLinux::createWindow(const irr::core::dimension2d<int>&, irr::u32)’:
CIrrDeviceLinux.cpp:170: error: ‘XF86VidModeQueryExtension’ was not declared in this scope
CIrrDeviceLinux.cpp:180: error: ‘XF86VidModeModeInfo’ was not declared in this scope
CIrrDeviceLinux.cpp:180: error: ‘modes’ was not declared in this scope
CIrrDeviceLinux.cpp:187: error: ‘XF86VidModeGetAllModeLines’ was not declared in this scope
CIrrDeviceLinux.cpp:191: error: ‘oldVideoMode’ was not declared in this scope
CIrrDeviceLinux.cpp:336: error: ‘XF86VidModeSwitchToMode’ was not declared in this scope
CIrrDeviceLinux.cpp:337: error: ‘XF86VidModeSetViewPort’ was not declared in this scope
make: *** [CIrrDeviceLinux.o] Error 1

What's wrong?
I probably haven't file: X11/extensions/xf86vmode.h but how i can setup this? ](*,)
I need some package?
Thank's for help :-k

PS
I use Code::Blocks

namor
November 12th, 2006, 11:23 AM
I had the same problem, but solved it.
Simply install the libxxf86vm-dev package and logically it's dependencies. :)

idlewire
January 12th, 2008, 05:48 PM
http://www.irrlicht3d.org/wiki/index.php?n=Main.CompilingOnLinux

The irrlicht wiki has been ridiculously helpful to me. It can help you set up code::blocks if you want to use it.

ebharv
March 22nd, 2008, 09:33 AM
http://www.irrlicht3d.org/wiki/index.php?n=Main.CompilingOnLinux

The irrlicht wiki has been ridiculously helpful to me. It can help you set up code::blocks if you want to use it.

Ok what version of Code::Blocks do you have and how did you install it. I've used it in windows, great ide, but the only version I've found for linux is wwaayy older than the windows version.


Should've done this edit earlier, code::blocks installs from the default repositories now. Not the newest version but it's fairly recent.