• 13302阅读
  • 10回复

在redhat9.0 和arm 上安装 QT/E 开发环境的问题 [复制链接]

上一主题 下一主题
离线coolburn
 
只看楼主 倒序阅读 楼主  发表于: 2006-07-16
— 本帖被 XChinux 从 Qt for Windows 移动到本区(2010-02-08) —
我在redhat9.0上面安装 QT/E 的开发环境
我用的包有 qt-embedded-2.3.7-free.tar.gz   qt-x11-2.3.2.tar.gz   tmake-1.13.tar.gz

我先用命令行设置变量普安装 过程是这样的

主机x86的编译步骤:

tar xfz qt-embedded-2.3.7-free.tar.gz(解压后qt-2.3.10改名为qt-2.3.10-host)
export QTEDIR=$PWD/qt-2.3.10-host

tar xfz qt-x11-2.3.2.tar.gz(解压后为qt-2.3.2)
export QT2DIR=$PWD/qt-2.3.2

tar xfz tmake-1.13.tar.gz(解压后tmake-1.13)
export TMAKEDIR=$PWD/tmake-1.13
export TMAKEPATH=$PWD/tmake-1.13/lib/qws/linux-x86-g++
export PATH=$TMAKEDIR/bin:$PATH

cd qt-2.3.2
export QTDIR=$QT2DIR
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
./configure -no-xft
make
make -C tools/qvfb
cd ..

cd qt-2.3.7-host
export QTDIR=$PWD
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

./configure
make
cd ..


因为在命令行上直接用export 重启用又要重新设置 我想在root下的.bash_profile上设置
但是对 qt for x11 和 qt for embedded 一起设置的话 会有变量冲突的地方 比如两个都要用到
PATH 和 LD_LIBRARY_PATH  
请问这个问题该如何解决 或者说有没有更好的安装方法 求救各位大牛

另外我qt-embedded 安装时 ./configure 配置时不能使用-gif -thread -static 等参数 都说找不到头文件 请问这个问题又该如何解决
[ 此贴被XChinux在2006-07-18 23:33重新编辑 ]
dddd
离线shiroki

只看该作者 1楼 发表于: 2006-07-18
环境设置存放在脚本里, 想用的时候就source一下
你说的编译不能成功的问题,我觉得应该不是参数的问题, 这些参数我也用过。 应该把出错信息拿出来看看才能确定是什么毛病。
--
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
离线coolburn
只看该作者 2楼 发表于: 2006-07-19
我编译 qt-x11-free-3.1.1 和qt-embedded-3.1.1 for host 都成功了
但是在编译qt-embedded-3.1.1 for arm 的时侯总是有错误

我configure时选的参数是 ./configure -qt-gif -thread -xplatform qws/linux-arm-g++

或者是 ./configure -qt-gif -thread -embedded arm

configure 通过 但最后make的错误是
gmake[2]: *** [.obj/release-shared-mt-emb-auto/qprintdialog.o] Error 1
gmake[2]: Leaving directory `/usr/local/qt-embedded-free-3.1.1-target/src'
gmake[1]: *** [sub-src] Error 2
gmake[1]: Leaving directory `/usr/local/qt-embedded-free-3.1.1-target'
gmake: *** [init] Error 2
dddd
离线zt0735

只看该作者 3楼 发表于: 2006-07-21
那些变量的设置不会有冲突的啊,虽然都用了PATH,但他们在PATH下是分开列举的,又不会覆盖。
如果是少头文件,那就去下啊。
make错误上面应该还有一些提示的,都贴出来看看。
离线shiroki

只看该作者 4楼 发表于: 2006-07-25
是阿, 贴错误信息怎么抓不住重点
--
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
离线allenliu0225

只看该作者 5楼 发表于: 2006-07-31
[root@localhost qt-2.3.2]# ./configure -no-opengl -system-jpeg -gif -system-libm
ng -shared

Build type:   linux-g++-shared

Thread support..................... no
GIF support........................ yes
MNG support........................ yes
JPEG support....................... yes
OpenGL support .................... no
NAS sound support.................. no
Session management................. yes
Xft support (Anti-Aliased Fonts) .. yes
XKB support ....................... yes

Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.

[root@localhost qt-2.3.2]# make
make[1]: Entering directory `/qt-embedded/qt-2.3.2'
cd src/moc; make
make[2]: Entering directory `/qt-embedded/qt-2.3.2/src/moc'
.......(一堆g++........)
make[2]: *** [kernel/qpsprinter.o] Error 1
make[2]: Leaving directory `/qt-embedded/qt-2.3.2/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/qt-embedded/qt-2.3.2'
make: *** [init] Error 2


就这,我说清楚了吗???
这是什么问题呢?
离线allenliu0225

只看该作者 6楼 发表于: 2006-07-31
In file included from kernel/qt_x11.h:76,
          from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:35:31: freetype/freetype.h: 没有那个文件或目录
In file included from kernel/qt_x11.h:76,
          from kernel/qpsprinter.cpp:97:
/usr/X11R6/include/X11/Xft/Xft.h:52: syntax error before `;' token
/usr/X11R6/include/X11/Xft/Xft.h:86: 'FT_UInt' is used as a type, but is not
  defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:93: 'FT_UInt' is used as a type, but is not
  defined as a type.
/usr/X11R6/include/X11/Xft/Xft.h:190: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:295: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:354: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:393: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:399: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:408: type specifier omitted for parameter `
  FT_UInt'
/usr/X11R6/include/X11/Xft/Xft.h:408: parse error before `,' token
/usr/X11R6/include/X11/Xft/Xft.h:418: parse error before `*' token
/usr/X11R6/include/X11/Xft/Xft.h:461: parse error before `*' token

漏了一点,还有这些错误。。。
离线allenliu0225

只看该作者 7楼 发表于: 2006-07-31
安装qte2.3.7出现的错误:
[root@localhost qt-2.3.7]# export QTDIR=$PWD
[root@localhost qt-2.3.7]# export QTEDIR=$QTDIR
[root@localhost qt-2.3.7]# export PATH=$QTDIR/bin:$PATH
[root@localhost qt-2.3.7]# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
[root@localhost qt-2.3.7]# ./configure -qconfig -qvfb -depths 4,8,16,32

This is the Qt Free Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of the license?
yes
WARNING: Using a different qconfig.h will most likely
      make the Qt library you build incompatible with
      other software.
      This is not recommended nor supported.


  No shared library support for platform/compiler linux-g++-shared
  Available platforms: aix-g++ aix-xlc bsdi-g++ dgux-g++ dynix-g++ freebsd-g++         hpux-acc hpux-cc hpux-g++ hpux-n64 hpux-o64 hurd-g++
        irix-64 irix-g++ irix-n32 irix-o32 linux-cxx linux-g++ linux-kcc
        netbsd-g++ openbsd-g++ osf1-cxx osf1-g++ qnx-rtp-g++ sco-g++
        solaris-cc-gcc solaris-cc solaris-64 solaris-g++ sunos-g++
        ultrix-g++ unixware-g++ unixware7-cc unixware7-g++


[root@localhost qt-2.3.7]# make sub-src
make: *** No rule to make target `sub-src'. Stop.
[root@localhost qt-2.3.7]# make
make: *** No targets specified and no makefile found. Stop.
离线allenliu0225

只看该作者 8楼 发表于: 2006-07-31
我之前安装过3.3.5版本的QTE和QT/X11, 是不是库文件冲突了?!
离线kingroc
只看该作者 9楼 发表于: 2006-11-03
这里的问题是,你没有装freetype2 ,装了后,再运行如下面命令:
    cd /usr/include
      ln -s freetype2/freetype freetype

下面是原英文:
  What kind of your platform? and make sure that you have installed the
freetype and it's the correct version for your qt/e .
  In my system redhat 9.0, the freetype2 is installd and it's including
head file is installed in /usr/include/freetype2 ,so I resolve the problem
as below:
    cd /usr/include
      ln -s freetype2/freetype freetype
  Hope it's useful for you.
引自:http://lists.trolltech.com/qt-embedded-interest/2005-08/thread00046-0.html
离线liubaosen
只看该作者 10楼 发表于: 2007-09-04
加-no-cups会解决qpeprint的问题
只有开源才能实现共产主义
快速回复
限100 字节
 
上一个 下一个