QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2973|回复: 2

我快要崩溃了,谁会静态编译QT4啊?

[复制链接]
发表于 2006-4-17 00:04:49 | 显示全部楼层 |阅读模式
我受不了了,谁在红旗5。0桌面版上静态编译过QT4啊,为什么我编译后不是静态链接的时候报错就是中文成了乱码啊?

配置脚步参数如下:
[code:1]./configure --prefix=/usr/lib/qt-4.1.2-static -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-db2 -no-sql-oci -no-sql-tds -fast -static -release -no-qt3support [/code:1]

错误信息如下:
[code:1]g++ -static -Wl,-rpath,/usr/lib/qt-4.1.2-static/lib -Wl,-rpath,/usr/lib/qt-4.1.2-static/lib -o complexwizard .obj/release-static/complexwizard.o .obj/release-static/licensewizard.o .obj/release-static/main.o .obj/release-static/moc_complexwizard.o    -L/root/qt-x11-opensource-src-4.1.2/lib -lQtGui -L/root/qt-x11-opensource-src-4.1.2/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -ldl -lpthread/root/qt-x11-opensource-src-4.1.2/lib/libQtCore.a(qlibrary_unix.o)(.text+0x62c): In function `QLibraryPrivate::load_sys()':: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/root/qt-x11-opensource-src-4.1.2/lib/libQtCore.a(qfsfileengine_unix.o)(.text+0x22f4): In function `QFSFileEngine::owner(QAbstractFileEngine::FileOwner) const':: warning: Using 'getgrgid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking/root/qt-x11-opensource-src-4.1.2/lib/libQtGui.a(qapplication_x11.o)(.text+0x117aa): In function `sm_performSaveYourself(QSessionManagerPrivate*)':: 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 the glibc version used for linking/usr/X11R6/lib/libICE.a(transport.o)(.text+0x3ef0): In function `_IceTransGetPeerNetworkId':: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking/usr/X11R6/lib/libICE.a(transport.o)(.text+0x1eab): In function `_IceTransSocketINETConnect':: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking/usr/X11R6/lib/libICE.a(transport.o)(.text+0x1493): In function `_IceTransSocketINETCreateListener':: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibcversion used for linking/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2857): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2985): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2ad0): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2c0c): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2c8d): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2d6a): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_X11_Font_Format'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2de6): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2e58): In function `FcFreeTypeQuery':: undefined reference to `FT_Get_BDF_Property'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x498): In function `FcConfigMessage':: undefined reference to `XML_GetCurrentLineNumber'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x52a): In function `FcConfigMessage':: undefined reference to `XML_GetCurrentLineNumber'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1947): In function `FcConfigParseAndLoad':: undefined reference to `XML_ParserCreate'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1984): In function `FcConfigParseAndLoad':: undefined reference to `XML_SetUserData'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x199e): In function `FcConfigParseAndLoad':: undefined reference to `XML_SetDoctypeDeclHandler'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19b8): In function `FcConfigParseAndLoad':: undefined reference to `XML_SetElementHandler'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19c9): In function `FcConfigParseAndLoad':: undefined reference to `XML_SetCharacterDataHandler'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x19dd): In function `FcConfigParseAndLoad':: undefined reference to `XML_GetBuffer'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1a23): In function `FcConfigParseAndLoad':: undefined reference to `XML_ParseBuffer'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1a53): In function `FcConfigParseAndLoad':: undefined reference to `XML_ParserFree'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1c44): In function `FcConfigParseAndLoad':: undefined reference to `XML_GetErrorCode'/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcxml.o)(.text+0x1c4c): In function `FcConfigParseAndLoad':: undefined reference to `XML_ErrorString'collect2: ld returned 1 exit statusmake: *** [complexwizard] 错误 1 [/code:1]


而且静态编译的QT4的designer中文输入的字符是乱码,程序中使用的也是乱码
比如QString::fromLocal8Bit("测试")也是乱码
发表于 2006-4-17 18:25:54 | 显示全部楼层
fontconfig的版本太低
红旗又没法很好的升级。
开发哪里有用红旗的??

我快要崩溃了,谁会静态编译QT4啊?

你的大脑内存太小。
我的也是。
回复

使用道具 举报

 楼主| 发表于 2006-4-20 10:50:40 | 显示全部楼层
我想应该不是这个问题,我在FC5正式版上面编译链接也是同样的问题,而且fontconfig我也使用了最新的源代码编译生成的库,还是不行,我想这应该是个兼容性问题,可能QT没有经过这个测试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 18:27 , Processed in 0.041926 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表