Problem Running Simple Example 3.1
- From: Chris Share <cpsmusic yahoo com>
- To: gtkmm-list gnome org
- Subject: Problem Running Simple Example 3.1
- Date: Wed, 8 Oct 2008 18:38:59 -0700 (PDT)
Hi,
I'm new to gtk and gtkmm. I'm coding on a Mac running OS X 10.4.11. I've installed gtk and gtkmm using MacPorts.
I've managed to build and run a couple of simple Cairo apps as well as a simple gtk app. However, I'm having problems with running the Simple Example (3.1) from the Programming with GTKmm book.
I'm building the Simple Example app using:
g++ -v simple.cpp -o simple `pkg-config gtkmm-2.4 --cflags --libs`
As far as I can tell, the build is ok. Here's the output:
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/cc1plus -quiet -v -I/Users/christophershare/gtk/inst/include/gtk-2.0 -I/Users/christophershare/gtk/inst/include/glib-2.0 -I/Users/christophershare/gtk/inst/lib/glib-2.0/include -I/Users/christophershare/gtk/inst/lib/gtk-2.0/include -I/Users/christophershare/gtk/inst/include/pango-1.0 -I/Users/christophershare/gtk/inst/include/cairo -I/Users/christophershare/gtk/inst/include/libpng12 -I/Users/christophershare/gtk/inst/include/pixman-1 -I/Users/christophershare/gtk/inst/include/atk-1.0 -I/opt/local/include/gtkmm-2.4 -I/opt/local/lib/gtkmm-2.4/include -I/opt/local/include/glibmm-2.4 -I/opt/local/lib/glibmm-2.4/include -I/opt/local/include/giomm-2.4 -I/opt/local/lib/giomm-2.4/include -I/opt/local/include/gdkmm-2.4 -I/opt/local/lib/gdkmm-2.4/include -I/opt/local/include/pangomm-1.4 -I/opt/local/include/atkmm-1.6 -I/opt/local/include/sigc++-2.0 -I/opt/local/lib/sigc++-2.0/include -I/opt/local/include/cairomm-1.0
-D__DYNAMIC__ simple.cpp -fPIC -quiet -dumpbase simple.cpp -march=nocona -auxbase simple -version -D__private_extern__=extern -o /var/tmp//cc0bPlrU.s
ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../../i686-apple-darwin8/include"
#include "..." search starts here:
#include <...> search starts here:
/Users/christophershare/gtk/inst/include/gtk-2.0
/Users/christophershare/gtk/inst/include/glib-2.0
/Users/christophershare/gtk/inst/lib/glib-2.0/include
/Users/christophershare/gtk/inst/lib/gtk-2.0/include
/Users/christophershare/gtk/inst/include/pango-1.0
/Users/christophershare/gtk/inst/include/cairo
/Users/christophershare/gtk/inst/include/libpng12
/Users/christophershare/gtk/inst/include/pixman-1
/Users/christophershare/gtk/inst/include/atk-1.0
/opt/local/include/gtkmm-2.4
/opt/local/lib/gtkmm-2.4/include
/opt/local/include/glibmm-2.4
/opt/local/lib/glibmm-2.4/include
/opt/local/include/giomm-2.4
/opt/local/lib/giomm-2.4/include
/opt/local/include/gdkmm-2.4
/opt/local/lib/gdkmm-2.4/include
/opt/local/include/pangomm-1.4
/opt/local/include/atkmm-1.6
/opt/local/include/sigc++-2.0
/opt/local/lib/sigc++-2.0/include
/opt/local/include/cairomm-1.0
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/i686-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/local/include
/usr/lib/gcc/i686-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C++ version 4.0.1 (Apple Computer, Inc. build 5367) (i686-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5367).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 97b41042e1f1a6aabc041604e055399a
as -arch i386 -force_cpusubtype_ALL -o /var/tmp//ccYBX9ET.o /var/tmp//cc0bPlrU.s
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/collect2 -dynamic -arch i386 -macosx_version_min 10.3 -multiply_defined suppress -weak_reference_mismatches non-weak -o simple -lcrt1.o /usr/lib/gcc/i686-apple-darwin8/4.0.1/crt3.o -L/Users/christophershare/gtk/inst/lib -L/opt/local/lib -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../.. /var/tmp//ccYBX9ET.o -lgtkmm-2.4 -lgiomm-2.4 -lgdkmm-2.4 -latkmm-1.6 -lgtk-quartz-2.0 -lpangomm-1.4 -lcairomm-1.0 -lglibmm-2.4 -lsigc-2.0 -lgdk-quartz-2.0 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lz -lpng12 -lpixman-1 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv -lstdc++ -lgcc_s.10.4 -lgcc -lSystem
If I then try and run the app (using "./simple"), I get the following errors:
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
(simple:25243): GLib-GObject-CRITICAL **: gtype.c:2458: initialization assertion failed, use g_type_init() prior to this function
(simple:25243): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
(simple:25243): GLib-GObject-CRITICAL **: g_type_set_qdata: assertion `node != NULL' failed
The app appears in the Mac's dock however no window appears.
What's going on?
Cheers,
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]