Modifying path prefix

43 views
Skip to first unread message

Mohith Manoj

unread,
Feb 13, 2016, 3:43:53 AM2/13/16
to pkg-config-support-for-eclipse-cdt
Hi,

I use Eclipse Mars.1 Release 4.5.1 under Windows 8.1. I'm able to install the pkg-config plug in, select the required package and have the include and lib settings updated. However there is a problem.

I installed mingw and gtkmm via msys and because of this the 'prefix variables of all .pc files are set as below.
prefix=/msys64/mingw64

Eclipse runs pkg-config to generate include path (and libs) and they look like,
/mingw64/include/gtkmm-3.0

Now when g++ sees '-I/mingw64/include/gdkmm-3.0', it is not able to find the header files because they are in 'c:/gnu/msys64/mingw64/include/gtkmm-3.0'.

If I rung pkg-config from command prompt with,
pkg-config --define-variable=prefix=c:/gnu/msys64/mingw64 --cflags gtkmm-3.0
I get proper output with full path

Q
How to force a prefix like above when pkg-config is invoked through eclipse.

Regards,

Mohith Manoj
Reply all
Reply to author
Forward
0 new messages