Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Regular Contributor
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW
My Carrier: none

environment variables QNX_HOST and QNX_TARGET not defined

Hello,

 

I got the below eror for building the Qt Gui application with QNX. I was followed the steps given in the link,

and finished all of the steps given.

 

http://dl.dropbox.com/u/13676760/qmake_qnx.pdf

 

While giving the command "make", I got the error


ntoarmv7-g++: error: environment variables QNX_HOST and QNX_TARGET not defined
make: *** [armle-v7/IMView.o] Error 1

Did anyone knows the solution for this problem?

Thanks.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: environment variables QNX_HOST and QNX_TARGET not defined

I am not sure you've picked up right guide for porting your app to Playbook.

Developer
Posts: 72
Registered: ‎09-30-2011
My Device: Bold 9930 & PlayBook
My Carrier: Sprint

Re: environment variables QNX_HOST and QNX_TARGET not defined

I agree. You should read this:

 

http://wiki.qt-project.org/QNX

 

There is a file you need to source to get the environment variables you mentioned.

Regular Contributor
Posts: 55
Registered: ‎03-14-2012
My Device: RDJ21WW
My Carrier: none

Re: environment variables QNX_HOST and QNX_TARGET not defined

Actually I tried the steps in the link http://wiki.qt-project.org/QNX for Qt with Linux.It was working. But now the app which i tried was Qt with QNX in windows. 

Using the link http://bgmotey.blogspot.in/2012/03/qthelloworld-in-momentics-ide-for-ms.html, a simple helloworld app without using Q_OBJECT was working fine. But the app with Qt UI framework app was not working wth the same.

I got this error ,even though i used "moc" cmd(moc ../src/IMView.h -o moc_IMView.cpp)and "refreshed" the project again.

src\IMView.o: In function `IMView::~IMView()':
IMView.cppSmiley Sad.text+0x84): undefined reference to `vtable for IMView'
src\IMView.o: In function `IMView::~IMView()':
IMView.cppSmiley Sad.text+0x104): undefined reference to `vtable for IMView'
src\IMView.o: In function `IMView::~IMView()':
IMView.cppSmiley Sad.text+0x17c): undefined reference to `vtable for IMView'
src\IMView.o: In function `IMView::IMView(QWidget*)':
IMView.cppSmiley Sad.text+0x224): undefined reference to `vtable for IMView'
src\IMView.o: In function `IMView::IMView(QWidget*)':
IMView.cppSmiley Sad.text+0x2cc): undefined reference to `vtable for IMView'

 

 

I dont the proper way to work the Qt app with QNX for windows..Kindly help me

Highlighted
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: environment variables QNX_HOST and QNX_TARGET not defined

If you have QtCreater (or any Qt IDE) on Windows you should have moc.exe somewhere.

Run moc.exe IMView.h -o moc_IMView.c it'll create moc_IMView.c. Then add (import or refresh - depends where your moc_IMView.c is located) this file to your src folder and rebuild the project.