No OpenVG in Raspbian Stretch Lite? Solved - Raspberry Pi Forums


i (and 200 others) have been using openvg graphics on headless rpi running jessie lite touchscreen control digital amateur television transmitter year or so. realise sooner or later going have migrate stretch , have started testing.

can't seem find components need openvg in either desktop or lite versions of stretch (we end using lite version). 1 cause of problem appears libopenvg.so , number of other files not included in /opt/vc/lib/. means when come compile errors such :

code: select all

libshapes.o: in function `loadfont': libshapes.c:(.text+0x1c0): undefined reference `vgcreatepath' libshapes.c:(.text+0x1e4): undefined reference `vgappendpathdata'
have changed makefile use -lbrcmegl -lbrcmglesv2 rather -legl , -lglesv2

there package can load install openvg library files? or missing else obvious?

suggestions

dave
project lead portsdown datv transmitter: https://github.com/britishamateurtelevisionclub/rpidatv

small tips on how solve similar problems...

step 1: header file defines function missing ?

code: select all

pi@raspberrypi:/ $ cd /opt/vc/include/ pi@raspberrypi:/opt/vc/include $ rgrep vgcreatepath . ./vg/openvg.h:vg_api_call vgpath vg_api_entry vgcreatepath(vgint pathformat, pi@raspberrypi:/opt/vc/include $ 
ok, "openvg.h" is..

step 2: library file can suitable ?

code: select all

pi@raspberrypi:/opt/vc/include $ cd /opt/vc/lib/ pi@raspberrypi:/opt/vc/lib $ ls libbcm_host.so    libdebug_sym.so        libglesv1_cm.so        libmmal_core.so       libvcfiled_check.a  libwfc.so libbrcmegl.so     libdebug_sym_static.a  libglesv2.so           libmmal.so            libvchiq_arm.so     plugins libbrcmglesv2.so  libdtovl.so            libglesv2_static.a     libmmal_util.so       libvchostif.a libbrcmopenvg.so  libegl.so              libkhrn_client.a       libmmal_vc_client.so  libvcilcs.a libbrcmwfc.so     libegl_static.a        libkhrn_static.a       libopenmaxil.so       libvcos.so libcontainers.so  libelftoolchain.so     libmmal_components.so  libopenvg.so          libvcsm.so 
hmm.. libopenvg looks promising considering name of headerfile...

step 3 : can check functions in library ?

yes can.

code: select all

pi@raspberrypi:/opt/vc/lib $ nm libopenvg.so | grep vgcreatepath 00008ac0 t vgcreatepath 
make sure "-l/opt/vc/lib -lopenvg" part of compiler options.

tip if unsure package file belongs to:

code: select all

pi@raspberrypi:/opt/vc/lib $ dpkg -s libopenvg.so libraspberrypi0: /opt/vc/lib/libopenvg.so pi@raspberrypi:/opt/vc/lib $ dpkg -l | grep libraspberrypi0 ii  libraspberrypi0                1.20170703-1                      armhf        egl/gles/openvg/etc. libraries raspberry pi's videocore iv 


raspberrypi



Comments