Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Using $(shell) in makefile(Problems finding pkg-config from a $(shell) call. )
Using $(shell) in makefile [message #726130] Fri, 16 September 2011 16:18
Alastair Andrew is currently offline Alastair AndrewFriend
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

Previous Topic:Auto discovery
Next Topic:No Syntax Highlighting or Coding Help
Goto Forum:
  


Current Time: Wed Apr 24 16:50:56 GMT 2024

Powered by FUDForum. Page generated in 0.03095 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top