• Das kreative Thema des Monats Oktober wird vor allem diejenigen unter Euch besonders ansprechen, denen Do-it-yourself quasi im Blut liegt. Zeigt uns Eure Improvisationskünste oder fotografiert, was andere Leute sich so im Alltag zusammengestrickt haben. --> Zum Mitmachen bitte hier klicken

Gtk+

  • Ersteller Ersteller Sisko86
  • Erstellt am Erstellt am

Sisko86

Gast
Würde gerne mit GTK+ Programmieren. Bekomme immer Linker Fehler. Leider verstehe ich auch die Anleitung nicht richtig, was die von mir wollen:

Building Command Line GTK+ Based Applications Build Note:
Building apps from the command line will require you to create an application package for your executable.

The easiest way to do this is build a dummy carbon application in project builder with the same name as your executable. Then when you run the configure script of your application have the install paths (e.g. --bindir, --sbindir, etc.) point inside the dummy app. Then make, and make install.

For example, make a cinepaint.app Carbon based project in project builder.
So that when you are running the configure script to build cinepaint add --bindir=<folder where cinepaint.app is>/cinepaint.app/Contents/MacOS to the configure input

If you launch your app and it immediately exits, try launching it from the command line e.g. ./MyApp/Contents/MacOS/MyApp, and see if you get different results.


Außerdem hab ich noch config skripts mit denen ich nichts anfangen kann:
glib-config, gtk-config. Die muss ich irgendwie mit linken denk ich mal.

Wäre auch mit X11 zufrieden.

Kann mir jemand eine Anleitung geben, wie man GTK+ für X11/native installiert und wie man ein XCode Projekt anlegt.