Qt-Creator on Tiny Core Linux 5.3

Here is how I install Qt-Creator on Tiny Core Linux 5.3. I use the script from here.

Prerequisite: Qt 5.3.0 SDK

1. Create “build” directory and “cd” into that directory:

tc@box:~$ mkdir build
tc@box:~$ cd build

2. Download source code from http://download.qt-project.org

tc@box:~$ wget http://download.qt-project.org/official_releases/qtcreator/3.1/3.1.1/qt-creator-opensource-src-3.1.1.tar.gz

3. Copy following text and save it as “qt-creator.desktop”

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Qt Creator
Exec=/usr/local/bin/qtcreator
Icon=thisApp
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
X-FullPathIcon=/usr/local/share/icons/hicolor/256x256/apps/QtProject-qtcreator.png

4. Copy following line and save it as “qt-creator.tcz.dep”

qt5-sdk.tcz

5. Save following script and run it:

tar xvf qt-creator-opensource-src-3.1.1.tar.gz

# Start compiling
cd qt-creator-opensource-src-3.1.1
qmake -r
make -j3
make INSTALL_ROOT=/tmp/qt-creator/usr/local install

cd ..
# Desktop file
mkdir -p /tmp/qt-creator/usr/local/share/applications
cp qt-creator.desktop /tmp/qt-creator/usr/local/share/applications

# Package
mksquashfs /tmp/qt-creator qt-creator.tcz

6 If it’s finished, you can load qt-creator extension with this command:

tc@box:~/build$ tce-load -i qt-creator.tcz

7. If you want to load it automatically on boot, do the following commands:

tc@box:~/build$ sudo cp qt-creator.tcz /mnt/sda1/tce/optional/.
tc@box:~/build$ sudo cp qt-creator.tcz.dep /mnt/sda1/tce/optional/.
tc@box:~/build$ sudo echo "qt-creator.tcz" >> /mnt/sda1/tce/onboot.lst

8. That’s it. Enjoy!