Problems installing GTKmm

This is a discussion on Problems installing GTKmm within the C++ Programming forums, part of the General Programming Boards category; Ok, I realize this isn't directly a C++ problem, but it concerns it, and I'm not sure where else to ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    26

    Post Problems installing GTKmm

    Ok, I realize this isn't directly a C++ problem, but it concerns it, and I'm not sure where else to get help on it. I'll jump right to my question: I am trying to setup GTK+ (2.4 I believe) to work with Dev-C++. I followed the quite detailed installation instructions, and when i compile, it tells me I have problems in all of my include files that have to do with gtkmm. Anyway, if somebody could give me some more instructions (I'll uninstall dev and start over if I need to) on setting it up or something, I would GREATLY appreciate it.

    [background on why i'm trying to use it .. i wrote a console program, which I'm finishing up a public release for. I really want to make a GUI since most people would rather not use a console app. I've searched a lot on these boards and popular opinion seems to point to gtkmm. Now that I've tried, I really want to get it working.]
    --LiKWiD
    Becoming un-noobified one day at a time.

  2. #2
    sockets mad
    Join Date
    Mar 2002
    Posts
    126
    Can you be any more specific about the problems you are having?

    Possibly post actual error messages.

    -Dan

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    26
    It gives me errors such as:

    Code:
    29   In file included from C:/dev-cpp/include/gtkmm/include/gtkmm-2.0/gtkmm.h
    25   C:\dev-cpp\include\gtkmm\include\gtkmm-2.0\glibmm.h glibmmconfig.h: No such file or directory.
    34   In file included from C:/dev-cpp/include/gtkmm/include/gtkmm-2.0/glibmm/containerhandle_shared.h
    That's just a couple I copied. It gives me hundreds of similar errors.

    I ran the pkg-config, and (as per installation instructions) edited the options in Dev to include the new directories for all the files and libraries, but still all the errors.
    --LiKWiD
    Becoming un-noobified one day at a time.

  4. #4
    sockets mad
    Join Date
    Mar 2002
    Posts
    126
    Not sure about that, maybe your best bet would be to ask on the gtkmm mailing list or in the #gtk and #gnome IRC channels on irc.freenode.org.

    -Dan

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    26
    Ok, I reinstalled all of GTK+ and gtkmm, and it gets farther in compilation this time. However, I'm still getting errors. This time from the linker:

    Code:
     
    [Linker error] undefined reference to `Gtk::Main::Main(int, int &, char **&, bool)'
     
    [Linker error] undefined reference to `Gtk::Main::~Main(void)'
     
    [Linker error] undefined reference to `Gtk::Window::Window(int, Gtk::WindowType)' 
    . . .
    When I have this code (an example in their instructions):

    Code:
    #include <gtkmm.h>
    
    int main(int argc, char *argv[])
    {
        Gtk::Main kit(argc, argv);
    
        Gtk::Window window;
    
        Gtk::Main::run(window);
        
        return 0;
    }
    Still lost. :S
    --LiKWiD
    Becoming un-noobified one day at a time.

  6. #6
    Registered User
    Join Date
    Jul 2003
    Posts
    26
    Anybody know why I'd be getting a linker error like that?
    --LiKWiD
    Becoming un-noobified one day at a time.

  7. #7
    Registered User gandalf_bar's Avatar
    Join Date
    Oct 2003
    Posts
    92
    Ok, I remembered I have failed to make Dev-Cpp work with gtkmm library but I have successfully set it up with MinGW. So this is what I have done:

    http://www.akbarhome.com/download/gtkmm/gtkmm.html

    Feel free to ask me.
    A man asked, "Who are you?"
    Buddha answered, "I am awaked."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems installing gtk
    By hallo007 in forum Linux Programming
    Replies: 4
    Last Post: 06-26-2007, 03:26 PM
  2. Problems installing GLUT in .NET 2003
    By Kaminaga in forum Game Programming
    Replies: 4
    Last Post: 08-18-2005, 06:33 PM
  3. problems installing graphics card
    By *ClownPimp* in forum Tech Board
    Replies: 6
    Last Post: 08-06-2004, 09:11 AM
  4. problems Installing stlport with vc7
    By silk.odyssey in forum C++ Programming
    Replies: 0
    Last Post: 12-22-2003, 09:09 AM
  5. Installing XP....Problems
    By MethodMan in forum Tech Board
    Replies: 14
    Last Post: 11-01-2002, 03:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21