this means everyting is in the same dir under ~/, very clean
peter@cow:~/Desktop$ chmod u+x qt-sdk-linux-x86-opensource-2010.01.bin peter@cow:~/Desktop$ ./qt-sdk-linux-x86-opensource-2010.01.bin
Apart from a C++ compiler, a number of development libraries need to be present to enable Qt Creator to build your Qt applications. On Debian and Ubuntu, use the following command in a terminal to make sure they are installed: sudo apt-get install libglib2.0-dev libSM-dev libxrender-dev libfontconfig1-dev libxext-dev If you're using QtOpenGL, you'll also need OpenGL development files. You can use the following command to find out which packages to install: sudo apt-get install libgl-dev libglu-dev
NOTE: no need to export PATH or LD_LIBRARY_PATH everything just works. check Project->Build Setting, then I understand why.
root@cow:~# sudo apt-get install qt-creator Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libaudio2 libphonon4 libqt4-dbus libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-webkit libqt4-xml libqtcore4 libqtgui4 phonon phonon-backend-gstreamer qt4-qtconfig Suggested packages: nas libqt4-dev phonon-backend-xine phonon-backend-vlc phonon-backend-mplayer The following NEW packages will be installed: libaudio2 libphonon4 libqt4-dbus libqt4-designer libqt4-help libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-mysql libqt4-svg libqt4-webkit libqt4-xml libqtcore4 libqtgui4 phonon phonon-backend-gstreamer qt-creator qt4-qtconfig 0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded. Need to get 17.0MB of archives. After this operation, 59.2MB of additional disk space will be used. Do you want to continue [Y/n]?
then I
root@cow:~# dpkg-query -L qt-creator|grep bin /usr/bin/qtcreator
so I check packages.ubuntu.com
DO:
root@cow:~# sudo apt-get install qt4-qmake Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: qt4-qmake
gcc is installed automatically , but we still need manually install g++
/usr/include/qt4/QtCore
Get Started not working and missing MySql driver
peter-first is compiled in creator, So creator export its own lib path tata is compiled in apt-get qt4 basically, tomboy and my former errrors are mainly about libfreetype.so.6 libfontconfig.so.1 and this is satisfied with apt-get qt4(or maybe sth else) anyway no error this time. <> peter@peter-laptop:~/ddd/peter-first$ ldd peter-first libQtGui.so.4 => /home/peter/qtsdk-2009.03/qt/lib/libQtGui.so.4 (0xb759a000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7520000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7491000) libQtCore.so.4 => /home/peter/qtsdk-2009.03/qt/lib/libQtCore.so.4 (0xb7147000) </> <> peter@peter-laptop:~/test/tata$ ldd tata libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb7842000) libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb76ce000) ... </>
The table below lists keyboard shortcuts supported by the code editor. Block navigation To navigate between blocks, e.g., from one { to another } , use Ctrl+[ and Ctrl+]. Block selection To select a current block, use Ctrl+U. Pressing Ctrl+U again extends the selection to the parent block. To deselect, use Ctrl+Shift+U. Moving lines up and down Use Ctrl+Shift+Up and Ctrl+Shift+Down Completion Use Ctrl+Space Indenting Blocks Use Ctrl+I Collapse Use Ctrl+< Commenting or uncommenting blocks Use Ctrl+/ Delete a line Use Shift+Del Switch between header file and source file Use F4. Increasing and decreasing font size Use Ctrl+Scroll Wheel Follow symbols under the cursor Use F2 and Shift+F2. This feature works with namespaces, classes, methods, variables, include statements, and macros. Switch to an external editor Select Open in external editor from the Edit -> Advanced menu.