Porting under QNX

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
NoLJustS
Posts: 5
Joined: Fri May 25, 2012 2:35 pm

Porting under QNX

Post by NoLJustS »

Hello. I have to test irrlicht under QNX. I've successfully compiled engine sources and then built couple of given examples. I've managed run them, but got next problem - GUIEnvironment returnes null from IrrlichtDevice in very first HelloWorld example(but not only there). Here is beggining of that code:
...
int main() {
IrrlichtDevice *device = createDevice( video::EDT_SOFTWARE, dimension2d<u32>(640, 480), 16, false, false, false, 0);
if (!device)
return 1;
device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
...
}

I got null guinv here. Can somebody suppose what should i do, what should i check?
CuteAlien
Admin
Posts: 10045
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Porting under QNX

Post by CuteAlien »

I'm rather surprised it even compiled. But I know pretty much nothing about QNX (except from what I can see on their homepage). If you are trying to port Irrlicht to a new platform you will have to be able to debug through such problems on your own.
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
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Porting under QNX

Post by hybrid »

Yeah, what kind of device do you use? Maybe it's just the console device?!
NoLJustS
Posts: 5
Joined: Fri May 25, 2012 2:35 pm

Re: Porting under QNX

Post by NoLJustS »

To all appearances I use SDL Device. I recently found that engine was compiled with commented line #define _IRR_COMPILE_WITH_GUI_
I think thats the point. I'm going to recompile irrlicht and test it again. I'll post here results.
NoLJustS
Posts: 5
Joined: Fri May 25, 2012 2:35 pm

Re: Porting under QNX

Post by NoLJustS »

So... I dont know why, but recompiling with _IRR_COMPILE_WITH_GUI_ did not help. But when i commented all the things in HelloWorld example which reffered to guiEnvironment I saw Sydney! I can say it surprised me that Sydney was drawn without drawAll() method of guiEnvironment, method drawAll() of scene manager was enuogh... I think its not last problem on my way, but its working under QNX, proved)
Cube_
Posts: 1010
Joined: Mon Oct 24, 2011 10:03 pm
Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d

Re: Porting under QNX

Post by Cube_ »

soo, the GUI is broken under QNX, but the scene manager is working?
Simple! Use an alternative User interface, maybe GTK+ or QT...
"this is not the bottleneck you are looking for"
Post Reply