Compile qt-2.3.10

 

Compile qt-2.3.10

Compileqt-2.3.10forLinux/i386platform 1

Compileqt-2.3.10forLinux/ARMplatform 2

Compile qt-2.3.10 for Linux/i386 platform

#Setting Up the Linux/i386 Build Environment

#!/bin/sh

export QTEDIR=`pwd`

export QTDIR=$QTEDIR

./configure /

  -shared /

  -xplatform linux-x86-g++ /

  -qvfb /

  -system-jpeg /

  -qt-libpng /

  -depths 16 /

  -keypad-mode /

  -debug

# Building for a Linux/i386 Target Platform 

Make

# Running QT Software

1. Run QVFB  and configure

qvfb &

2. Run example 

./tutorial/t1 -qws

Compile qt-2.3.10 for Linux/ARM platform

# prepare

modify configs/linux-arm-[share/static][-debug] LINK option 

...

SYSCONF_LINK        = arm-linux-gcc

...

SYSCONF_LINK_SHLIB  = arm-linux-gcc

...

replace arm-linux-gcc by arm-linux-g++

SYSCONF_LINK        = arm-linux-g++

SYSCONF_LINK_SHLIB  = arm-linux-g++

# Setting Build Platform Environment Variables for Supporting Software 

Set the QTDIR and QTEDIR variable

export QTEDIR=`pwd`

export QTDIR=$QTEDIR

# Setting Up the Linux/ARM Build Environment

Use system's jpeg library 

./configure -xplatform linux-arm-g++ -no-opengl -qt-libpng -qt-zlib -no-xft -no-qvfb -L/home/opt/mx21_tools/metrowerks/b56/Embedix/home/salem/project/MX21-b56/build/dev_image/usr/lib -system-jpeg -I/work/qt/include -L/work/qt/lib -ljpeg -no-xkb -shared -release -gif

find . -name Makefile|xargs perl -p -i -e 's/-lqte/-lqte -L//work//qt//lib -ljpeg /g'

# Building for a Linux/ARM Target Platform 

make

# Running QT Software

Mount nfs filesystem

mkdir /work /nfs

mount -t nfs 10.30.32.8:/work /work

cd /work/qt-2.3.10

Set the Platform Environment Variables for mx21 target platform

export QWS_MOUSE_PROTO=

export QWS_KEYBOARD=MX21

export QTEDIR=`pwd`

export QPEDIR=`pwd`

export QTDIR=`pwd`

export PATH=$QPEDIR/bin:$PATH

export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/work/mx21/mx21_lib:./

export LD_LIBRARY_PATH=$QPEDIR/lib:$LD_LIBRARY_PATH

export QTOPIA_PHONE_DEVICE="sim:localhost"

Run example

./tutorial/t1 -qws

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值