Site dedicated to programming in QNX 6.5.0 and QNX 6.6.0

I put results of my works and experience associated with the QNX operating system on this site. I work as a rule on an updated version of the system which at present the version 6.5.0/6.6.0 is. Practically this software is associated with moving the software from the LINUX/GNU system. Software which here is found isn't unfortunately available in official distributions of the QNX producer of the company QNX Software LTD. are these are results of my interests and works which I led.

Particularly I would like to pay attention to the misprision through QNX of a programming language ada and Objective-C. I put compilers of these languages. I also put the prolog and the quite new Vala language. Vala is closely associated with the Gnome project of which I try to put main elements.

Providing software on account of restrictions is as a rule in the form of ready binary packages. I try also to put instructions how to compile the software. With pleasure I will answer questions if so will appear.

New:

binary and source:
QNX 6.6.0 fof x86: .profile, 6.6.0_bootstrap.tar.bz2, 6.6.0_lib.tar.bz2, 6.6.0_usr_include.tar.bz2, binutils-2.24.QNX6.6.0.tar.bz2,
gmp-6.0.0.QNX6.6.0.tar.bz2, make-4.0.QNX6.6.0.tar.bz2, mc.tar.bz2, mpc-1.0.2.QNX6.6.0.tar.bz2, mpfr-3.1.2.QNX6.6.0.tar.bz2,
nto-gcc-4.8.3-qnx660.tar.bz2
LLVM clang cilang: cmake-2.8.11
GNUstep:
Library: gmp-5.1.2, mpfr-3.1.2, mpc-1.0.1
Compiler and Ada: gcc/g++/ada/objc/objc++/fortran 4.8.1;
Prolog:
<-- Ada -->

As the compiler of ada language in QNX I use the GPL2011 compiler based on gcc4.5.3. On the https://libre.adacore.com/libre/ are sources GPL2011. A good source of examples is gnat-examples.tar.bz2. It is possible there to find a lot of examples of programming in Ada 2005. An interesting example of the technique of dynamic loading libraries is in an examples/plugins catalogue.

NEW

Compilers gcc/g++/ada/objc/objc++/fortran 4.8.1 for QNX 6.50.

gcc4.8.1-x86-qnx6.5.0-bld1.tar.bz2 Ada for QNX and how compile => gcc-4.8.1QNX.tar.bz2

===========================================================================
Compilers gcc/g++/ada/objc/objc++/fortran 4.7.0 for QNX 6.50.

gcc4.7.0-x86-qnx6.5.0-bld1.tar.bz2 Diff => gcc-4.7.0-4.7.0QNX.diff.tar.bz2

       === acats tests Summary ===
# of expected passes......2314
# of unexpected failures.....6
*** FAILURES: c250002 c380004 c52104y cb1010a cb1010c cb1010d
/src/gcc-4.7.0/gcc/testsuite/ada/acats/run_all.sh completed at Wed May 30 11:20:09 CET 2012

	    === gnat tests Summary ===

# of expected passes......1075
# of unexpected failures.....5
# of expected failures......13
# of unsupported tests.......4
/src/gcc-4.7.0/nto-x86-o-ntox86/gcc/gnatmake version 4.7.0

		 === g++ tests Summary ===

# of expected passes.....46125
# of unexpected failures...181
# of expected failures.....280
# of unresolved testcases....1
# of unsupported tests.....411
/src/gcc-4.7.0/nto-x86-o-ntox86/gcc/testsuite/g++/../../g++  version 4.7.0 (GCC)

		=== gcc tests Summary ===

# of expected passes.....82107
# of unexpected failures....76
# of expected failures.....251
# of unsupported tests....1334
/src/gcc-4.7.0/nto-x86-o-ntox86/gcc/xgcc  version 4.7.0 (GCC)

		=== objc tests Summary ===

# of expected passes......2988
# of expected failures.......6
# of unsupported tests......74
/src/gcc-4.7.0/nto-x86-o-ntox86/gcc/xgcc  version 4.7.0 (GCC)

		=== obj-c++ Summary ===

# of expected passes......1419
# of unexpected failures....16
# of expected failures.......2
# of unresolved testcase.....1
# of unsupported tests......86
/src/gcc-4.7.0/nto-x86-o-ntox86/gcc/testsuite/obj-c++/../../g++  version 4.7.0 (GCC)

There is a gcc4.5.3/g++4.5.3 and GNAT GPL 2011 for QNX 6.50.
GNAT GPL 2011, the integrated Ada, C, and C++ toolset for Academic users and FLOSS developers is now available for download. This new edition provides many new features and enhancements in all areas of the technology
If somebody is interested in it please for the contact with me.
To the correct work of compilers they are necessary gmp, mpfr, mpc, ppl libraries. Go to Library tab

gcc-g++4.5.3-gnatGPL2011-x86-qnx6.5.0-bld1.tar.bz2

# ldd cc1
./cc1:
libppl_c.so.4 => /usr/local/lib/libppl_c.so.4 (0xb8200000)
libppl.so.9 => /usr/local/lib/libppl.so.9 (0xb8502000)
libpwl.so.5 => /usr/local/lib/libpwl.so.5 (0xb85f4000)
libgmpxx.so.4 => /usr/pkg/lib/libgmpxx.so.4.2.2 (0xb85f8000)
libmpc.so.2 => /usr/pkg/lib/libmpc.so.2.0.0 (0xb85fc000)
libmpfr.so.4 => /usr/pkg/lib/libmpfr.so.4.0.1 (0xb8611000)
libgmp.so.10 => /usr/pkg/lib/libgmp.so.10.0.2 (0xb865e000)
libz.so.1 => /usr/lib/libz.so.1 (0xb037f000)
libc.so.3 => /usr/lib/ldqnx.so.2 (0xb0300000)
libstdc++.so.6 => /usr/qnx650/host/qnx6/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.5.3/libstdc++.so.6.0.14 (0xb86d1000)
libm.so.2 => /lib/libm.so.2 (0xb87c2000)
libc.so.1 => /lib/libc.so.1 (0xb038c000)

OLD
The source of programs: http://ftp.gnome.org/pub/GNOME/
atk - the source atk-1.28.0.tar.bz2 copy to pkgsrc/devel/atk; binary package atk-1.28.0.tgz
cairo -
the source cairo-1.8.8.tar.bz2 copy to pkgsrc/graphics/cairo; binary package cairo-1.8.8.tgz
glib2 - the source glib2-2.22.3.tar.bz2 copy to pkgsrc/devel/glib2; binary package glib2-2.22.3.tgz
gtk2- the source gtk2-2.18.5.tar.bz2 copy to pkgsrc/x11/gtk2; binary package gtk2+-2.18.5.tgz
vala - the source vala-0.7.9.tar.bz2 copy to pkgsrc/lang/vala; binary package vala-0.7.9.tgz

Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
There is very good tutorial
Vala shares a lot of syntax with C# and Java.
The simple example, hello.vala:
using GLib;
public class Test.HelloObject : Object {
public static int main(string[] args) {
stdout.printf("Hello, World\n");
return 0;
}
}

or BasicSample.vala:
/* class derived from GObject */
public class BasicSample : Object {
/* public instance method */
public void run () {
stdout.printf ("Hello World\n");
}
/* application entry point */
public static int main (string[] args) {
// instantiate this class, assigning the instance to
// a type-inferred variable
var sample = new BasicSample ();
// call the run method
sample.run ();
// return from this main method
return 0;
}
}

Compile and Run
$ valac -o basicsample BasicSample.vala
$ ./basicsample

New:

binary and source:
libobjc2-1.6_bin-QNX6.5.tar.bz2 for use with clang3.0 libobjc2-1.6_src-QNX6.5.tar.bz2
gnustep-make-2.6.1-QNX6.5.tar.bz2 and gnustep-make-2.6.1_src-QNX6.5.tar.bz2
gnustep-base-1.22.0_bin-QNX6.5.tar.bz2 and gnustep-base-1.22.0_src-QNX6.5.tar.bz2


Since in QNX we have two Objective-C compilers at our disposal (objc and clang) it it is possible to move GNUstep to QNX.
Objective-C is very interesting expanding the C language by object mechanisms. Unfortunately he isn't too popular compared with C++ but I think that he is worth it in order to at least to watch him. ObjC2 FAQ

The Low Level Virtual Machine (LLVM) is a compiler infrastructure, written in C++, which is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs written in arbitrary programming languages. LLVM was originally developed as a research infrastructure at the University of Illinois at Urbana-Champaign to investigate dynamic compilation techniques for static and dynamic programming languages.

Clang is a compiler front end for the C, C++ and Objective-C programming languages. It uses the LLVM as its back end.
Its goal is to offer a replacement to the GCC. Development is sponsored by Apple, and it is licensed using a BSD-like open source license.
Cling => the C++ interactive interpreter, cling is based on LLVM and its C++ frontend clang.
NEW
Cmake - the cross-platform, open-source build system.
the source cmake-2.8.11.tar.bz2 copy to pkgsrc/devel/cmake; binary package cmake-2.8.11.tgz

llvm-3.2-QNX6.5-bld1.tar.bz2 => This is the 3.2 version LLVM, Clang and Cling compiled under QNX 6.5.0SP1 using g++4.7.1.
source: llvm-3.2_src-QNX6.5-bld1.tar.bz2 and cling_src-bld1.tar.bz2
Diff OLD => llvm-3.1-3.1QNX.diff

Demonstration program written in objc2 and compiled with the use clang and using the libobjc2 library.
Makefile
Photon.h       Photon.m
PhWindow.h  PhWindow.m
PhWidget.h   PhWidget.m
PhButton.h    PhButton.m
hello2.m
=================================================================  

Biblioteki niezbedne do pacy aplikacji.
Zasadniczo będę tu umieszczał pakiety pkgsrc w postaci źródeł jak i binarnych pakietów.

To the correct work of compilers gcc/g++ versions 4.7.*, 4.8.*, 4.9.* they are necessary gmp, mpfr, mpc, ppl libraries.
GMP - GNU Multiple Precision Arithmetic Library;
the source gmp-5.1.2.tar.bz2 copy to pkgsrc/devel/gmp; binary package gmp-5.1.2.tgz
MPFR - is a C library for multiple-precision floating-point computations with correct rounding;
the source mpfr-3.1.2.tar.bz2 copy to pkgsrc/math/mpfr; binary package mpfr-3.1.2.tgz
MPC - is a complex floating-point library with exact rounding;
the source mpc-1.0.1.tar.bz2 copy to pkgsrc/math/mpc; binary package mpc-1.0.1.tgz
PPL - is a Parma Polyhedra Library; binary package ppl-0.11.2.tgz

Biblioteki gmp, mpfr, mpc, ppl są niezbędne do pracy kompilatorów gcc/g++ w wersji 4.5.*, 4.6.*, 4.7.*
Kontakt ze mną bceler@op.pl lub bogdan@ajamweb.pl