Thursday, January 6, 2011

Running Qt Autotests with Intel Compiler (ICC) on Windows

0) Requirements

- Microsoft Visual Studio 2008
- Check whether cl.exe is in PATH

1) Download and Install "Intel (r) Parallel Studio XE 2011 for Windows"

- Install parallel_studio_xe_2011_setup.exe
- Choose "Evaluate this product (no serial number required)"
- Full installation (recommended)

2) Setup Environment

- Run "Intel Parallel Studio XE 2011->Command Prompt->Parallel Studio XE with Intel Compiler->IA-32 Visual Studio 2008 mode"
# cd bin
# compilervars.bat ia32 vs2008

3) Build Qt

# cd C:\
# mkdir source
# cd source
# git clone git:// qt-master
# cd qt-master
# configure -nomake examples -nomake demos -developer-build -opensource -platform win32-msvc2008 -xplatform win32-icc -no-webkit -release
# nmake /nologo

4) Run autotests

# set PATH=c:\source\qt-master\bin;%PATH%
# cd C:\source\qt-master
# cd tests/auto && qmake -r
# nmake /nologo /k check TESTARGS="-xml -o testlib.xml"

Monday, December 20, 2010

Experimental packages for Symbian development on Linux (Fedora 13 i686) [32 bits]

0) Requirements

# sudo yum install libusb-devel
# sudo yum install perl-ExtUtils-MakeMaker
# sudo yum install wine

1) Download .deb files to be converted

2) Download alien

# wget
# tar zxf alien_8.83.tar.gz
# cd alien
# perl Makefile.PL
# make
# sudo make install

3) Build `runonphone' package

# sudo /usr/local/bin/alien -r runonphone-4.7.1.deb -v --generate
# sudo chown -R <user>:<group> runonphone-4.7.1
# cd runonphone-4.7.1
# rpmbuild --buildroot=$HOME/runonphone-4.7.1 -bb --target i686 runonphone-4.7.1-2.spec
# sudo rpm -Uvh runonphone-4.7.1-2.i686.rpm

5) Build `qt-symbian-libs' package

# sudo /usr/local/bin/alien -r qt-symbian-libs-4.7.1.deb -v --generate
# sudo chown -R <user>:<group> qt-symbian-libs-4.7.1
# cd qt-symbian-libs-4.7.1
# rpmbuild --buildroot=$HOME/qt-symbian-libs-4.7.1 -bb --target i686 qt-symbian-libs-4.7.1-2.spec
# sudo rpm -Uvh qt-symbian-libs-4.7.1-2.fc13.i686.rpm

6) Build `s60-sdk-5.0' package

# sudo /usr/local/bin/alien -r s60-sdk-5.0.deb -v --generate
# sudo chown -R <user>:<group> s60-sdk-5.0
# cd s60-sdk-5.0
# rpmbuild --buildroot=$HOME/s60-sdk-5.0 -bb --target i686 s60-sdk-5.0-2.spec
# sudo rpm -Uvh s60-sdk-5.0-2.fc13.i686.rpm

7) Build `gcce-4.4.172-r1' package

# sudo /usr/local/bin/alien -r gcce-4.4.172-r1.deb -v --generate
# sudo chown -R <user>:<group> gcce-4.4.172
# cd gcce-4.4.172
# rpmbuild --buildroot=$HOME/gcce-4.4.172 -bb --target i686 gcce-4.4.172-1.spec
# sudo rpm -Uvh gcce-4.4.172-1.fc13.i686.rpm

8) Installing Qt

# sudo runonphone -s /usr/share/qt4/qt-symbian/lib/Qt.sis -p /dev/ttyUSB1
# sudo runonphone -s /usr/share/qt4/qt-symbian/lib/QtWebKit.sis -p /dev/ttyUSB1

9) Making an App

# cd <my-hello-world-app>
# source /etc/profile.d/
# qmake-symbian
# make runonphone

Experimental packages for Symbian development on Linux

Thursday, November 11, 2010

Extending a logical volume (LVM)

[seahumad@sahumada opt]$ sudo lvextend -L30G /dev/mapper/vg_sahumada-lv_opt
[sudo] password for seahumad:
Extending logical volume lv_opt to 30.00 GiB
Logical volume lv_opt successfully resized

[seahumad@sahumada opt]$ sudo umount /opt/

[seahumad@sahumada ~]$ sudo resize2fs /dev/mapper/vg_sahumada-lv_opt
resize2fs 1.41.10 (10-Feb-2009)
Please run 'e2fsck -f /dev/mapper/vg_sahumada-lv_opt' first.

[seahumad@sahumada ~]$ sudo e2fsck -f /dev/mapper/vg_sahumada-lv_opt
e2fsck 1.41.10 (10-Feb-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/vg_sahumada-lv_opt: 1900/1310720 files (0.1% non-contiguous), 4645039/5242880 blocks

[seahumad@sahumada ~]$ sudo resize2fs /dev/mapper/vg_sahumada-lv_opt
resize2fs 1.41.10 (10-Feb-2009)
Resizing the filesystem on /dev/mapper/vg_sahumada-lv_opt to 7864320 (4k) blocks.
The filesystem on /dev/mapper/vg_sahumada-lv_opt is now 7864320 blocks long.

[seahumad@sahumada ~]$ sudo mount /opt

Tuesday, May 18, 2010