Running the hello tutorial project

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
alexefu73
Posts: 3
Joined: Thu Feb 20, 2020 12:14 pm

Running the hello tutorial project

Post by alexefu73 »

Hi,
I have installed irrlicht 1.8 on my Deepin 15.11 and installed all the OpenGL packages I need to compile the hello tutorial program.
I compiled like this:

Code: Select all

 
g++-6 hello_world.cpp -I/usr/include/irrlicht -lIrrlicht
 
It's good, it has compiled successfully.
But when I run the output app it's open a window that closed instantly, and output the following message:

Code: Select all

 
Irrlicht Engine version 1.8.4
Linux 4.15.0-30deepin-generic #31 SMP Fri Nov 30 04:29:02 UTC 2018 x86_64
Using plain X visual
This driver is not available in Linux. Try OpenGL or Software renderer.
Segmentation fault
 
I attempted to reinstall every thing related to OpenGL; drivers, libraries, utilities. And tried again. Nothing changed, I get the same message.
What is the mistake here and how to resolve this problem. :?
CuteAlien
Admin
Posts: 9652
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Running the hello tutorial project

Post by CuteAlien »

That sounds like it tries to use D3D? Please check in your hello_world.cpp in createDevice which driver you are passing there.
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
alexefu73
Posts: 3
Joined: Thu Feb 20, 2020 12:14 pm

Re: Running the hello tutorial project

Post by alexefu73 »

CuteAlien wrote:That sounds like it tries to use D3D? Please check in your hello_world.cpp in createDevice which driver you are passing there.
This the code to create the device:

Code: Select all

 
// start up the engine
    IrrlichtDevice *device = createDevice(video::EDT_DIRECT3D8,
        core::dimension2d<u32>(640,480));
 
Indeed, you are write. But what could I use instead?
alexefu73
Posts: 3
Joined: Thu Feb 20, 2020 12:14 pm

Re: Running the hello tutorial project

Post by alexefu73 »

CuteAlien wrote:That sounds like it tries to use D3D? Please check in your hello_world.cpp in createDevice which driver you are passing there.
Thank you very much I resolve it like this.

Code: Select all

 
 
// start up the engine
    IrrlichtDevice *device = createDevice(video::EDT_OPENGL,
        core::dimension2d<u32>(640,480));
 
 
Post Reply