Guides/Qt IDE/J804/Install
Install
If you have not already done so, download and install the base J804 system, see System/Installation.
Then, to install the Qt IDE, load Jconsole then enter:
install 'qtide'
This installs the JQt binaries in the usual J ~install/bin subdirectory.
If necessary, it also installs the Qt libraries:
- for Linux, the popular linux distros already have the Qt libraries installed. If not, the Qt libraries are provided in Debian by packages: libqtcore4, libqtgui4, libqt4-opengl, libqtwebkit4, libqt4-declarative and libqt4-declarative-particles.
- for Mac, the Qt libraries are installed in the J ~install/Qt subdirectory. Note, Mac requires OSX 10.8.6 or later.
- for Raspberry Pi, use the Raspbian OS, which already has most of the Qt libraries installed. If not, the Qt libraries are provided by packages: libqtcore4 and libqtgui4. For now, OpenGL, QuickView and Webview are not yet supported, otherwise this is the full system.
- for Win, the Qt libraries are installed in the J ~install/bin subdirectory
Also, install 'all' will install everything, i.e. Qt IDE and all addons.
Upgrade
To upgrade:
1. In J, use pacman to update to the latest addons (essential are the base library and ide/qt addons).
1. close J (all J sessions) and run the updatejqt.cmd (Windows) or updatejqt.sh (Mac/Linux) scripts. Equivalently, load J console and run:
install 'qtide'
Slim Builds
There are slim versions of JQt for Linux, OSX and Windows that do not include OpenGL, QtQuick, WebKit or WebSockets. To install, first run install 'qtide' as above, then afterwards, load J console and run:
getqtbin 'slim'
This will overwrite the binary already installed.
Use the same call when updating the JQt system.
CentOS 6.5 (or other rhel6 distros)
The current jqt linux binaries will not work on RHEL6 and its clones (CentOS, Scientific Linux). To install jqt on RHEL6 (or its clones) do the following:
1. Install EPEL repo for qtwebkit
wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm yum install qtwebkit
1. Download and install J804.
1. From jconsole, run install'qtide'. 1. Download http://www.jsoftware.com/download/j804/qtide/jqt-rhel6-x64.tar.gz or http://www.jsoftware.com/download/j804/qtide/jqt-rhel6-x86.tar.gz as appropriate. 1. Copy the jqt and libjqt binaries and links to ~bin.
Everything should work now, including websockets.
Note that the current release version works fine on RHEL 7 beta.
As with other Linux systems, there are slim versions of JQt for RHEL6 that do not include OpenGL, WebKit or WebSockets.
Starting JQt
Linux/Raspberry Pi
Run the jqt.sh shell script in the J install directory.
You may create a desktop shortcut that calls jqt.sh. Suitable icons are in the bin/icons directory.
In some linux installations, it may be necessary to point to the Qt libraries, e.g. in jqt.sh add:
export LD_LIBRARY_PATH=/usr/local/Trolltech/Qt-4.8.4/lib
Note that the current linux j8 implementation expects that qt libraries have already been installed. Some linux users may need to install libqt4-opengl and libqtwebkit4 packages (and the packages they depend on). For further detail on dependencies, use ldd bin/jqt and ldd bin/libjqt.so
Mac
Run the jqt app in the J install directory.
Windows
Run the jqt.cmd file in the J install directory.
You may create a desktop shortcut that calls jqt.cmd and is run Minimized. This hides any initial display of the windows console. Suitable icons are in the bin\icons directory.
Configuring JQt
The Qt IDE has a great many configuration options, which are discussed under Configure the Qt IDE.
See also