Re: [gtkmm] Problems with Dev-C++ and gtkmm



Hi Cedric,

Am 27.08.2003 09:15:06, schrieb Cedric Gustin <cedric gustin swing be>:

>>How to create a minimal project with gtkmm with Dev-C++ ?
>I don't use Dev-C++, but I would choose a basic (see the first tab in your 
>screenshots) C++ Project Template (no GTK+-1.3 or wxWindows projects) and 
>add the relevant header and library path options manually as described in 
>the gtkmm documentation.
>Hope it helps

so here is the solution:

my setup for gtmmm and Dev-C++ 4.9.8.0 for windows2000 
-----------------------------------
- installed Dev-C++ in c:\dev-cpp 
- installed GTK-Runtime-Environment-2.2.1.2.exe, add path to my enviroment variables
- installed GTK-Development-Environment-2.2.1.2.exe, directly into c:\dev-cpp (not in c:\dev-cpp\gtk ! Will 
not work!)
- install gtkmm-runtime-2.2.7.1.exe, add path to my enviroment variables
- install gtkmm-2.2.7.1.exe in cd:\dev-cpp, directly into c:\dev-cpp (not in c:\dev-cpp\gtkmm ! Will not 
work!)
- Add to my environment variables: PKG_CONFIG_PATH with value C:\dev-cpp\gtkmm\lib\pkgconfig
- Reboot :-)
- Open an empty project in Dev-C++ -> New Project -> Basic - Empty Project
- Enter "pkg-config --libs --cflags gtkmm-2.0" on your commandshell in c:\dev-cpp\bin and saved the output 
in editor. (e.g. notepad)
- Take that output and paste the following: 
	-IC:/Dev-Cpp/gtkmm/include/gtkmm-2.0 -IC:/Dev-Cpp/gtkmm/lib/gtkmm-2.0/include 
	-IC:/Dev-Cpp/gtkmm/lib/sigc++-1.2/include -IC:/Dev-Cpp/gtkmm/include/sigc++-1.2 
	-IC:/Dev-Cpp/include/gtk-2.0 -IC:/Dev-Cpp/include/glib-2.0 -IC:/Dev-Cpp/lib/glib-2.0/include 
	-IC:/Dev-Cpp/lib/gtk-2.0/include -IC:/Dev-Cpp/include/pango-1.0 -IC:/Dev-Cpp/include/atk-1.0 
	-LC:/Dev-Cpp/gtkmm/lib -LC:/Dev-Cpp/lib 
   into my currently empty project under project -> project options -> parameters -> C++ - Compiler
   and paste this one:
        -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
   into: project -> project options -> parameters -> Linker
- Save all the stuff with the "ok"-button and leave the project options
- Now, I add a new file to your project and paste the following code into
  your sourcefile:
  
  #include <gtkmm.h>

  int main(int argc, char *argv[])
  {
    Gtk::Main kit(argc, argv);

    Gtk::Window window;

    Gtk::Main::run(window);
    
    return 0;
  }
  
- Saved this.
- Now compile and execute the whole stuff and then this oneīs happen :-( 
  Fatal F:\gtkmm\Fatal 'all-before' does not exist - don't know how to make it

I donīt know what Iīm doing wrong because on another computer it works ? !
  
Regards Olli  

--
my icq:172670232

Suche CD's von Dixie Dregs, Baden Powell, Steve Morse, 
Eric Johnson, Kenny Burell, Charles-Valentin Alkan 

The Unchallenged - "Sceneries" CD is out now !!! ... thrash-
metal in the style of Death/Slayer/Cynic/old Kreator ... order 
your copy from: powertrack web de ...10 Euro or 10 $ (+postage) 
... visit us/hear some mp3's: http://www.mp3.com/the_unchallenged 
or http://www.mp3.de/the_unchallenged ... we're looking for gigs 
in 2003 ... Metal - Fanzines get in contact !!!














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