Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2095735
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-12-25 10:53:45

1 下载
  

2 解压
   tar xvf qt-everywhere-opensource-src-4.7.1.tar.gz

3 编译安装
   cd qt-everywhere-opensource-src-4.7.1
   ./configure(需要其它编译选项查看configure -h)
   make
   make install

4 编译FAQ

如果在qt中用了外部的库,编译过程中会出现“undefined reference ...”类似的错误,修改方法为,将mkspecs/common/g++.conf中的QMAKE_LFLAGS_NOUNDEF    += -Wl,--no-undefined这行去掉就ok了,因为你所在平台上的qmake.conf文件会include进来,在编译过程中出现的error或者想修改某些编译设置都可以试着从这几个文件入手.我这里是broadcom的,qmake.conf是这样的

djstava@Thinkpad:~/Workshop/qt4.7.1$ cat mkspecs/qws/linux-mips-g++/qmake.conf
#
# qmake configuration for building with mipsel-linux-g++
#

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC                = mipsel-linux-gcc
QMAKE_CXX               = mipsel-linux-g++
QMAKE_CFLAGS           += -mips32
QMAKE_CXXFLAGS         += -mips32
QMAKE_LINK              = mipsel-linux-g++
QMAKE_LINK_SHLIB        = mipsel-linux-g++

# modifications to linux.conf
QMAKE_AR                = mipsel-linux-ar cqs
QMAKE_OBJCOPY           = mipsel-linux-objcopy
QMAKE_STRIP             = mipsel-linux-strip

load(qt_config)


阅读(5642) | 评论(0) | 转发(1) |
0

上一篇:EMACS::org-mode

下一篇:QT/WebKit::makeqpf

给主人留下些什么吧!~~