01 ubuntu install glfw

1. Download the source code of glfw 3.3.5 from:

glfw 3.3.5

2. Unzip

Use right click to decompress, or use command

unzip glfw-3.3.5.zip -d glfw-3.3.5

3. Install dependencies

sudo apt-get install cmake xorg-dev libglu1-mesa-dev

4. Compile and install

cd glfw3-3.3.5
// 建立目录放置cmake的临时文件
sudo mkdir glfw-build
sudo cmake ../
sudo make
sudo make install

The successful screenshot is shown in the figure
Insert image description here
. This is the first step in using opencv. It is expected to use python or C++ to use opencv in the future. It depends on the requirements and the mastery of the tools.

Guess you like

Origin blog.csdn.net/scarlettsp/article/details/121477481