boxnapper
January 27th, 2010, 09:20 AM
Hey, I'm new here, so I'll say hello first.
I know basic c++. I want to start learning OpenGL, but I need to learn a GUI. I've chosen GTK+/GTKmm. Mostly, I want to learn GTKmm, because I'm a c++ programmer.
Moreover, I keep trying to compile a file(rhymes--lol), but it doesn't want to find the directories & compile. This is really hindering the pace I want to keep with learning.
Here is some code & quotes from my terminal.
Beforehand, if any more info is needed, just ask.
What I type into my terminal.
g++ -Wall -o simple simplegtk.cpp `pkg-config --libs --cflags libgtk2.0-dev`
This is what the output is.
Package libgtk2.0-dev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgtk2.0-dev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgtk2.0-dev' found
simplegtk.cpp:1:19: error: gtkmm.h: No such file or directory
simplegtk.cpp:3: error: ‘Gtk’ has not been declared
simplegtk.cpp:3: error: expected constructor, destructor, or type conversion before ‘kit’
simplegtk.cpp:5: error: ‘Gtk’ has not been declared
simplegtk.cpp:5: error: expected constructor, destructor, or type conversion before ‘window’
simplegtk.cpp:7: error: ‘Gtk’ has not been declared
simplegtk.cpp:7: error: expected constructor, destructor, or type conversion before ‘(’ token
This is the code I'm trying to compile.
#include <gtkmm.h>
Gtk::Main kit(argc, argv);
Gtk::Window window;
Gtk::Main::run(window);
If I'm using the code right, I'm not sure. I got it from the GTKmm documentation (http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-basics-simple-example.html.en).
I know basic c++. I want to start learning OpenGL, but I need to learn a GUI. I've chosen GTK+/GTKmm. Mostly, I want to learn GTKmm, because I'm a c++ programmer.
Moreover, I keep trying to compile a file(rhymes--lol), but it doesn't want to find the directories & compile. This is really hindering the pace I want to keep with learning.
Here is some code & quotes from my terminal.
Beforehand, if any more info is needed, just ask.
What I type into my terminal.
g++ -Wall -o simple simplegtk.cpp `pkg-config --libs --cflags libgtk2.0-dev`
This is what the output is.
Package libgtk2.0-dev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgtk2.0-dev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgtk2.0-dev' found
simplegtk.cpp:1:19: error: gtkmm.h: No such file or directory
simplegtk.cpp:3: error: ‘Gtk’ has not been declared
simplegtk.cpp:3: error: expected constructor, destructor, or type conversion before ‘kit’
simplegtk.cpp:5: error: ‘Gtk’ has not been declared
simplegtk.cpp:5: error: expected constructor, destructor, or type conversion before ‘window’
simplegtk.cpp:7: error: ‘Gtk’ has not been declared
simplegtk.cpp:7: error: expected constructor, destructor, or type conversion before ‘(’ token
This is the code I'm trying to compile.
#include <gtkmm.h>
Gtk::Main kit(argc, argv);
Gtk::Window window;
Gtk::Main::run(window);
If I'm using the code right, I'm not sure. I got it from the GTKmm documentation (http://library.gnome.org/devel/gtkmm-tutorial/unstable/sec-basics-simple-example.html.en).