Re: Compiling with Eclipse



El mié, 11-07-2012 a las 09:51 -0300, Rodrigo Nunes escribió:
> Forgive my ignorance, but how do I change this in eclipse?
> I've tried everything here and I can not solve.

I believe it's not possible to use pkg-config automatically within
eclipse. You can run that command on your terminal and then throw the
library and path flags in your project settings. You can do this in the
Project -> Project Paths tab.

Or else, I would recommend using CMake to build your projects. You can
write a CMakeLists.txt file that takes care of automatic discovery, and
then use the "cmake -G" command to generate an Eclipse project for you
(you only need to do this once). Then, in Eclipse, you can "Import ->
Existing projects", and everytime you build, cmake will take care for
you to provide the appropriate flags.

Hope this helps,
Fernando



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]