News:

Latest versions:
Server plugin: 0.5.1
MVP dongle: 0.5.2
Raspberry Pi client: 0.5.2
Windows client: 0.5.2-1

Main Menu

Fails to compile - is apt-get upgrade to blame?

Started by sirwio, November 19, 2012, 18:00:37

Previous topic - Next topic

sirwio

Did an apt-get update, apt-get upgrade yesterday.

When I now compile head of vompclient-raspi I get the following error:


pi@raspberrypi ~/vomp/vompclient-raspi $ make
raspberry normal compiler
Setting up objects
Raspberry pi flags
g++ -g -O0 -Wall -Wshadow -DDEV -D_GNU_SOURCE -DVOMP_PLATTFORM_RASPBERRY   -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads  -I/usr/include/freetype2 -I/usr/include/ImageMagick -D__STDC_CONSTANT_MACROS   -c -o osdopenvg.o osdopenvg.cc
osdopenvg.cc: In member function 'virtual int OsdOpenVG::init(void*)':
osdopenvg.cc:169:68: error: 'graphics_get_display_size' was not declared in this scope
osdopenvg.cc:103:10: warning: unused variable 'video' [-Wunused-variable]
osdopenvg.cc: In member function 'virtual void OsdOpenVG::threadMethod()':
osdopenvg.cc:469:16: warning: unused variable 'waittime' [-Wunused-variable]
osdopenvg.cc: In member function 'unsigned int OsdOpenVG::loadTTchar(cTeletextChar)':
osdopenvg.cc:569:35: error: invalid conversion from 'const VGfloat* {aka const float*}' to 'VGfloat* {aka float*}' [-fpermissive]
/opt/vc/include/VG/openvg.h:680:31: error:   initializing argument 4 of 'void vgSetGlyphToImage(VGFont, VGuint, VGImage, VGfloat*, VGfloat*)' [-fpermissive]
osdopenvg.cc:569:35: error: invalid conversion from 'const VGfloat* {aka const float*}' to 'VGfloat* {aka float*}' [-fpermissive]
/opt/vc/include/VG/openvg.h:680:31: error:   initializing argument 5 of 'void vgSetGlyphToImage(VGFont, VGuint, VGImage, VGfloat*, VGfloat*)' [-fpermissive]
osdopenvg.cc: In member function 'int OsdOpenVG::loadFont(bool)':
osdopenvg.cc:692:10: warning: unused variable 'n_point' [-Wunused-variable]
osdopenvg.cc:693:10: warning: unused variable 'last_cont' [-Wunused-variable]
osdopenvg.cc:749:8: warning: unused variable 'n' [-Wunused-variable]
osdopenvg.cc: In member function 'virtual ImageIndex OsdOpenVG::createJpeg(const char*, int*, int*)':
osdopenvg.cc:1147:7: warning: unused variable 'mem' [-Wunused-variable]
osdopenvg.cc: In member function 'unsigned int OsdOpenVG::handleTask(OpenVGCommand&)':
osdopenvg.cc:1037:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [osdopenvg.o] Error 1


The version of gcc reports:

pi@raspberrypi ~/vomp/vompclient-raspi $ gcc --version
gcc (Debian 4.6.3-12+rpi1) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

pi@raspberrypi ~/vomp/vompclient-raspi $ g++ --version
g++ (Debian 4.6.3-12+rpi1) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Any suggestions?


sirwio

Adding #include <bcm_host.h> in files audioomx.cc, osdopenvg.cc and videoomx.cc and changing the declaration of the two last variables passed to  vgSetGlyphToImage from being const make vompclient compile again.

I won't bother creating a patch for this unless Marten suggests so.

MartenR

Thanks for reporting the troubles with the gcc update.
Will be fixed soon in git.

Marten