Page 1 of 1

openvg fails to install

Posted: Thu Jan 18, 2018 1:36 am
by DFansler
I just reinstalled Jessie with Stretch on my Raspberry Pi. I had been using AJStarks openvg prior ( just Jessie) to reinstalling the os without problem. But now that I have installed the new OS.

I started with
sudo apt-get install libjpeg8-dev indent libfreetype6-dev ttf-dejavu-core

followed by
git clone git://github.com/ajstarks/openvg
cd openvg
make
from make I get

gcc -O2 -Wall -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -fPIC -c libshapes.c
gcc -L/opt/vc/lib -lEGL -lGLESv2 -ljpeg -shared -o libshapes.so oglinit.o libshapes.o
Makefile:35: recipe for target 'library' failed

this is the output after already having run make previously - I think it had more statements before.

Any ideas on what I am doing wrong?
Thanks,
David

Re: openvg fails to install

Posted: Thu Jan 18, 2018 10:57 am
by Paeryn
You need to edit the Makefile slightly, the library names for GLESv2 and EGL changed (they had in Jessie but back then the old names were still in use as well). Where it links the files you need to change the

Code: Select all

-lGLESv2 -lEGL
to

Code: Select all

-lbrcmGLESv2 -lbrcmEGL

Re: openvg fails to install

Posted: Fri Jan 19, 2018 10:23 am
by DFansler
Thanks so much for your quick and accurate reply. After making the suggested changes, openvg installed without a problem.
Kind regards,
David

Re: openvg fails to install

Posted: Sat Jan 20, 2018 3:41 am
by DFansler
What do I need to put in my makefile for openvg. I am getting compile errors about not being able to find -iEGL and -lGLESv2
Thanks
David

Re: openvg fails to install

Posted: Sat Jan 20, 2018 3:50 am
by DFansler
oh never mind. i put in the same thing you had suggested for the makefile for the installation and it works.
David