openvg library on Ubuntu-MATE - Raspberry Pi Forums
hi,
had ajstarks' openvg library working in raspbian (jessie).
later wanted try out ubuntu-mate, installed on fresh sdcard.
followed same procedure install openvg library , got bunch of errors & warnings :
..... , on ...
what's going on, , how library working on ubuntu-mate ?
thank you!
had ajstarks' openvg library working in raspbian (jessie).
later wanted try out ubuntu-mate, installed on fresh sdcard.
followed same procedure install openvg library , got bunch of errors & warnings :
code: select all
royce@anshulpi:~$ git clone git://github.com/ajstarks/openvg cloning 'openvg'... remote: counting objects: 961, done. remote: total 961 (delta 0), reused 0 (delta 0), pack-reused 961 receiving objects: 100% (961/961), 5.94 mib | 564.00 kib/s, done. resolving deltas: 100% (525/525), done. checking connectivity... done. royce@anshulpi:~$ cd openvg royce@anshulpi:~/openvg$ make g++ -i/usr/include/freetype2 fontutil/font2openvg.cpp -o font2openvg -lfreetype ./font2openvg /usr/share/fonts/truetype/ttf-dejavu/dejavusans.ttf dejavusans.inc dejavusans 224 glyphs written ./font2openvg /usr/share/fonts/truetype/ttf-dejavu/dejavusansmono.ttf dejavusansmono.inc dejavusansmono 224 glyphs written ./font2openvg /usr/share/fonts/truetype/ttf-dejavu/dejavuserif.ttf dejavuserif.inc dejavuserif 224 glyphs written gcc -o2 -wall -i/opt/vc/include -i/opt/vc/include/interface/vmcs_host/linux -i/opt/vc/include/interface/vcos/pthreads -fpic -c oglinit.c in file included /opt/vc/include/interface/vcos/vcos.h:185:0, /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33, /opt/vc/include/egl/eglplatform.h:110, /opt/vc/include/egl/egl.h:36, oglinit.c:1: /opt/vc/include/interface/vcos/vcos_timer.h:112:6: warning: inline function ‘vcos_timer_delete’ declared never defined void vcos_timer_delete(vcos_timer_t *timer); ^ /opt/vc/include/interface/vcos/vcos_timer.h:109:6: warning: inline function ‘vcos_timer_reset’ declared never defined void vcos_timer_reset(vcos_timer_t *timer, vcos_unsigned delay); ^ /opt/vc/include/interface/vcos/vcos_timer.h:102:6: warning: inline function ‘vcos_timer_cancel’ declared never defined
what's going on, , how library working on ubuntu-mate ?
thank you!
you've listed warnings, not errors.
warnings compiler telling functions declared extern inline without actual function definition. extern inline means inline code if possible, otherwise generate function call not output callable function, allows having 1 callable function defined in 1 file (otherwise multiple files generate same function isn't allowed). there comments in include files give explanation of why done way.
assume you're using gcc 5 (or above), defaults c99 in you're not meant declare inline function without defining it, whereas allowed to. whatever other errors have may stem or other changes in c99. try editing makefile add -std=gnu89 gcc lines e.g. (do gcc lines)
warnings compiler telling functions declared extern inline without actual function definition. extern inline means inline code if possible, otherwise generate function call not output callable function, allows having 1 callable function defined in 1 file (otherwise multiple files generate same function isn't allowed). there comments in include files give explanation of why done way.
assume you're using gcc 5 (or above), defaults c99 in you're not meant declare inline function without defining it, whereas allowed to. whatever other errors have may stem or other changes in c99. try editing makefile add -std=gnu89 gcc lines e.g. (do gcc lines)
code: select all
libshapes.o: libshapes.c shapes.h paintcache.h fontinfo.h fonts gcc -std=gnu89 -o2 -wall $(includeflags) -c libshapes.c
raspberrypi
Comments
Post a Comment