Search Suggest

OpenGL ES with Raspberry PI





+ you need to have rootfs of RPI on host, openg es framework on RPI rootfs /opt/vc/lib folder
+ source code get from here
   - change SDKSTAGE in Makefile to your RPI'rootfs
+ build app as bellow

#source build environment
TOOLCHAIN_DIR=/opt/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64
export PATH=$PATH:${TOOLCHAIN_DIR}/bin

#build
make

#copy to boar via scp command on host
scp -r your_opengles_app_on_host pi@192.168.1.3:/home/pi/

#terminal on RPI
export LD_LIBRARY_PATH=/opt/vc/lib
run_your_opengles_app



Đăng nhận xét