Guides/Qt IDE/Install

From J Wiki
< Guides‎ | Qt IDE
Jump to navigation Jump to search

Install Qt IDE

Follow System/Installation to install J, then install the Qt IDE as one of the addons.
Note that for updates to take place, all instances of the JQt IDE need to be closed. Qt updates are to be done through J console.

Slim vs Full Builds

The usual All-In-One installers include the slim version of JQt, which does not include OpenGL, Webview or WebSockets. Only the Slim version is supported on Windows XP and Raspberry Pi.

In the slim version, JVERSION or Help|About will have an "s" after the Qt version, e.g.

  Qt IDE: 1.9.5s/5.12.8(5.12.8)

After using the All-In-One installer, then to get the full version, start J console and enter:

  install 'full'           install the full qtide (where supported)

Otherwise, if installing from a zip installer, in J console enter one of:

  install 'qtide'          install the default qtide (see below)
  install 'slim'           install the slim qtide
  install 'full'           install the full qtide (where supported)

The default qtide is full for J807 and later. For earlier releases, it was the slim version up to library version 8.06.06, and full thereafter.

If Jqt is already installed, then install 'qtide' will reinstall the current version.

Install Directories

The JQt binaries are written to the usual J ~install/bin subdirectory. For any other Qt libraries:

  • for Windows, the libraries are installed in the J ~install/bin subdirectory
  • for Mac, the libraries are installed in the J ~install/Qt subdirectory.
  • for Linux, the popular linux distros already have the libraries installed.
  • for Raspberry Pi running 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, Webview and Websockets are not yet supported, otherwise this is the full system.

Upgrade

To upgrade:

1. In J, use pacman to update to the latest addons (essential are the base library and ide/qt addons).

2. close J (all J sessions) and run the updatejqt.cmd (Windows) or updatejqt.sh (Mac/Linux) scripts. Equivalently, load J console and run one of:

  install 'qtide'           NB. update the current version
  install 'full'            NB. update or install the full version

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 J805.
  2. From jconsole, run install'qtide'.
  3. Download http://www.jsoftware.com/download/j805/qtide/jqt-rhel6-x64.tar.gz or http://www.jsoftware.com/download/j805/qtide/jqt-rhel6-x86.tar.gz as appropriate.
  4. 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.

Ubuntu/Linux Mint

Two issues have been reported:

  • depending on the qt version, you may need to install the Qt webengine,webkit, websockets, multimedia libraries, as:
   sudo apt-get update
   sudo apt-get install qt5-default
   sudo apt-get install libqt5webengine5
   sudo apt-get install libqt5webenginewidgets5
   sudo apt-get install libqt5webkit5
   sudo apt-get install libqt5websockets5
   sudo apt-get install libqt5multimediawidgets5
#!/bin/bash
export UBUNTU_MENUPROXY= QT_QPA_PLATFORMTHEME=appmenu-qt5
cd "$(dirname "$0")"
bin/jqt

Starting JQt

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.

Mac

Run the jqt app in the J install directory.

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.


Configuring JQt

The Qt IDE has a great many configuration options, which are discussed under Configure the Qt IDE.


See also