I have installed GCC 4.3.3 and Qt 4.6.2 develompent packages from repositories.
After installation of gcc and qmake - they are not in PATH... Added them to 
path and now I can build my simple application without Qt but with using qmake 
and .pro files. Resulting executable able to run and "ldd" shows me it's 
dependent on QtCore and etc... Seems good.

When I try to compile any simple example from Qt (downloaded separately) - it 
compiles 100% fine and failed on linking stage...

i386-pc-solaris2.11-g++ -g -o windowlayout main.o    -L/usr/sfw/lib 
-L/opt/foss/qt4/lib -lQtGui -L/opt/foss/lib -L/usr/mysql/5.1/lib/mysql 
-L/usr/postgres/8.3/lib -L/opt/foss/qt4/lib -L/usr/sfw/lib -L/usr/openwin/lib 
-lQtCore -lsqlite3 -lpthread -lrt 
Undefined                       first referenced
 symbol                             in file
QApplication::exec()                main.o
QCoreApplication::translate(char const*, char const*, char const*, 
QCoreApplication::Encoding) main.o
QLineEdit::QLineEdit(QWidget*)      main.o
QWidget::setLayout(QLayout*)        main.o

and others...

1) why qmake and gcc not in global PATH?
2) why gcc names so exotically i386-pc-solaris2.11-g++
there are no default symlinks gcc and g++ after installing packages...
3) I'd created my custom mkspec based on solaris-g++

http://pastebin.org/110237

the only thing I changed is g++ to i386-pc-solaris2.11-g++ and same about gcc...
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to