Using $(shell) in makefile [message #726130] |
Fri, 16 September 2011 16:18 |
Alastair Andrew Messages: 2 Registered: August 2011 |
Junior Member |
|
|
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 16:18] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03095 seconds