autotools

Make install, but not to default directories?

落爺英雄遲暮 提交于 2019-11-26 15:00:33
问题 I want to run 'make install' so I have everything I need, but I'd like it to install the things in their own folder as opposed to the system's /usr/bin etc. is that possible? even if it references tools in the /usr/bin etc.? 回答1: It depends on the package. If the Makefile is generated by GNU autotools ( ./configure ) you can usually set the target location like so: ./configure --prefix=/somewhere/else/than/usr/local If the Makefile is not generated by autotools, but distributed along with the

PKG_CHECK_MODULES considered harmful?

泄露秘密 提交于 2019-11-26 09:46:17
问题 Various developers discourage the usage of the PKG_CHECK_MODULES (for example, in this answer) but there is no clear, comprehensive explanation of their reasons as far as I\'ve looked for. So, I ask: Why would PKG_CHECK_MODULES be harmful? What are the alternatives? I, for one, used it for the first time today. I found it invaluably useful, specially for dealing with pretty intricate library sets, such as GTK+, where I have all these dependencies: -I/usr/lib/i386-linux-gnu/gtk-2.0/include -I