-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUG_SLOVE
174 lines (84 loc) · 3.49 KB
/
BUG_SLOVE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# ancaonda
1. apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6
2. sh Anaconda3-2023.09-0-Linux-x86_64.sh(自己的文件名)
3. source ~/.bashrc
conda update --all
4. 快捷方式:
[Desktop Entry]
Name=Anaconda
Version=1.0
Type=Application
Exec=/home/*****/anaconda3/bin/anaconda-navigator
Icon=/home/*****/lib/python3.1/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
# Open3D
```
[Open3D WARNING] GLFW Error: GLX: Failed to create context: GLXBadFBConfig
[Open3D WARNING] Failed to create window
[Open3D WARNING] [DrawGeometries] Failed creating OpenGL window.
```
by running `export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6` in your terminal you are good to go.
# cuda
```
gedit ~/.bashrc
export PATH=/usr/local/cuda-xx.x/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/cuda-xx.x/lib64:${LD_LIBRARY_PATH}
source ~/.bashrc
nvcc --version
```
# cudnn
1、cudnn安装:
sudo apt-get install zlib1g
sudo dpkg -i cudnn-local-repo-${distro}-8.x.x.x_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-*/cudnn-local-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get install libcudnn8=8.x.x.x-1+cudaX.Y
sudo apt-get install libcudnn8-dev=8.x.x.x-1+cudaX.Y
sudo apt-get install libcudnn8-samples=8.x.x.x-1+cudaX.Y
2、cudnn验证:
cp -r /usr/src/cudnn_samples_v8/ $HOME
cd $HOME/cudnn_samples_v8/mnistCUDNN
make clean && make
./mnistCUDNN
3、问题及解决方案:
问题1:
#当出现g++: No such file or directory
sudo apt-get install g++
lsb_release -a
sudo gedit /etc/apt/sources.list
#阿里源
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade
问题2:
#当出现test.c:1:10: fatal error: FreeImage.h: 没有那个文件或目录
1 | #include "FreeImage.h"
| ^~~~~~~~~~~~~
#输入
sudo apt-get install libfreeimage
```
Kinect V2 Ubuntu 驱动安装CUDA相关错误解决
对libfreenect2库进行make时报错:
fatal error: helper_math.h: No such file or directory
错误原因:
11.6版本之前的CUDA安装时会附带安装CUDA Samples,helper_math.h文件在/xxxx/NVIDIA_CUDA-10.1_Samples/common/inc/helper_math.h位置;11.6版本之后不再附带Samples,从而找不到该文件。
解决方法:
手动下载Samples
1.1. 从github克隆Samples库
git clone https://github.com/NVIDIA/cuda-samples.git
1.2. 在cmake之前添加相应路径到CPATH
export CPATH=$CPATH:/home/xxxx/cuda-samples/Common/
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2
make
make install