Hi,
I'm trying to use Eclipse CDT to compile a C++ project with an existing makefile. The project uses the library libxml++-2.6. In my makefile I call pkg-config to check that this library exists.
ifeq ($(shell pkg-config --modversion libxml++-2.6),)
$(error Package libxml++-2.6 needed to compile)
endif
This works fine from the command line but when executing the same makefile from within Eclipse CDT I get the error:
Quote:
**** Build of configuration Default for project PRoViScout ****
make -j2 tvcr
bash: pkg-config: command not found
Makefile:23: *** Package libxml++-2.6 needed to compile. Stop.
**** Build Finished ****
I've checked the PATH variable associated with the Eclipse project and it has the directory that pkg-config is located in so I'm at a loss as to why bash should think that pkg-config can't be found. Can the $(shell) command be used within Eclipse in this fashion?
Thanks,
Alastair
[Updated on: Fri, 16 September 2011 12:18] by Moderator