QT-Development/Installation, using QT-Creator 2.3.1 and QWT 6.0.1

Installing the QT software development kit (SDK)

sudo apt-get install qt-sdk

Installing the newest version of QT-Creator

cd ~
wget http://get.qt.nokia.com/qtcreator/qt-creator-linux-x86-opensource-2.3.1.bin
chmod +x qt-creator-linux-x86-opensource-2.3.1.bin
sudo ./qt-creator-linux-x86-opensource-2.3.1.bin 

Close QT-Creator

Install QWT 6.0.1

mkdir 00Software
cd 00Software
wget http://downloads.sourceforge.net/project/qwt/qwt/6.0.1/qwt-6.0.1.zip
unzip qwt-6.0.1.zip
rm qwt-6.0.1.zip
cd qwt-6.0.1
qmake
make -j2
sudo make install

make the library globaly available

cd /usr/local/lib
sudo ln -s /usr/local/qwt-6.0.1/lib/libqwt.so.6 libqwt.so.6
sudo ldconfig

There might be better ways, to do this.

Compile and test the examples

cd ~/00Software/qwt-6.0.1/examples
qmake
make -j2

cd bin
./sinusplot

If you get a nice sinus plot on your screen, you installed the examples successfully.

Install the designer plugin for QT-Creater 2.3

cd ~/00Software/qwt-6.0.1/designer/plugins/designer
sudo cp libqwt_designer_plugin.so /opt/qtcreator-2.3.1/bin/designer/

Final steps

Create a directory for running the QT examples and your own code:

cd ~
mkdir 00QT-Software

Select the new version to be the default version

cd /usr/bin
sudo mv qtcreator qtcreator-2.0
sudo ln -s /opt/qtcreator-2.3.1/bin/qtcreator qtcreator

Now you can run QT-Creator and try the examples.


Back to QT-Development

KielTech: QT-Development/Installation, using QT-Creator 2.2 and QWT 6.0 (last edited 2011-11-01 18:35:00 by UweFechner)