Guides/Qt IDE/Install/J801

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

Install

If you have not already done so, download and install the base J801 system, see System/Installation/J801.

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 and libqtwebkit4.
  • for Mac, the Qt libraries may already be installed in /Library/Frameworks. If not, the Qt libraries are installed in the J ~install/Qt subdirectory
  • 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, libqtgui4, libqt4-opengl. For now, Webview is not yet supported, otherwise this is the full system.
  • for Win, the Qt libraries are installed in the J ~install/qt subdirectory

Also, install 'all' will install everything, i.e. Qt IDE and all addons.

Upgrade

You can rerun install 'qtide' from within Jconsole to upgrade to a newer version of the JQt binaries when they become available. Make sure that you close any JQt IDE sessions first!

Android

There is no need to run install 'qtide', just download and install Android apk.

See JQt for Android.

Linux Slim Builds

There is a slim version of JQt for Linux that does not include OpenGL, WebKit or WebSockets. To install, load J console and run:

getqtbin 'slim'

Run this after install 'qtide'. It 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 J801.

1. From jconsole, run install'qtide'. 1. Download http://www.jsoftware.com/download/jqt/jqt-rhel6-x64.tar.gz or http://www.jsoftware.com/download/jqt/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/Mac

Call bin/jqt from the command line or shell script.

In some installations, it may be necessary to point to the Qt libraries, e.g. in a shell script calling J:

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

Raspberry Pi

Call bin/jqt from the command line or shell script.

Windows

In the J install directory, run the jqt.cmd file included with the distribution. The default contents are:

setlocal
set QT_PLUGIN_PATH=%CD%\qt\plugins
set PATH=%CD%\qt;%PATH%
start bin\jqt.exe

This sets paths which must be correct for your install. You can change them manually if necessary. If they are incorrect, then you will get a message that the Qt libraries cannot be found, for example:

Message: The program can't start because QtCore4.dll is missing from your computer. Try reinstalling the program to fix this problem. Another possibility is that PATH and QT_PLUGIN_PATH are incorrect. Run the jqt.cmd file, NOT the jqt.exe

See Qt IDE.