[Dev-C++] =?iso-8859-2?Q?Problems=20with=20Gtk+/gtkmm=20under=20Windows2000=20/=20can=B4t=20compile=
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Oliver B. <the...@gm...> - 2003-08-28 17:45:20
|
Hi all,
this is the first time I post to this list so bare with me :-)
I got the following problem:
my setup for gtk+/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 and added 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 and added 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 my commandshell in
c:\dev-cpp\bin and saved the output in a 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 my project and paste the following code into
a new 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, I compiled and executed 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"
Here is the makefile dev-c++ created:
# Project: Projekt1
# Makefile created by Dev-C++ 4.9.8.0
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = test.o $(RES)
LINKOBJ = test.o $(RES)
LIBS = -L"F:/dev-cpp/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
INCS = -I"F:/dev-cpp/include"
CXXINCS = -I"F:/dev-cpp/include/c++" -I"F:/dev-cpp/include/c++/mingw32" -I"F:/dev-
cpp/include/c++/backward" -I"F:/dev-cpp/include"
BIN = Projekt1.exe
CXXFLAGS = $(CXXINCS)-IC:/Dev-Cpp/include/gtkmm-2.0 -IC:/Dev-Cpp/lib/gtkmm-2.0/include -IC:/Dev-
Cpp/include/gtk-2.0 -IC:/Dev-Cpp/lib/sigc++-1.2/include -IC:/Dev-Cpp/include/sigc++-1.2 -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/lib
CFLAGS = $(INCS)
.PHONY: all all-before all-after clean clean-custom
all: all-before Projekt1.exe all-after
clean: clean-custom
rm -f $(OBJ) $(BIN)
$(BIN): $(LINKOBJ)
$(CPP) $(LINKOBJ) -o "Projekt1.exe" $(LIBS)
test.o: test.cpp
$(CPP) -c test.cpp -o test.o $(CXXFLAGS)
I don´t know what I´m doing wrong because on another computer it works ? !
Would be very glad if I could get some help :-)))
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: pow...@we... ...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 ... http://www.the-unchallenged.de ... Metal - Fanzines
get in contact !!!
|