在Ubuntu上安装C ++库 [英] Installing C++ library on Ubuntu
问题描述
我必须是一个noob,在Linux上总是有麻烦安装。我尝试从以下位置安装: http://openil.sourceforge.net/download.php 。所以我按照手册(http://openil.sourceforge.net/docs/index.php)从DL页面使用DevIL 1.7.8 tar.gz。
-
我没有预先编译.so作为手动状态。
-
它尝试编译自己,我看到没有OpenIL添加到usr / lib或usr / include(作为手动状态)安装。
-
我想通过软件包管理器安装它,但我还是不知道我需要包含/链接到的文件。
更新:仔细看看2.上面的安装输出显示,这些东西实际上是安装在用户/本地手册)。
因此,为了确定,我如何将.so和.h链接到我的程序。
这是我做的(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
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.
I see no precompiled .so's as the manual states.
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.
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.
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
这篇关于在Ubuntu上安装C ++库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!