Skip to content

Latest commit

 

History

History

pangolin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

pangolin

stevenlovegrove/Pangolin

install dependencies

OpenGL

sudo apt install libgl1-mesa-dev

Glew

sudo apt install libglew-dev

Python3, for drop-down interactive console

git submodule init && git submodule update
sudo python -m pip install numpy pyopengl Pillow pybind11
sudo apt install pkg-config

Wayland

sudo apt install libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols

install from source

git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
sudo make install

use it in another project

cmake_minimum_required(VERSION 3.0)
project(MY_GRAND_PROJECT)

find_package(Pangolin REQUIRED)

#message(STATUS "Pangolin_INCLUDE_DIRS dir: ${Pangolin_INCLUDE_DIRS}")
#message(STATUS "Pangolin_LIBRARIES dir: ${Pangolin_LIBRARIES}")

#include_directories(${Pangolin_INCLUDE_DIRS})

add_executable(<NAME> <NAME>.pp)
target_link_libraries(<NAME> ${Pangolin_LIBRARIES}) 
#include <pangolin/pangolin.h>