Page 1 of 1

Running the hello tutorial project

Posted: Fri Feb 21, 2020 12:42 pm
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. :?

Re: Running the hello tutorial project

Posted: Sat Feb 22, 2020 10:56 am
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.

Re: Running the hello tutorial project

Posted: Sat Feb 22, 2020 12:58 pm
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?

Re: Running the hello tutorial project

Posted: Sat Feb 22, 2020 1:07 pm
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));