Installing C++ library on Ubuntu [closed]

删除回忆录丶 提交于 2019-12-07 22:29:24

问题


I must be a noob, always have trouble installing on Linux. I'm trying to install from: http://openil.sourceforge.net/download.php. So I followed the manual (http://openil.sourceforge.net/docs/index.php) using DevIL 1.7.8 tar.gz from the DL page.

  1. I see no precompiled .so's as the manual states.

  2. It try to compile myself and I see no OpenIL additions to usr/lib or usr/include (as the manual states) after doing a config,build,install.

  3. I supposedly installed it through package manager...but I still don't know where the files I need to include/link to are.

UPDATE: A closer look at the install output for 2. above shows that stuff was actually installed under user/local (thanks alot manual).

So just to be certain, how do I go about linking the .so and the .h to my program.


回答1:


As for 3:

Here's what I did (Ubuntu 11.04):

$ sudo apt-get install libdevil1c2 libdevil-dev
$ apt-file show libdevil1c2
libdevil1c2: /usr/bin/ilur
libdevil1c2: /usr/lib/libIL.so.1
libdevil1c2: /usr/lib/libIL.so.1.1.0
libdevil1c2: /usr/lib/libILU.so.1
libdevil1c2: /usr/lib/libILU.so.1.1.0
libdevil1c2: /usr/lib/libILUT.so.1
libdevil1c2: /usr/lib/libILUT.so.1.1.0
libdevil1c2: /usr/share/doc/libdevil1c2/changelog.Debian.gz
libdevil1c2: /usr/share/doc/libdevil1c2/copyright
libdevil1c2: /usr/share/lintian/overrides/libdevil1c2


来源:https://stackoverflow.com/questions/8334842/installing-c-library-on-ubuntu

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