HELP: The final TEST

Ferran Ollé <[email protected]> Wed, 17 Jul 2002 12:36:03 +0200 (CEST)
Newsgroups gmane.os.qnx.openqnx.devel
Message-ID <[email protected]>
Hi again.

Finally i have installed this ( like Johan CARDON some
weeks ago) :

 - QNX 6.2 NC
 - XFree86 4.2 from 3rd Party Software
 - QT3 binaries from OpenQNX site.

Here is my .profile

*****************************************************

QTDIR=/opt/X11R6/qt3
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export QTDIR PATH MANPATH LD_LIBRARY_PATH

export PATH=/opt/X11R6/bin:$PATH
export LD_LIBRARY_PATH=/opt/X11R6/lib:$LD_LIBRARY_PATH

export PATH=/usr/photon/bin:$PATH

******************************************************

The Designer and all the QT soft works good.

But, the problems are when compiling a project.
I did a very simple aplication, here is the  .PRO 
file

***************************************************
SOURCES	+= main.cpp 
unix {
  UI_DIR = .ui
  MOC_DIR = .moc
  OBJECTS_DIR = .obj
}
FORMS	= form1.ui 
DEFINES += QT_NO_STL
TEMPLATE	=app
CONFIG	+= qt warn_on release
DBFILE	= test.db
LANGUAGE	= C++
****************************************************

then

qmake -o Makefile test.pro

and here is the error:

****************************************************
# make
g++ -c -pipe -Wall -W -O -fno-inline -fno-pack-struct 
-DQT_NO_STL -DQT_NO_DEBUG
 -I/opt/X11R6/qt3/include -I.ui/ -I/root -I.moc/
-I/opt/X11R6/qt3/mkspecs/defaul
t -o .obj/main.o main.cpp
/opt/X11R6/qt3/bin/uic form1.ui -i form1.h -o
.ui/form1.cpp
g++ -c -pipe -Wall -W -O -fno-inline -fno-pack-struct 
-DQT_NO_STL -DQT_NO_DEBUG
 -I/opt/X11R6/qt3/include -I.ui/ -I/root -I.moc/
-I/opt/X11R6/qt3/mkspecs/defaul
t -o .obj/form1.o .ui/form1.cpp
.ui/form1.cpp:24: warning: `class QPixmap
uic_load_pixmap_Form1(const QString &)
' defined but not used
/opt/X11R6/qt3/bin/moc .ui/form1.h -o
.moc/moc_form1.cpp
g++ -c -pipe -Wall -W -O -fno-inline -fno-pack-struct 
-DQT_NO_STL -DQT_NO_DEBUG
 -I/opt/X11R6/qt3/include -I.ui/ -I/root -I.moc/
-I/opt/X11R6/qt3/mkspecs/defaul
t -o .obj/moc_form1.o .moc/moc_form1.cpp
g++  -o test .obj/main.o .obj/form1.o .obj/moc_form1.o
 -Wl,-rpath,/opt/X11R6/qt
3/lib -L/opt/X11R6/qt3/lib -L/opt/X11R6/lib -lqt
-lXext -lX11 -lsocket -lm
/usr/bin/ntox86-ld: cannot find -lqt
collect2: ld returned 1 exit status
make: *** [test] Error 1
*****************************************************

Please if someone can help me.........
or i'll leave QNX and work with Linux ( that i hope
i'll have less problems )

thx,
Ferran Ollé



_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es