You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I moved the contents of the $(OF_ROOT)/examples/rpi/addons/* into $(OF_ROOT)/addons/.
Then I added an addons.make file in the example folder ($(OF_ROOT)/examples/rpi/ofxOMXPlayer) with the line ofxOMXPlayer and ran make.
Then I got all of this. :)
Compiling OF library for Release
make[2]: Nothing to be done for `ReleaseABI'.
Done!
Compiling ofxOMXPlayer for Release
Compiling src/testApp.cpp
mkdir -p obj/linuxarmv6l/Release/src
g++ -c -Os -I./addons/ofxOMXPlayer/libs/ffmpeg/include -fPIC -U_FORTIFY_SOURCE -Wall -ftree-vectorize -ftree-vectorize -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -DPIC -D_REENTRANT -DOMX -DOMX_SKIP64BIT -I./src -I../../../addons/ofxOMXPlayer/libs/omxplayer/src -I../../../addons/ofxOMXPlayer/libs/omxplayer/src/utils -I../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libswscale -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavutil -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavfilter -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavcodec -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavformat -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavdevice -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libswresample -I../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libpostproc -I../../../addons/ofxOMXPlayer/src -Wall -fexceptions -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_MPG123 -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -pthread -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/arm-linux-gnueabihf/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I../../../libs/cairo/include -I../../../libs/cairo/include/cairo -I../../../libs/cairo/include/libpng15 -I../../../libs/cairo/include/pixman-1 -I../../../libs/fmodex/include -I../../../libs/kiss/include -I../../../libs/poco/include -I../../../libs/portaudio/include -I../../../libs/rtAudio/include -I../../../libs/tess2/include -I../../../libs/openFrameworks -I../../../libs/openFrameworks/events -I../../../libs/openFrameworks/types -I../../../libs/openFrameworks/math -I../../../libs/openFrameworks/sound -I../../../libs/openFrameworks/app -I../../../libs/openFrameworks/utils -I../../../libs/openFrameworks/gl -I../../../libs/openFrameworks/3d -I../../../libs/openFrameworks/communication -I../../../libs/openFrameworks/video -I../../../libs/openFrameworks/graphics -MMD -MP -MF obj/linuxarmv6l/Release/src/testApp.d -MT obj/linuxarmv6l/Release/src/testApp.o -o obj/linuxarmv6l/Release/src/testApp.o -c src/testApp.cpp
In file included from /opt/vc/include/interface/vcos/vcos.h:116:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/bcm_host.h:46,
from ../../../libs/openFrameworks/utils/ofConstants.h:152,
from ../../../libs/openFrameworks/ofMain.h:5,
from src/testApp.h:3,
from src/testApp.cpp:1:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:133:20: error: field ‘expires’ has incomplete type
In file included from /opt/vc/include/interface/vcos/vcos.h:116:0,
from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
from /opt/vc/include/bcm_host.h:46,
from ../../../libs/openFrameworks/utils/ofConstants.h:152,
from ../../../libs/openFrameworks/ofMain.h:5,
from src/testApp.h:3,
from src/testApp.cpp:1:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h: In function ‘VCOS_STATUS_T vcos_semaphore_wait_timeout(VCOS_SEMAPHORE_T*, VCOS_UNSIGNED)’:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:297:20: error: aggregate ‘timespec ts’ has incomplete type and cannot be defined
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h: In function ‘void vcos_sleep(uint32_t)’:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:371:20: error: aggregate ‘timespec ts’ has incomplete type and cannot be defined
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:374:23: error: ‘nanosleep’ was not declared in this scope
In file included from ../../../libs/openFrameworks/utils/ofConstants.h:334:0,
from ../../../libs/openFrameworks/ofMain.h:5,
from src/testApp.h:3,
from src/testApp.cpp:1:
/usr/include/c++/4.6/ctime: At global scope:
/usr/include/c++/4.6/ctime:62:11: error: ‘::clock_t’ has not been declared
/usr/include/c++/4.6/ctime:63:11: error: ‘::time_t’ has not been declared
/usr/include/c++/4.6/ctime:64:11: error: ‘::tm’ has not been declared
/usr/include/c++/4.6/ctime:66:11: error: ‘::clock’ has not been declared
/usr/include/c++/4.6/ctime:67:11: error: ‘::difftime’ has not been declared
/usr/include/c++/4.6/ctime:68:11: error: ‘::mktime’ has not been declared
/usr/include/c++/4.6/ctime:69:11: error: ‘::time’ has not been declared
/usr/include/c++/4.6/ctime:70:11: error: ‘::asctime’ has not been declared
/usr/include/c++/4.6/ctime:71:11: error: ‘::ctime’ has not been declared
/usr/include/c++/4.6/ctime:72:11: error: ‘::gmtime’ has not been declared
/usr/include/c++/4.6/ctime:73:11: error: ‘::localtime’ has not been declared
/usr/include/c++/4.6/ctime:74:11: error: ‘::strftime’ has not been declared
In file included from ../../../libs/poco/include/Poco/File.h:44:0,
from ../../../libs/openFrameworks/utils/ofFileUtils.h:4,
from ../../../libs/openFrameworks/ofMain.h:6,
from src/testApp.h:3,
from src/testApp.cpp:1:
../../../libs/poco/include/Poco/Timestamp.h:103:2: error: ‘time_t’ in namespace ‘std’ does not name a type
../../../libs/poco/include/Poco/Timestamp.h:125:38: error: ‘std::time_t’ has not been declared
../../../libs/poco/include/Poco/Timestamp.h:217:8: error: ‘time_t’ in namespace ‘std’ does not name a type
In file included from /usr/include/glib-2.0/glib.h:39:0,
from /usr/include/gstreamer-0.10/gst/gst.h:27,
from ../../../libs/openFrameworks/video/ofGstUtils.h:12,
from ../../../libs/openFrameworks/video/ofGstVideoGrabber.h:3,
from ../../../libs/openFrameworks/video/ofVideoGrabber.h:31,
from ../../../libs/openFrameworks/ofMain.h:71,
from src/testApp.h:3,
from src/testApp.cpp:1:
/usr/include/glib-2.0/glib/gbookmarkfile.h:150:11: error: ‘time_t’ has not been declared
/usr/include/glib-2.0/glib/gbookmarkfile.h:157:11: error: ‘time_t’ has not been declared
/usr/include/glib-2.0/glib/gbookmarkfile.h:176:11: error: ‘time_t’ has not been declared
/usr/include/glib-2.0/glib/gbookmarkfile.h:177:1: error: ‘time_t’ does not name a type
/usr/include/glib-2.0/glib/gbookmarkfile.h:182:11: error: ‘time_t’ has not been declared
/usr/include/glib-2.0/glib/gbookmarkfile.h:183:1: error: ‘time_t’ does not name a type
/usr/include/glib-2.0/glib/gbookmarkfile.h:188:11: error: ‘time_t’ has not been declared
/usr/include/glib-2.0/glib/gbookmarkfile.h:189:1: error: ‘time_t’ does not name a type
In file included from /usr/include/glib-2.0/glib.h:45:0,
from /usr/include/gstreamer-0.10/gst/gst.h:27,
from ../../../libs/openFrameworks/video/ofGstUtils.h:12,
from ../../../libs/openFrameworks/video/ofGstVideoGrabber.h:3,
from ../../../libs/openFrameworks/video/ofVideoGrabber.h:31,
from ../../../libs/openFrameworks/ofMain.h:71,
from src/testApp.h:3,
from src/testApp.cpp:1:
/usr/include/glib-2.0/glib/gdate.h:174:9: error: ‘time_t’ has not been declared
In file included from /usr/include/arm-linux-gnueabihf/sys/stat.h:107:0,
from /usr/include/gstreamer-0.10/gst/gstplugin.h:31,
from /usr/include/gstreamer-0.10/gst/gstelementfactory.h:33,
from /usr/include/gstreamer-0.10/gst/gstelement.h:60,
from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
from /usr/include/gstreamer-0.10/gst/gst.h:35,
from ../../../libs/openFrameworks/video/ofGstUtils.h:12,
from ../../../libs/openFrameworks/video/ofGstVideoGrabber.h:3,
from ../../../libs/openFrameworks/video/ofVideoGrabber.h:31,
from ../../../libs/openFrameworks/ofMain.h:71,
from src/testApp.h:3,
from src/testApp.cpp:1:
/usr/include/arm-linux-gnueabihf/bits/stat.h:73:21: error: field ‘st_atim’ has incomplete type
/usr/include/arm-linux-gnueabihf/bits/stat.h:74:21: error: field ‘st_mtim’ has incomplete type
/usr/include/arm-linux-gnueabihf/bits/stat.h:75:21: error: field ‘st_ctim’ has incomplete type
/usr/include/arm-linux-gnueabihf/bits/stat.h:119:21: error: field ‘st_atim’ has incomplete type
/usr/include/arm-linux-gnueabihf/bits/stat.h:120:21: error: field ‘st_mtim’ has incomplete type
/usr/include/arm-linux-gnueabihf/bits/stat.h:121:21: error: field ‘st_ctim’ has incomplete type
In file included from /usr/include/gstreamer-0.10/gst/gstelementfactory.h:33:0,
from /usr/include/gstreamer-0.10/gst/gstelement.h:60,
from /usr/include/gstreamer-0.10/gst/gstbin.h:27,
from /usr/include/gstreamer-0.10/gst/gst.h:35,
from ../../../libs/openFrameworks/video/ofGstUtils.h:12,
from ../../../libs/openFrameworks/video/ofGstVideoGrabber.h:3,
from ../../../libs/openFrameworks/video/ofVideoGrabber.h:31,
from ../../../libs/openFrameworks/ofMain.h:71,
from src/testApp.h:3,
from src/testApp.cpp:1:
/usr/include/gstreamer-0.10/gst/gstplugin.h:211:3: error: ‘time_t’ does not name a type
In file included from /usr/include/c++/4.6/bits/locale_facets_nonio.h:1936:0,
from /usr/include/c++/4.6/locale:43,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/utils/StdString.h:670,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/DynamicDll.h:24,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/DllBCM.h:7,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux/RBP.h:39,
from ../../../addons/ofxOMXPlayer/src/ofxOMXPlayer.h:12,
from src/testApp.h:4,
from src/testApp.cpp:1:
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc: In member function ‘_InIter std::time_get<_CharT, _InIter>::_M_extract_via_format(std::time_get<_CharT, _InIter>::iter_type, std::time_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, tm*, const _CharT*) const’:
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:656:47: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:663:47: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:671:47: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:678:47: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:690:46: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:697:50: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:700:48: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:712:46: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:717:46: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:725:11: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:729:46: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:749:46: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:793:11: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_weekday(std::time_get<_CharT, _InIter>::iter_type, std::time_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, tm*) const’:
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:1080:6: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_monthname(std::time_get<_CharT, _InIter>::iter_type, std::time_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, tm*) const’:
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:1108:6: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc: In member function ‘virtual _InIter std::time_get<_CharT, _InIter>::do_get_year(std::time_get<_CharT, _InIter>::iter_type, std::time_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, tm*) const’:
/usr/include/c++/4.6/bits/locale_facets_nonio.tcc:1131:6: error: invalid use of incomplete type ‘struct tm’
/usr/include/wchar.h:134:8: error: forward declaration of ‘struct tm’
In file included from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/DllAvFormat.h:4:0,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/OMXClock.h:3,
from ../../../addons/ofxOMXPlayer/src/ofxOMXPlayer.h:13,
from src/testApp.h:4,
from src/testApp.cpp:1:
../../../addons/ofxOMXPlayer/libs/omxplayer/src/DllAvCodec.h: In member function ‘virtual int DllAvCodec::avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’:
../../../addons/ofxOMXPlayer/libs/omxplayer/src/DllAvCodec.h:116:120: warning: ‘int avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is deprecated (declared at ../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavcodec/avcodec.h:4189) [-Wdeprecated-declarations]
../../../addons/ofxOMXPlayer/libs/omxplayer/src/DllAvCodec.h:116:170: warning: ‘int avcodec_encode_audio(AVCodecContext*, uint8_t*, int, const short int*)’ is deprecated (declared at ../../../addons/ofxOMXPlayer/libs/ffmpeg/include/libavcodec/avcodec.h:4189) [-Wdeprecated-declarations]
In file included from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/OMXAudio.h:8:0,
from ../../../addons/ofxOMXPlayer/libs/omxplayer/src/OMXPlayerAudio.h:15,
from ../../../addons/ofxOMXPlayer/src/ofxOMXPlayer.h:15,
from src/testApp.h:4,
from src/testApp.cpp:1:
../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux/PlatformDefs.h: At global scope:
../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux/PlatformDefs.h:380:3: error: ‘time_t’ does not name a type
../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux/PlatformDefs.h:381:3: error: ‘time_t’ does not name a type
../../../addons/ofxOMXPlayer/libs/omxplayer/src/linux/PlatformDefs.h:382:3: error: ‘time_t’ does not name a type
src/testApp.cpp: In member function ‘virtual void testApp::exit()’:
src/testApp.cpp:101:11: warning: null argument where non-null required (argument 1) [-Wnonnull]
make[1]: *** [obj/linuxarmv6l/Release/src/testApp.o] Error 1
make: *** [Release] Error 2
pi@raspberrypi ~/openFrameworks/examples/rpi/ofxOMXPlayer $
The text was updated successfully, but these errors were encountered:
To reproduce:
git clone this repo:
(in $(OF_ROOT)/examples/rpi)
git clone git@github.com:jvcleave/ofxOMXPlayer.git
Then I moved the contents of the
$(OF_ROOT)/examples/rpi/addons/*
into$(OF_ROOT)/addons/
.Then I added an
addons.make
file in the example folder ($(OF_ROOT)/examples/rpi/ofxOMXPlayer
) with the lineofxOMXPlayer
and ranmake
.Then I got all of this. :)
The text was updated successfully, but these errors were encountered: