• 4209阅读
  • 5回复

QT 4.4.3这个版本不支持静态编译??? [复制链接]

上一主题 下一主题
离线yf24518150
 
只看楼主 倒序阅读 楼主  发表于: 2009-05-31
在论坛里看到有人说布支持
我用这个QT版本静态编译程序时碰到好多问题,
/usr/local/Trolltech/Qt-4.4.3/lib/libQtGui.a(qapplication_x11.o)(.text+0x13242): In function `sm_performSaveYourself(QSessionManagerPrivate*)':
: 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+0x3ed0): In function `_IceTransGetPeerNetworkId':
: warning: Using 'gethostbyaddr' 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+0x1e8b): In function `_IceTransSocketINETConnect':
: warning: Using 'gethostbyname' 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+0x1493): In function `_IceTransSocketINETCreateListener':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2827): In function `FcFreeTypeQuery':
: undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2955): In function `FcFreeTypeQuery':
: undefined reference to `FT_Get_BDF_Property'
/usr/lib/gcc/i386-redflag-linux/3.4.3/../../../libfontconfig.a(fcfreetype.o)(.text+0x2aa0): In function `FcFreeTypeQuery':
: undefined reference to `FT_Get_BDF_Property'
离线shiroki

只看该作者 1楼 发表于: 2009-05-31
不可能不支持。 我编过
你的代码以前有没有编译过动态的? 先make confclean一下再编
另外报的错误好像和freetype有关系, 也许系统里缺库。 看看freetype的devel包装了没有
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线yf24518150
只看该作者 2楼 发表于: 2009-05-31
引用第1楼shiroki于2009-05-31 16:35发表的  :
不可能不支持。 我编过
你的代码以前有没有编译过动态的? 先make confclean一下再编
另外报的错误好像和freetype有关系, 也许系统里缺库。 看看freetype的devel包装了没有

我是新装的系统,直接静态安装QT的
命令如下:
./configure -static  
gmake
gmake install


另外如何看devel包有没有装。
离线shiroki

只看该作者 3楼 发表于: 2009-05-31
linux发行版是什么? 不同的系统用的命令不一样。
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
离线yf24518150
只看该作者 4楼 发表于: 2009-06-01
是redflag5 ,linux下开发的
我查找了devel,只有在QT安装包里面有。。。
离线shiroki

只看该作者 5楼 发表于: 2009-06-01
rf不晓得哦。 你的安装盘里没有devel的包, 那到他们网站上找找。 没有devel的包肯定编不过去哦, qt需要很多系统软件的devel包的。
--
shiro is White
ki is tree
http://www.cuteqt.com
论坛 http://www.cuteqt.com/bbs
博客 http://www.cuteqt.com/blog
博客镜像: http://sites.cuteqt.com/cuteqt
Linux/Qt/嵌入式讨论群 http://qun.qq.com/air/5699823
快速回复
限100 字节
 
上一个 下一个