Hi,
I got the code from git.vomp.tv
After struggling for a while and failing to build the full vomp cross-compile toolchain I tried just the vompclient-raspi and that made some progress but gets stuck on some errors in mediafile.cc:
pi@raspberrypi ~/vomp/vompclient-raspi $ git pull
Already up-to-date.
pi@raspberrypi ~/vomp/vompclient-raspi $ git status
# On branch xvmc
nothing to commit (working directory clean)
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 -D__STDC_CONSTANT_MACROS -c -o mediafile.o mediafile.cc
mediafile.cc: In member function ‘virtual MediaList* MediaFile::getMediaList(const MediaURI*)’:
mediafile.cc:153:21: error: expected primary-expression before ‘struct’
mediafile.cc:153:36: error: ‘d_name’ was not declared in this scope
mediafile.cc:153:42: error: ‘offsetof’ was not declared in this scope
mediafile.cc:153:58: error: array bound is not an integer constant before ‘]’ token
make: *** [mediafile.o] Error 1
I'm on the 'wheezy' beta if that might be causing problems with a mis-match of tool versions.
The code that is throwing the error is:
char b[offsetof(struct dirent, d_name) + NAME_MAX + 1];
and it looks like the 'offsetof' is causing the problem. Temporarily hacking that line out leads to:
In file included from /opt/vc/include/interface/vcos/vcos_assert.h:140:0,
from /opt/vc/include/interface/vcos/vcos.h:105,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:25,
from /opt/vc/include/bcm_host.h:39,
from osdopengl.h:26,
from main.cc:71:
/opt/vc/include/interface/vcos/vcos_types.h:28:33: fatal error: vcos_platform_types.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
which looks to be related to
https://github.com/raspberrypi/firmware/issues/34 which seems to be an include path problem in the build script.
Have you had either of these issues? Or do they seem related to my RPi setup?