Jump to ID:
Qt

Project Home

Discussions

Wiki

Project Info
Forum Topic - Building examples: Page 1 of 5 (5 Items)
   
 
 
Building examples  
Is it possible to build qt examples (user program) on nto6.5?  There is nothing in the 'readme' describing the required 
 build environment or caveats.

I was trying to build  'qt4/examples/declarative/toys/clocks' for example.

I have tried the instructions on self-hosted but to no avail.  The mentioned file 'build-hook' does not seem to be in 
the archive.

---------------------------------------------------------------------------------
Build targets for qmake
-----------------------

If your application is built with qmake, you can create QNX variants of the
application as follows (once the host and target packages are installed).

In the top-level application directory, create a Makefile with the following
text:

LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof

Inside the same directory, create subdirectories called "nto-arm-le",
"nto-arm-le-v7", and "nto-x86-o", each containing a file called "GNUmakefile"
with this text:

ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof

The application can be built for all QNX targets by running "make" at the top
level.  All standard qmake targets should work (e.g., "make install").

Optionally, a ksh script called "build-hook" can be placed at the top level; ...

Manual qmake invocation
-----------------------

qmake can also be executed manually; for example:
  "$QNX_HOST/usr/bin/qmake" -spec unsupported/qws/qnx-i386-g++

The following -spec options are available for QNX targets:
  unsupported/qws/qnx-arm-g++
  unsupported/qws/qnx-armv7-g++
  unsupported/qws/qnx-i386-g++