
wparja
(usa Ubuntu)
Enviado em 15/05/2011 - 17:01h
Bom dia, baixei o qt-4, e estou tendo alguns problemas para compilar alguns exemplos.
quando uso bibliotecas nativas do c /c++, funciona beleza, mas quando tento compilar esse exemplo da erro
#include <qapplication.h>
#include <qpushbutton.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton hello("hello world",0);
hello.resise(200,70);
a.setMainWidget(&hello);
hello.show();
return a.exec();
} ou
#include <QtGui/qapplication.h>
#include <QtGui/qpushbutton.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton hello("hello world",0);
hello.resise(200,70);
a.setMainWidget(&hello);
hello.show();
return a.exec();
}
#include <QtCore/QCoreApplication>
#include <QtGui/QPushButton>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QPushButton hello("hello world",0);
hello.resise(200,70);
a.setMainWidget(&hello);
hello.show();
return a.exec();
}
nesse dois metodos dis que as funções 'resise' e 'setMainWidget' não são membros das classes qapplication.h e qpushbutton.
para compilar o framework, digitei
./configure -embedded
make
make install
depois setei a variavel PATH corretamente
porem não setei a variavel LD_LIBRARY_PATH, pois não a encontrei
estou usando o ubuntu 11.04
se puderem da uma mão agradeço.