GTK2 -> not able to compile any GTK-program..something wr

Hi, my QNX now runs very stable and I want to start to develop applications, not only for QNX, but for all Systems, where GTK+ is available.
I found cdm’s repository and I downloaded the latest xfree86-packages (4.3). After this I downloaded GTK2 from kinner’s repository and I just pressed the “install”-button :slight_smile:
Then I browsed to the gtk.org-website and started to read the tutorial and after I have tested the simple window-example I realized that I am not able to compile GTK-sources. I noticed that all paths seems to be wrong and now I have uninstalled it to redo the install-step, but then qnxzone and all sub-dirs were not reachable from Germany :/…

I think it would help me a lot, if I can find somewhere a step by step tutorial how to set up gtk2 on QNX…just installing the dev’s is not enough…
It would be great, if someone can give me a source where to find this tutorial.
Sorry that I ask perhaps a stupid question, but for now GTK is the only alternative for me.
Qt is great, but I don’t like their license. wxWidgets is fine, but it seems that it does not run on QNX…so GTK will be fine :slight_smile:)…

Sincerely, Andreas Schipplock.

which was the error when you compiled the gtk2 sources?

Hi,
I have compiled the sample program shown here: gtk.org/tutorial/ch-gettingstarted.html
Then I got errors, which told me that many files could not be found.
I include “gtk/gtk.h” like in the sample…and I compile like in the tutorial.
Perhaps I must set any Path ? But where?In the /etc/profile or /user/.profile ? :slight_smile:
You see, many questions for a simple problem :slight_smile:

Sincerely, Andreas Schipplock.

The installation isn’t the problem, you just need to tell the compiler where to find all the headers. You can do that with the pkg-config tool,

qcc pkg-config gtk+-2.0 --cflags --libs hellogtk.c -o hellogtk

[code]PING qnxzone.com (209.115.248.145): 56 data bytes

----qnxzone.com PING Statistics----
50 packets transmitted, 0 packets received, 100.0% packet loss[/code]
Do you have mirrored the gtk2-package somewhere ? I have uninstalled the gtk2-package, because I thought a reinstall will help, but then qnxzone.com was down… :frowning:

Sincerely, Andreas Schipplock.

hehe, rick killed the server last I heard :slight_smile:

I know the site admins are on top of it, it should be back online real soon.

No I didn’t - the fact it stopped working right after I switched over to the new site is not related. It was phearbearwho did something to it. :slight_smile:

I’m totaly innocent, it was Adrian! ;)

Ok, Adrian :slight_smile: wake up and repair the server’s hard or software :slight_smile:

It’s up and running now.

very good :slight_smile:

Now back to my problem :slight_smile: If I follow your hint, there will be no more errors, wo complain about missing files, but now another error is printed:

# qcc `pkg-config gtk+-2.0 --cflags --libs` test1.c -o test1 /usr/bin/ntox86-ld: cannot find -lintl cc: /usr/bin/ntox86-ld error 1

If you would have another good hint for me or a good solution for my problem, I will be very happy :slight_smile:

You need to install libintl . It should be available from one of the repos (maybe even the main 3rd party one).

“lintl” is part of Gnu Gettext, which can be found on the 3rd-party cd as you said before (download.qnx.com/contrib/repository621a)…
I tried to compile and the compiler cannot find “iconv”, but after downloading “libiconv” from the 3rd-party cd this error disappears, too.

Now I am able to develop GTK2-Applications in C.
Thanks to all for the friendly help.

Sincerely, Andreas Schipplock.