0

当我想在 centos 6.4 上制作 nvEncodeApp NVENC SDK 示例时,出现此错误:

/usr/bin/ld: cannot find -lnvidia-encode

当我检查 Make file 时,这个库的路径在这里:

-L/usr/lib64 -lnvidia-encode -ldl

我检查了 /usr/lib64 但那里没有任何 libnvidia-encode:

这个库将如何添加到这个路径,这个库是什么?

使用 nvidia-smi 应该告诉你:

nvidia-smi 
Tue Jul 16 20:19:20 2013       
+------------------------------------------------------+                       
| NVIDIA-SMI 4.304.54   Driver Version: 304.54         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name                     | Bus-Id        Disp.  | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap| Memory-Usage         | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  VGX K1                   | 0000:85:00.0     Off |                  N/A |
| N/A   31C    P0    13W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  VGX K1                   | 0000:86:00.0     Off |                  N/A |
| N/A   39C    P0    13W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   2  VGX K1                   | 0000:87:00.0     Off |                  N/A |
| N/A   54C    P0    14W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   3  VGX K1                   | 0000:88:00.0     Off |                  N/A |
| N/A   48C    P0    14W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   4  VGX K1                   | 0000:8B:00.0     Off |                  N/A |
| N/A   31C    P0    13W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   5  VGX K1                   | 0000:8C:00.0     Off |                  N/A |
| N/A   40C    P0    14W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   6  VGX K1                   | 0000:8D:00.0     Off |                  N/A |
| N/A   59C    P0    15W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   7  VGX K1                   | 0000:8E:00.0     Off |                  N/A |
| N/A   60C    P0    14W /  31W |   0%    8MB / 4095MB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes:                                               GPU Memory |
|  GPU       PID  Process name                                     Usage      |
|=============================================================================|
|  No running compute processes found                                         |
+-----------------------------------------------------------------------------+
4

2 回答 2

1

就我而言,我必须从 to 创建一个符号/usr/lib/nvidia-367/链接/usr/lib/x86_64-linux-gnu/

sudo ln -sv /usr/lib/nvidia-367/libnvidia-encode.so /usr/lib/x86_64-linux-gnu/libnvidia-encode.so
于 2016-11-21T00:40:28.483 回答
0

SDK 中的自述文件表明需要 R319 或更新的驱动程序。您的 nvidia-smi 显示的 304.54 驱动程序已使用近一年,不符合要求。请在此处为您的 VGX K1 GPU 更新到最新的 linux 驱动程序,然后重试。

于 2013-07-17T00:44:49.770 回答