Hello Forum,
I am running Raspbian on Raspberry Pi3 and really new to all of this.
I installed Openframework recently and I am learning with the great ofBook.
In the Section "Oops!=Object oriented Programming + Classes" we have to copy the EmptyExample and add some modifications to draw a ball.
Important information --> "EmptyExample" compiles fine with "make"
When I want to compile the ofBook example I am getting lots of errors which don't seem linked to syntax error.
Could you give me a hand with this or give me a direction to look for.
Thanks a lot
side question : how can I format my post i a nice and readabe way ? I did not find any help on this.
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0
Compiling OF library for Release
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0
Done!
make[1]: Leaving directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
Compiling ball1 for Release
make[1]: Entering directory '/home/pi/openFrameworks/examples/OOP/ball1'
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0
Compiling /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.cpp
g++ -c -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_GTK -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/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/openFrameworks/libs/fmodex/include -I/home/pi/openFrameworks/libs/glfw/include -I/home/pi/openFrameworks/libs/glfw/include/GLFW -I/home/pi/openFrameworks/libs/kiss/include -I/home/pi/openFrameworks/libs/poco/include -I/home/pi/openFrameworks/libs/tess2/include -I/home/pi/openFrameworks/libs/utf8cpp/include -I/home/pi/openFrameworks/libs/utf8cpp/include/utf8 -I/home/pi/openFrameworks/libs/openFrameworks -I/home/pi/openFrameworks/libs/openFrameworks/app -I/home/pi/openFrameworks/libs/openFrameworks/types -I/home/pi/openFrameworks/libs/openFrameworks/utils -I/home/pi/openFrameworks/libs/openFrameworks/math -I/home/pi/openFrameworks/libs/openFrameworks/3d -I/home/pi/openFrameworks/libs/openFrameworks/video -I/home/pi/openFrameworks/libs/openFrameworks/gl -I/home/pi/openFrameworks/libs/openFrameworks/sound -I/home/pi/openFrameworks/libs/openFrameworks/communication -I/home/pi/openFrameworks/libs/openFrameworks/graphics -I/home/pi/openFrameworks/libs/openFrameworks/events -I/home/pi/openFrameworks/examples/OOP/ball1/src -MMD -MP -MF obj/linuxarmv6l/Release/src/Ball.d -MT obj/linuxarmv6l/Release/src/Ball.o -o obj/linuxarmv6l/Release/src/Ball.o -c /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.cpp
Compiling /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp
g++ -c -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_GTK -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/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -pthread -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/openFrameworks/libs/fmodex/include -I/home/pi/openFrameworks/libs/glfw/include -I/home/pi/openFrameworks/libs/glfw/include/GLFW -I/home/pi/openFrameworks/libs/kiss/include -I/home/pi/openFrameworks/libs/poco/include -I/home/pi/openFrameworks/libs/tess2/include -I/home/pi/openFrameworks/libs/utf8cpp/include -I/home/pi/openFrameworks/libs/utf8cpp/include/utf8 -I/home/pi/openFrameworks/libs/openFrameworks -I/home/pi/openFrameworks/libs/openFrameworks/app -I/home/pi/openFrameworks/libs/openFrameworks/types -I/home/pi/openFrameworks/libs/openFrameworks/utils -I/home/pi/openFrameworks/libs/openFrameworks/math -I/home/pi/openFrameworks/libs/openFrameworks/3d -I/home/pi/openFrameworks/libs/openFrameworks/video -I/home/pi/openFrameworks/libs/openFrameworks/gl -I/home/pi/openFrameworks/libs/openFrameworks/sound -I/home/pi/openFrameworks/libs/openFrameworks/communication -I/home/pi/openFrameworks/libs/openFrameworks/graphics -I/home/pi/openFrameworks/libs/openFrameworks/events -I/home/pi/openFrameworks/examples/OOP/ball1/src -MMD -MP -MF obj/linuxarmv6l/Release/src/ofApp.d -MT obj/linuxarmv6l/Release/src/ofApp.o -o obj/linuxarmv6l/Release/src/ofApp.o -c /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp
In file included from /usr/include/boost/mpl/if.hpp:19:0,
from /usr/include/boost/mpl/eval_if.hpp:17,
from /usr/include/boost/type_traits/decay.hpp:18,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/if.hpp:131:1: error: invalid use of incomplete type ‘struct mpl_::int_<3>’
BOOST_MPL_AUX_NA_SPEC(3, if_)
^
In file included from /usr/include/boost/mpl/int.hpp:17:0,
from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10,
from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14,
from /usr/include/boost/type_traits/is_array.hpp:27,
from /usr/include/boost/filesystem/path_traits.hpp:21,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/int_fwd.hpp:22:52: error: declaration of ‘struct mpl_::int_<3>’
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
^
In file included from /usr/include/boost/mpl/if.hpp:19:0,
from /usr/include/boost/mpl/eval_if.hpp:17,
from /usr/include/boost/type_traits/decay.hpp:18,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/if.hpp:131:1: error: invalid use of incomplete type ‘struct mpl_::int_<-1>’
BOOST_MPL_AUX_NA_SPEC(3, if_)
^
In file included from /usr/include/boost/mpl/int.hpp:17:0,
from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10,
from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14,
from /usr/include/boost/type_traits/is_array.hpp:27,
from /usr/include/boost/filesystem/path_traits.hpp:21,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/int_fwd.hpp:22:52: error: declaration of ‘struct mpl_::int_<-1>’
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
^
In file included from /usr/include/boost/mpl/if.hpp:19:0,
from /usr/include/boost/mpl/eval_if.hpp:17,
from /usr/include/boost/type_traits/decay.hpp:18,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/eval_if.hpp:67:1: error: invalid use of incomplete type ‘struct mpl_::int_<3>’
BOOST_MPL_AUX_NA_SPEC(3, eval_if)
^
In file included from /usr/include/boost/mpl/int.hpp:17:0,
from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10,
from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14,
from /usr/include/boost/type_traits/is_array.hpp:27,
from /usr/include/boost/filesystem/path_traits.hpp:21,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/int_fwd.hpp:22:52: error: declaration of ‘struct mpl_::int_<3>’
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
^
In file included from /usr/include/boost/mpl/if.hpp:19:0,
from /usr/include/boost/mpl/eval_if.hpp:17,
from /usr/include/boost/type_traits/decay.hpp:18,
from /usr/include/boost/filesystem/path_traits.hpp:22,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/eval_if.hpp:67:1: error: invalid use of incomplete type ‘struct mpl_::int_<-1>’
BOOST_MPL_AUX_NA_SPEC(3, eval_if)
^
In file included from /usr/include/boost/mpl/int.hpp:17:0,
from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10,
from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14,
from /usr/include/boost/type_traits/is_array.hpp:27,
from /usr/include/boost/filesystem/path_traits.hpp:21,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/int_fwd.hpp:22:52: error: declaration of ‘struct mpl_::int_<-1>’
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
^
In file included from /usr/include/boost/mpl/int.hpp:17:0,
from /usr/include/boost/type_traits/detail/template_arity_spec.hpp:10,
from /usr/include/boost/type_traits/detail/bool_trait_def.hpp:14,
from /usr/include/boost/type_traits/is_array.hpp:27,
from /usr/include/boost/filesystem/path_traits.hpp:21,
from /usr/include/boost/filesystem/path.hpp:25,
from /usr/include/boost/filesystem.hpp:16,
from /home/pi/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:8,
from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:6,
from /home/pi/openFrameworks/examples/OOP/ball1/src/Ball.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.h:3,
from /home/pi/openFrameworks/examples/OOP/ball1/src/ofApp.cpp:1:
/usr/include/boost/mpl/int_fwd.hpp:22:52: error: declaration of ‘struct mpl_::int_<-1>’
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
^
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:200: recipe for target 'obj/linuxarmv6l/Release/src/ofApp.o' failed
make[1]: *** [obj/linuxarmv6l/Release/src/ofApp.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/examples/OOP/ball1'
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:125: recipe for target 'Release' failed
make: *** [Release] Error 2