Linux 'EventScheduler' has not been declared
#1
Hi,
i am trying to compile xbmc-11.0 on "minimal rootfs" using "openwrt toolchain-i386" but is fail on libsidplay2

Code:
make[4]: Leaving directory `/mnt/wd/zz/dev/i386/media_r27128/build_dir/target-i386_eglibc-2.12/xbmc-11.0/lib/nosefart'
make -C lib/libsidplay2
make[4]: Entering directory `/mnt/wd/zz/dev/i386/media_r27128/build_dir/target-i386_eglibc-2.12/xbmc-11.0/lib/libsidplay2'
CPP     lib/libsidplay2/builders/resid-builder/src/resid-builder.o
CPP     lib/libsidplay2/builders/resid-builder/src/resid.o
CPP     lib/libsidplay2/resid/sid.o
CPP     lib/libsidplay2/libsidplay/src/config.o
In file included from libsidplay/src/c64/c64xsid.h:25,
                 from libsidplay/src/player.h:198,
                 from libsidplay/src/config.cpp:153:
libsidplay/src/c64/../xsid/xsid.h: In member function 'uint_least8_t channel::convertAddr(uint_least8_t)':
libsidplay/src/c64/../xsid/xsid.h:204: warning: suggest parentheses around arithmetic in operand of '|'
CPP     lib/libsidplay2/libsidplay/src/event.o
libsidplay/src/event.cpp:58: error: 'EventScheduler' has not been declared
libsidplay/src/event.cpp:58: error: ISO C++ forbids declaration of 'EventScheduler' with no type
libsidplay/src/event.cpp: In function 'int EventScheduler(const char*)':
libsidplay/src/event.cpp:59: error: only constructors take base initializers
libsidplay/src/event.cpp:61: error: invalid use of 'this' in non-member function
libsidplay/src/event.cpp:63: error: 'm_next' was not declared in this scope
libsidplay/src/event.cpp:63: error: invalid use of 'this' in non-member function
libsidplay/src/event.cpp:64: error: 'm_prev' was not declared in this scope
libsidplay/src/event.cpp:64: error: invalid use of 'this' in non-member function
libsidplay/src/event.cpp:65: error: 'reset' was not declared in this scope
libsidplay/src/event.cpp:66: warning: no return statement in function returning non-void
libsidplay/src/event.cpp: At global scope:
libsidplay/src/event.cpp:70: error: 'EventScheduler' is not a class or namespace
libsidplay/src/event.cpp: In function 'void event()':
libsidplay/src/event.cpp:72: error: 'Event' was not declared in this scope
libsidplay/src/event.cpp:72: error: 'e' was not declared in this scope
libsidplay/src/event.cpp:72: error: 'm_next' was not declared in this scope
libsidplay/src/event.cpp:73: error: 'm_events' was not declared in this scope
libsidplay/src/event.cpp:74: error: 'm_absClk' was not declared in this scope
libsidplay/src/event.cpp:74: error: 'm_clk' was not declared in this scope
libsidplay/src/event.cpp:82: error: 'm_timeWarp' was not declared in this scope
libsidplay/src/event.cpp:82: error: 'EVENT_CLOCK_PHI1' was not declared in this scope
libsidplay/src/event.cpp:82: error: 'schedule' was not declared in this scope
libsidplay/src/event.cpp:73: warning: unused variable 'count'
libsidplay/src/event.cpp: At global scope:
libsidplay/src/event.cpp:85: error: 'EventScheduler' is not a class or namespace
libsidplay/src/event.cpp: In function 'void reset()':
libsidplay/src/event.cpp:87: error: 'Event' was not declared in this scope
libsidplay/src/event.cpp:87: error: 'e' was not declared in this scope
libsidplay/src/event.cpp:87: error: 'm_next' was not declared in this scope
libsidplay/src/event.cpp:88: error: 'm_events' was not declared in this scope
libsidplay/src/event.cpp:89: error: 'm_pending' was not declared in this scope
libsidplay/src/event.cpp:95: error: invalid use of 'this' in non-member function
libsidplay/src/event.cpp:96: error: 'm_prev' was not declared in this scope
libsidplay/src/event.cpp:96: error: invalid use of 'this' in non-member function
libsidplay/src/event.cpp:97: error: 'm_clk' was not declared in this scope
libsidplay/src/event.cpp:97: error: 'm_absClk' was not declared in this scope
libsidplay/src/event.cpp:88: warning: unused variable 'count'
libsidplay/src/event.cpp: At global scope:
libsidplay/src/event.cpp:103: error: 'EventScheduler' is not a class or namespace
libsidplay/src/event.cpp:103: error: variable or field 'schedule' declared void
libsidplay/src/event.cpp:103: error: 'Event' was not declared in this scope
libsidplay/src/event.cpp:103: error: 'event_clock_t' was not declared in this scope
libsidplay/src/event.cpp:104: error: 'event_phase_t' was not declared in this scope
make[4]: *** [libsidplay/src/event.o] Error 1
make[4]: Leaving directory `/mnt/wd/zz/dev/i386/media_r27128/build_dir/target-i386_eglibc-2.12/xbmc-11.0/lib/libsidplay2'
make[3]: *** [papcodecs] Error 2
make[3]: Leaving directory `/mnt/wd/zz/dev/i386/media_r27128/build_dir/target-i386_eglibc-2.12/xbmc-11.0'

any idea how to fix this ?

Thanks.

(i486) gcc-4.4.5
eglibc-2.12
Reply
#2
g++ verbose mode http://pastebin.com/GEeYXReZ (raw http://pastebin.com/raw.php?i=GEeYXReZ)
Reply
#3
skunkworks:xbmc-git davilla$ grep -r EventScheduler lib/libsidplay2/
lib/libsidplay2/libsidplay/include/sidplay/event.h: friend class EventScheduler;
lib/libsidplay2/libsidplay/include/sidplay/event.h:class EventScheduler: public EventContext, public Event
lib/libsidplay2/libsidplay/include/sidplay/event.h: EventScheduler &m_scheduler;
lib/libsidplay2/libsidplay/include/sidplay/event.h: EventTimeWarp (EventScheduler *context)
lib/libsidplay2/libsidplay/include/sidplay/event.h: EventScheduler (const char * const name);

something is not including event.h

hehe, i486-openwrt-linux-gnu-g++ Smile
Reply

Logout Mark Read Team Forum Stats Members Help
'EventScheduler' has not been declared0