LinuxÒÁµéÔ°ÂÛ̳'s Archiver

swliubin ·¢±íÓÚ 2002-12-19 11:29

°æÖ÷£¬¾ÈÎÒ£¡£¡£¡£¡

ºÃ²»ÈÝÒ×½«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



¾´Çë°æÖ÷¼°¸÷λ´óÏÀ°ï棡£¡£¡Ð»Ð»£¡£¡£¡£¡£¡£¡£¡

faraway ·¢±íÓÚ 2002-12-19 14:50

ÕÒ²»µ½¿â,¹À¼ÆÊÇ·ûºÅÁ´½ÓÓÐÎÊÌâ
ldd a
²é¿´ËùÁгö¿âqteµÄsoname,reaname,symbol linkÔÚ¿âĿ¼ÖÐÊÇ·ñÆëÈ«.
ÀýÈç:libxxx.so.x libxxx.so libxxx.so.x.x

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.