Re: [gtkmm] how to build gtkmm test on win32 ?

At 03:11 PM 3/18/2003 +0700, you wrote:
I have downloaded your precompiled packages gtkmm for mingw as well as gtk+ development environment.

Unfortunately I cannot build any test application with mingw and gtkmm :(
Its compiles but during linking it says that no one of symbols is known.

Please tell me which my environment should be.
Do I need cygwin/libtool for building my own applications with gtkmm?

You can either use mingw combined with cygwin or msys. If you use mingw/cygwin, make sure that the directory that contains the mingw executables is first in your PATH (check with g++ -v).

1. add the directories with the gtkmm, gtk+ DLLs and the gtk+ executables (most important : pkg-config) to your path, if you have not selected the corresponding option in he installer.

2. set the PKG_CONFIG_PATH environment variable to point to various lib/pkgconfig directories (with .pc files) for both gtkmm and gtk+ (same thing as on linux but semicolon separated).

3. Make sure everything is properly installed by typing 'pkg-config --modversion --cflags --libs gtkmm-2.0'. You should get something like

-IC:/Users/Gustin/target/libsigc/lib/sigc++-1.2/include -IC:/Users/Gustin/target /libsigc/include/sigc++-1.2 -IC:/Users/Gustin/target/gtkmm/include/gtkmm-2.0 -IC :/Users/Gustin/target/gtkmm/lib/gtkmm-2.0/include -IC:/Users/Gustin/local/gtk-2. 0/include/gtk-2.0 -IC:/Users/Gustin/local/gtk-2.0/include/glib-2.0 -IC:/Users/Gu stin/local/gtk-2.0/lib/glib-2.0/include -IC:/Users/Gustin/local/gtk-2.0/lib/gtk- 2.0/include -IC:/Users/Gustin/local/gtk-2.0/include/pango-1.0 -IC:/Users/Gustin/ local/gtk-2.0/include/atk-1.0 -LC:/Users/Gustin/target/libsigc/lib -LC:/Users/G ustin/target/gtkmm/lib -LC:/Users/Gustin/local/gtk-2.0/lib -lgtkmm-2.0 -lgdkmm-2 .0 -latkmm-1.0 -lgtk-win32-2.0 -lpangomm-1.0 -lglibmm-2.0 -lsigc-1.2 -lgdk-win32 -2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lgobject-2
.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv

4. compile your program with

g++ `pkg-config --cflags gtkmm-2.0` -o my_program `pkg-config --libs gtkmm-2.0`

Alternatively, you can adapt the above compiler and linker flags to your directory structure...

Good luck


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]