Driver not for Linux?!?

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
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Driver not for Linux?!?

Post by D.Cent »

Hey,

I am working with a friend on a new game project. He told me, he would have the sourcecode for windows and it would be portable for Linux.

Now I've compiled the program myself with Linux, irrLicht 0.8.1 and irrKlang 1.3. Everything works well, but if I try to start the program, I get this:

Code: Select all

philipp@kubuntu:~/descent4/Descent4 - Copy/debug$ ./Descent4
Irrlicht Engine version 1.3
Warning: The library version of the Irrlicht Engine (1.3) does not match the version the application was compiled with (1.2). This may cause problems.
Linux 2.6.17-11-generic #2 SMP Tue Mar 13 23:32:38 UTC 2007 i686
This driver is not available in Linux. Try OpenGL or Software renderer.
Segmentation fault
philipp@kubuntu:~/descent4/Descent4 - Copy/debug$     
What's wrong here? Any solutions?
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Post by Nadro »

You must compile new lib from Irrlicht 1.3 source and compiling your app with new lib;) That's all:)
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent »

Ok, I found out, that my include-files were the wrong version. But I get still this:

Code: Select all

philipp@kubuntu:~/descent4/Descent4 - Copy/debug$ ./Descent4
Irrlicht Engine version 1.3
Linux 2.6.17-11-generic #2 SMP Tue Mar 13 23:32:38 UTC 2007 i686
This driver is not available in Linux. Try OpenGL or Software renderer.
Segmentation fault
philipp@kubuntu:~/descent4/Descent4 - Copy/debug$    
If I start with GDB, it tells me, the error is in the function "Engine::getGUIEnv".
I get the same error, if I run the 2nd example:

Code: Select all

philipp@kubuntu:~/irrlicht/irrlicht-1.3/bin/Linux$ ./02.Quake3Map
Please select the driver you want for this example:
 (a) Direct3D 9.0c
 (b) Direct3D 8.1
 (c) OpenGL 1.5
 (d) Software Renderer
 (e) Burning's Software Renderer
 (f) NullDevice
 (otherKey) exit

a
Irrlicht Engine version 1.3
Linux 2.6.17-11-generic #2 SMP Tue Mar 13 23:32:38 UTC 2007 i686
This driver is not available in Linux. Try OpenGL or Software renderer.
philipp@kubuntu:~/irrlicht/irrlicht-1.3/bin/Linux$ 
But if I choose OpenGL, it does work...
Maybe I have to change something?!?
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent »

Ok, I could locate the error line:

Code: Select all

m_pDevice=createDevice(E_DRIVER_TYPE(driver), dimension2d<s32>(width, hieght), bits, full, buffer, vsync, this);
Don't know, what this is :-/
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

you cant use directx in linux, its supported in windows only. if you want to use engine in linux - openGL is your friend and you cant change him :)
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent »

I don't know how to edit this line, or how to change the driver! :-/

I couldn't find something like OpenGL or Direct3D or DirectX in my code...

Just E_DRIVER_TYPE.

Please help me!!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

The value of the variable driver is important for this.
Add the following line before your line:

Code: Select all

    driver = EDT_OPENGL;
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
D.Cent
Posts: 18
Joined: Sun May 13, 2007 8:12 pm
Location: Schwieberdingen (Germany)
Contact:

Post by D.Cent »

Thanks, now it works!!!! :D
Post Reply