首页| 论坛| 消息

标题:qt-3.3.3静态编译的问题
作者:菠萝
日期:2006-06-02 08:25
内容:

我的makefile里最重要的是这样写的:
LIBS = $(SUBLIBS) -L$(QTDIR)/lib -L/usr/X11R6/lib -static -lqt -L/usr/X11R6/lib -static -lXrender -lXrandr -lXcursor -lXinerama -lXft -lfreetype -lfontconfig -lSM -lICE -ldl -lXext -lX11 -lm
但出现了一大堆的错误,在网上也找不到答案:
/usr/local/qt/lib/libqt.a(qlibrary_unix.o)(.text+0x40): In function `QLibraryPrivate::loadLibrary()':
: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/qt/lib/libqt.a(qfileinfo_unix.o)(.text+0x22f): In function `QFileInfo::group() const':
: warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/qt/lib/libqt.a(qfiledialog.o)(.text+0xc921): In function `QFileDialog::setDir(QString const&)':
: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/local/qt/lib/libqt.a(qapplication_x11.o)(.text+0x6fec): In function `sm_performSaveYourself(QSessionManagerData*)':
: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(GetDflt.o)(.text+0x9a): In function `GetHomeDir':
: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libX11.a(GetDflt.o)(.text+0xea): In function `GetHomeDir':
: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/X11R6/lib/libICE.a(transport.o)(.text+0x35b): In function `_IceTransSocketOpen':
: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from th ..

回复 发表
主题 版块