:S anjuta/c++ with gtkmm PLEASE HELP!!!

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

:S anjuta/c++ with gtkmm PLEASE HELP!!!

Postby cookie » Wed Oct 04, 2006 3:32 pm

hello all,

im trying to create a gui using glade with gtk and code the project in c++ for this you need the lib gtkmm so my code looks like this:

Code: Select all
#include   <gtkmm.h>

int main( int argc, char *argv[] )
{   
   Gtk::Main kit(argc, argv);
    Gtk::Window window;
    Gtk::Main::run(window);
    return 0;
}


i can compile this app with the command:

Code: Select all
cookie@BLACKBETTY ~/projects/c++/cppgtkwindow/src $ g++ main.cc -o myapp `pkg-config gtkmm-2.4 --cflags --libs`


however if i try and run the "./configure" that was made by anjuta i get this error:
Code: Select all
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtkmm-2.0) were not met:

No package 'gtkmm-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


how can i get the "./configure" to work? please help ive tried linuxquestions and gentoo forums, but neiter have helped, cheers.
cookie
 
Posts: 4
Joined: Wed Oct 04, 2006 3:20 pm

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest