当我想在 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 |
+-----------------------------------------------------------------------------+