-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path纪要
27 lines (20 loc) · 819 Bytes
/
纪要
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
环境搭建
download glfw source code
apt install libglfw3-dev build-essential cmake libxinerama-dev libxcursor-dev libxi-dev
mkdir build in glfw source code and cd into it
cmake ../
make
make install with root
download glew source code
make
make install with root
sudo apt-get install mesa-common-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
CMakeLists:
add_compile_options(-lglfw3 -lGLEW -lGL -lGLU -lX11 -lpthread -lXrandr -lXi -ldl)
target_link_libraries(main glfw3 GLEW GL m Xrandr Xi X11 pthread dl Xinerama Xcursor)
sudo ln -s /usr/lib64/libGLEW.so.2.1 /usr/lib/ 以解决libGLEW.so no such file or dir的问题which doesn't occured in arm64。
coding
cmake(为方便整理,构建到build目录中)
make
run!