切换root用户,把libstdc++.so.6.0.10这个文件复制到/usr/lib目录下
然后rm /usr/lib/libstdc++.so.6
之后进入/usr/lib/目录下,,执行 ln -s libstdc++.so.6.0.10 libstdc++.so.6
编译qt-arm
export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin/:$PATH
./configure -qt-sql-sqlite -depths 16,32 -embedded arm -xplatform qws/linux-arm-g++ -fast --big-endian
su -c 'make install'
编译phonon
./configure -qt-sql-sqlite -depths 16,32 -embedded arm -xplatform qws/linux-arm-g++ -fast --big-endian -phonon -phonon_backend
进入src/phonon目录,
make
把生成的lib下的phonon全部复制到/usr/local/Trolltech/QtEmbedded-4.6.3-arm/Lib/下
把include下的phonon相关目录复制到/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include下
把phonon-mplayer复制到src/plugins/phonon/
设置环境:
export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin/:/usr/local/Trolltech/QtEmbedded-4.6.3-arm/bin:$PATH
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/
export QTINC=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include
export QTLIB=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib
进入phonon-mplayer目录,执行
qmake;make;
把生成的libphonon_mp.so复制到/usr/local/Trolltech/QtEmbedded-4.6.3-arm/plugins/phonon_backend/下
没有就创建该目录
编译gsoap-arm,
./configure --prefix=/opt/gsoap2.8-arm --host=arm CXX=arm-linux-g++ CC=arm-linux-gcc --disable-ssl
然后修改config.h,
(1). 将#define malloc rpl_malloc 屏蔽;
(2).将#define HAVE_MALLOC 0 更改为:#define HAVE_MALLOC 1
make;make install
编译应用程序
编译keyboard
export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin/:/usr/local/Trolltech/QtEmbedded-4.6.3-arm/bin:$PATH
export LD_LIBRARY_PATH=/opt/gsoap2.8-arm/lib:$LD_LIBRARY_PATH
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/
export QTINC=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/include
export QTLIB=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib
qmake
make clean
make
编译mp4程序
把生成的libkeyboard等库文件复制到mp4目录下
把生成的libgsoap++.a复制到mp4目录下
修改MP4.pro
修改LIBS += -lkeyboard那行
LIBS += -L ./ -lkeyboard -lgsoap++
qmake
make clean
make
阅读(1108) | 评论(0) | 转发(0) |