Raspiberry Pi, OpenVG 설치하는 방법입니다.
https://github.com/ajstarks/openvg
1. sudo apt-get install libjpeg8-dev indent libfreetype6-dev ttf-dejavu-core
2. git clone git://github.com/ajstarks/openvg
3. openvg 설치하기
pi@raspberrypi ~ $ cd openvg
pi@raspberrypi ~/openvg $ make
pi@raspberrypi ~/openvg $ make library
pi@raspberrypi ~/openvg $ sudo make install
4. example 빌드하기
pi@raspberrypi ~/openvg $ cd client
pi@raspberrypi:~/openvg/client$ make all
gcc -Wall -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -I.. -o shapedemo shapedemo.c ../libshapes.o ../oglinit.o -L/opt/vc/lib -lEGL -lGLESv2 -lbcm_host -lpthread -ljpeg
/usr/bin/ld: cannot find -lEGL
/usr/bin/ld: cannot find -lGLESv2
collect2: error: ld returned 1 exit status
Makefile:7: recipe for target 'shapedemo' failed
make: *** [shapedemo] Error 1
pi@raspberrypi:~/openvg/client$
5. Makefile 수정
아래 링크를 통해 확인해 보면 Makefile 버그가 있다고 하네요
따라서 버그를 수정하고 빌드하면 됩니다.
https://github.com/ajstarks/openvg/pull/60/files
client/Makefile
@@ -1,5 +1,5 @@
INCLUDEFLAGS=-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -I..
-LIBFLAGS=-L/opt/vc/lib -lEGL -lGLESv2 -lbcm_host -lpthread -ljpeg
+LIBFLAGS=-L/opt/vc/lib -lbrcmEGL -lbrcmGLESv2 -lbcm_host -lpthread -ljpeg
pi@raspberrypi ~/openvg/client $ make all
6. example 빌드 완료
'Raspberry Pi 3' 카테고리의 다른 글
Raspberry Pi, OpenVG, example 실행화면 (0) | 2018.08.01 |
---|---|
Raspiberry Pi, WiringPi, softPWM (0) | 2018.08.01 |
Raspiberry Pi, WiringPi, I2C 사용하기 (0) | 2018.08.01 |
Raspberry Pi, WiringPi 라이브러리 설치 (0) | 2018.08.01 |
Raspberry Pi 3 B+ 핀 구성 [ pinout ] (0) | 2018.08.01 |