gkk
15th October 2008, 02:13 PM
I'd like to build a basic gtk program with Kdevelop, but I can not compile it.
I've used this two configuration with the same result:
1)
LDFLAGS="pkg-config --cflags --libs gtk+-2.0"
CPPFLAGS="pkg-config --cflags --libs gtk+-2.0"
2)
LDFLAGS="pkg-config --libs gtkmm-2.4"
CPPFLAGS="pkg-config --cflags gtkmm-2.4"
I can compile the program from the command line with the first one, but I can not do it from kdevelop.
********************
The output is:
"configure: error: C++ compiler cannot create executables
See `config.log' for more details."
*******************
In the log file I've found this:
1)First case:
g++: pkg-config: No such file or directory
g++: gtk+-2.0: No such file or directory
g++: pkg-config: No such file or directory
g++: gtk+-2.0: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
2)Second case:
g++: pkg-config: No such file or directory
g++: gtkmm-2.4: No such file or directory
g++: pkg-config: No such file or directory
g++: gtkmm-2.4: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
************************************************** ***
I hope somebody may help me with this problem. :confused:
I've used this two configuration with the same result:
1)
LDFLAGS="pkg-config --cflags --libs gtk+-2.0"
CPPFLAGS="pkg-config --cflags --libs gtk+-2.0"
2)
LDFLAGS="pkg-config --libs gtkmm-2.4"
CPPFLAGS="pkg-config --cflags gtkmm-2.4"
I can compile the program from the command line with the first one, but I can not do it from kdevelop.
********************
The output is:
"configure: error: C++ compiler cannot create executables
See `config.log' for more details."
*******************
In the log file I've found this:
1)First case:
g++: pkg-config: No such file or directory
g++: gtk+-2.0: No such file or directory
g++: pkg-config: No such file or directory
g++: gtk+-2.0: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
2)Second case:
g++: pkg-config: No such file or directory
g++: gtkmm-2.4: No such file or directory
g++: pkg-config: No such file or directory
g++: gtkmm-2.4: No such file or directory
cc1plus: error: unrecognized command line option "-fcflags"
cc1plus: error: unrecognized command line option "-flibs"
************************************************** ***
I hope somebody may help me with this problem. :confused: