-
-
Notifications
You must be signed in to change notification settings - Fork 354
Compile on Linux
Patricio Gonzalez Vivo edited this page Jul 20, 2022
·
24 revisions
sudo apt install git cmake xorg-dev libglu1-mesa-dev libncurses5-dev libncursesw5-dev
For video support (using FFMpeg library LIBAV), also do:
sudo apt install ffmpeg libavcodec-dev libavcodec-extra libavfilter-dev libavfilter-extra libavdevice-dev libavformat-dev libavutil-dev libswscale-dev libv4l-dev libjpeg-dev libpng-dev libtiff-dev
sudo apt install git cmake xorg-dev libglu1-mesa-dev libncurses5-dev libncursesw5-dev
sudo apt install git cmake libgbm-dev libdrm-dev libegl1-mesa-dev libgles2-mesa-dev libncurses5-dev libncursesw5-dev
sudo dnf install git gcc-c++ cmake mesa-libGLU-devel libXi-devel libXxf86vm-devel
sudo yum install libXdamage-devel ncurses-devel
For video support (using FFMpeg library LIBAV), also do:
sudo dnf install ffmpeg ffmpeg-devel
sudo pacman -S glu ncurses
For video support (using FFMpeg library LIBAV), also do:
sudo pacman -S ffmpeg
git clone https://github.com/patriciogonzalezvivo/glslViewer.git
cd glslViewer
git submodule init
git submodule update
mkdir build
cd build
cmake ..
make
sudo make install
mkdir build
cd build
cmake -DNO_X11=TRUE ..
make
sudo make install
Note 1: Newer RaspberryPi distribution do have BROADCOM drivers but work only on GBM for that use -DFORCE_GBM=TRUE
instead.
Note 2: If you are using GBM make sure on your /boot/config.txt
you have the following lines present and/or un-commented:
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
hdmi_force_hotplug=1