pkg-config fails to find packages when run from eclipse

一个人想着一个人 提交于 2019-12-06 11:26:53

I found the solution to my problem.

I'm not sure why but in eclipse Helios it seems that eclipse automatically defines an environment variable called $PKG_CONFIG_LIBDIR. If this variable exists the default search path for pkg-config is changed to whatever is in this variable. The solution is simply to undefine this variable.

from eclipse go to:

Project properties->C/C++ build -> Environment

to unset the variable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!