|
Re: gtkmm compilation error on eclipse [message #1742227 is a reply to message #1742134] |
Wed, 31 August 2016 22:18 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
The g++ command line is trying to run (before the actual g++ execution) `pkg-config --cflags gtkmm-3.0` which you apparently don't have. Or, if you do, then the back ticks, which mean "run this shell command", are not understood by the internal builder or the Windows command shell. You might try switching to the external builder but the shell you use would need to understand the back ticks. If you are able to execute the entire g++ command from a Windows command propmt then it likely is the internal builder as g++ is complaining not only about the pkg-config but also its parameters as if they were separate.
pkg-config reports various things about an installed package. It was originally developed for Linux but there are Windows versions available.
It requires that installation of a package will generate a configuration file.
Lacking that, what the command does (because of the -cflags) is return the includes paths needed to build using gtkmm plus other things like a reference to POSIX threads for GTK. There are a lot (this is for my Linux system):
-pthread -I/usr/include/gtkmm-3.0 -I/usr/lib64/gtkmm-3.0/include -I/usr/include/atkmm-1.6 -I/usr/include/gtk-3.0/unix-print -I/usr/include/gdkmm-3.0 -I/usr/lib64/gdkmm-3.0/include -I/usr/include/giomm-2.4 -I/usr/lib64/giomm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
If you still want the internal builder, you could add the include paths to your project manually. The ones for your system, of course. If you actually can execute pkg-config then maybe you can cut and paste them.
There is also a corresponding argument for loader flags.
[Updated on: Wed, 31 August 2016 23:01] Report message to a moderator
|
|
|
|
Re: gtkmm compilation error on eclipse [message #1742308 is a reply to message #1742229] |
Thu, 01 September 2016 15:36 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Are you sure you added the variables to the compile pattern? They don't seem to be in the command or ${PKGCFLAGS} is null.
Temporarily change the compiler command to:
Command: echo
Pattern: ${COMMAND} FL=${FLAGS} O=${OUTPUT_FLAG} OP=${OUTPUT_PREFIX} OUTS=${OUTPUT} INPS=${INPUTS} PKGC=${PKGCFLAGS}
and see what you get for each variable in the pattern.
|
|
|
Powered by
FUDForum. Page generated in 0.02909 seconds