R-PI glui UI contrils on EGL Experiment

procedures, notes, reminders
Post Reply
Posts: 14
Joined: Thu Nov 07, 2019 3:32 am

R-PI glui UI contrils on EGL Experiment

Post by comarius » Thu Jan 16, 2020 10:59 pm

Ongoing research.

download https://sourceforge.net/projects/freeglut/ latest right on pi

build for native GLES

Edit CMakeLIst.txt and add

Code: Select all

# NOTE: On Windows and Cygwin, the dll's are placed in the
# CMAKE_RUNTIME_OUTPUT_DIRECTORY, while their corresponding import
# libraries end up in CMAKE_ARCHIVE_OUTPUT_DIRECTORY. On other
# platforms, such as Linux, the shared libraries are put in
# Static libraries end up in CMAKE_ARCHIVE_OUTPUT_DIRECTORY on all
# platforms.

INCLUDE_DIRECTORIES(/opt/vc/include)   # <<<<<<<THIS
link_directories(/opt/vc/lib)                             # < and THIS

Code: Select all

apt-get install libgles1-mesa-dev libgles2-mesa-dev
cd /freeglut-X.Y.Z/
mkdir native-gles/ && cd native-gles/
cmake \
  -DCMAKE_INSTALL_PREFIX=/tmp/freeglut-native-gles \
make -j4

Code: Select all

~/freeglut/freeglut-3.2.1 $ find -name *.so

... to be continued...

Post Reply