发新话题
打印

版主,救我!!!!

版主,救我!!!!

好不容易将qt/e和qtopia建起来了,可又遇上了新问题,求版主救救我!!

我现查看qt/e下面的帮助文档,却看不了,我键入man qlistboxitem.3qt后,错误提示如下:
man:no such file or directory
Failed to open the message catalog man on the path NLSPATH=<none>
No manual entry for qlistboxitem.3qt



还有个问题也请版主帮忙:
我想写一个最简单的“hello whold"程序来试一试,代码如下:
#include <qapplication.h>
#include <qmainwindow.h>
int main(int argc,char *argv[])
{
   QApplication app(argc,argv);
   QMainWindow frame;
   frame.setCaption("hello whold");
   frame.resize(180,70);
   app.setMainWidget(&frame);
   frame.show();
   return app.exec();
}
编译通过并生成a.out执行文件:g++ -I$QTDIR/include main.cpp -L$QTDIR/lib -lqte
执行:./a.out -qws
报错如下:a.out :error while loading shared libraries:libqte.so.2:cannot open shared object file:no such file or  directory

可是我到lib目录下发现有libqte.so.2



敬请版主及各位大侠帮忙!!!谢谢!!!!!!!      

TOP

找不到库,估计是符号链接有问题
ldd a
查看所列出库qte的soname,reaname,symbol link在库目录中是否齐全.
例如:libxxx.so.x libxxx.so libxxx.so.x.x      
class faraway : public GNU { public: faraway() : _M_name("faraway"), _M_sex("Male"), _M_age(26) { } ~faraway(); private: std::string _M_name; std::string _M_sex; unsigned long _M_age; };

TOP

发新话题