Sunday, April 11, 2010

x86-qtopia and arm-qtopia build scripts

To hopefully address some of the issues people have had with the x86qtopia build, I'm posting the build scripts that I've used.

For each file, you may need to chmod and possibly chown the files. For example:
/opt/FriendlyARM/mini2440/arm-qtopia$ sudo chmod +x build*
/opt/FriendlyARM/mini2440/arm-qtopia$ sudo chown [youruser]:[yourgroup] build*
and
/opt/FriendlyARM/mini2440/x86-qtopia$ sudo chmod +x build*
/opt/FriendlyARM/mini2440/x86-qtopia$ sudo chown [youruser]:[yourgroup] build*

x86qtopia

/opt/FriendlyARM/mini2440/x86-qtopia/build:
#!/bin/bash

#rm -fr qtopia-2.2.0-FriendlyARM
#tar xfvz qtopia-2.2.0.tar.gz

cd qtopia-2.2.0-FriendlyARM

echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -gif' -qpe '-edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes"' -qt2 '-no-opengl -no-xft' -dqt '-no-xft -thread'

make
make install
cd ..

/bin/rm qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/lib/fonts/helvetica_*
#tar xfvz fonts.tar.gz -C qtopia-2.2.0-FriendlyARM/qtopia/image

/opt/FriendlyARM/mini2440/x86-qtopia/build-all:
#!/bin/bash

./build
./build-konq


/opt/FriendlyARM/mini2440/x86-qtopia/build-konq:
#!/bin/bash


#tar xfvz konq.tar.gz

cd konq
source /opt/FriendlyARM/mini2440/x86-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
CC=arm-linux-gcc CXX=arm-linux-g++ LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux

./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe
make
strip --strip-all konq-embed/src/konqueror

cd ..

cp konq/konq-embed/src/konqueror qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/bin/
mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror
cp konq/konq-embed/src/konqueror.png qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/pics/konqueror

mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/apps/khtml/css
mkdir -p qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/config
cp konq/konq-embed/kdesrc/khtml/css/html4.css qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/apps/khtml/css
cp konq/konq-embed/kdesrc/kdecore/charsets qtopia-2.2.0-FriendlyARM/qtopia/image/opt/kde/share/config

cp konq/konq-embed/src/konqueror.desktop qtopia-2.2.0-FriendlyARM/qtopia/image/opt/Qtopia/apps/Applications


ARM

/opt/FriendlyARM/mini2440/arm-qtopia/build:
#!/bin/bash

#rm -fr qtopia-2.2.0-FriendlyARM
#tar xfvz qtopia-2.2.0.tar.gz

cd qtopia-2.2.0-FriendlyARM
echo yes | ./configure -qte '-embedded -no-xft -qconfig qpe -depths 16,32 -system-jpeg -qt-zlib -qt-libpng -gif -no-g++-exceptions -no-qvfb -xplatform linux-arm-g++ -tslib' -qpe 'edition pda -displaysize 240x320 -fontfamilies "helvetica fixed micro smallsmooth smoothtimes unifont" -xplatform linux-arm-g++ -luuid' -qt2 '-no-opengl -no-xft' -dqt '-no-xft -thread'

make && make install

/opt/FriendlyARM/mini2440/arm-qtopia/build-all:
#!/bin/bash

./build
./build-konq
./mktarget


/opt/FriendlyARM/mini2440/arm-qtopia/build-konq:
#!/bin/bash

#rm -fr konq

#tar xfvz konq.tar.gz

cd konq
source /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/setQpeEnv
CC=arm-linux-gcc CXX=arm-linux-g++ LDFLAGS=-ldl CROSS_COMPILE=1 ./configure --enable-embedded --enable-qt-embedded --enable-qpe --disable-debug --enable-static --disable-shared --disable-mt --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QPEDIR/lib --with-qtopia-dir=$QPEDIR --with-gui=qpe --host=arm-linux --target=arm-linux

make
arm-linux-strip --strip-all konq-embed/src/konqueror