Chinaunix首页 | 论坛 | 博客
  • 博客访问: 109098
  • 博文数量: 24
  • 博客积分: 1475
  • 博客等级: 上尉
  • 技术积分: 291
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-04 14:14
个人简介

交互设计在未来很有前途,不要再说是做界面的了。

文章分类

全部博文(24)

文章存档

2013年(2)

2012年(2)

2010年(4)

2009年(2)

2007年(11)

2006年(3)

我的朋友

分类:

2007-04-17 20:24:57

编译环境:tru64 unix 5.1B,cxx6.2
1.下载qt的opensource4.2.3的源程序包

或者

2.将上述下载文件放到unix下某个目录下
   gunzip  qt-x11-opensource-src-4.2.3.tar.gz
   tar xvf  qt-x11-opensource-src-4.2.3.tar
   mv    qt-x11-opensource-src-4.2.3 qt  
3.修改文件
1)去掉mkspecs/tru64-cxx/qmake.conf文件中的两处
   -model ansi  
2)去掉src/corelib/codecs/codecs.pri中的一处
 DEFINES += GNU_LIBICONV
3)src/gui/kernel/qt_x11_p.h
      XCursoeShape = CursorShape
改为:XCursoeShape = 0  
说明:0为/usr/include/x11/x.h中对CursorShape定义的值
4)src/gui/kernel/qcursor.h
  将原来文件中115到125行的下列内容
 #ifdef QT3_SUPPORT
 // CursorShape is defined in X11/X.h
 #ifdef CursorShape
 #define X_CursorShape CursorShape
 #undef CursorShape
 #endif
 typedef Qt::CursorShape QCursorShape;
 #ifdef X_CursorShape
 #define CursorShape X_CursorShape
 #endif
 #endif
   改为放到52行左右的
 #ifndef QT_NO_CURSOR
   下面
5)src/gui/kernel/qkeymapper_p.h   97行
       typedef XID KeySym;
改为   #include
6)demos/shared/shared.pro中
      CONFIG+=static
  改为  CONFIG+=dynamic
7)tools/designer/src/uitools/uitools.pro中
 CONFIG+= qt staticlib
  改为  CONFIG+= qt dynamic
4.编译
   ./configure
   这会执行一段时间,等执行完成后,会提示你进行gmake编译
   gmake
   经过一段漫长等待后,qt4.2.3就可以完全编译完成了。
   gmake install
   将库文件,头文件和可执行程序等安装到想要的位置,默认为
   /usr/local/Trolltech/Qt-4.2.3/目录,可以通过配置configure
   命令的参数来改变安装目录
 
  

 
阅读(1540) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~