当我想在centos 6.4上制作nvEncodeApp NVENC SDK示例时,我遇到了这个错误:
/usr/bin/ld: cannot find -lnvidia-encode
当我选中Make文件时,这个库的路径就在这里:
-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 |
+-----------------------------------------------------------------------------+
答案 0 :(得分:1)
就我而言,我必须创建一个从/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
答案 1 :(得分:0)
SDK中的自述文件表明需要R319或更新的驱动程序。 nvidia-smi指示的你的304.54驱动程序已经快一年了,不符合要求。请更新到VGX K1 GPU here的最新Linux驱动程序,然后重试。