Can't compile master branch for RPi B+

Hello,

I want to use the OF master branch and I cloned the github master branch, but I am getting errors.
The way I installed OF is doing:

pi@raspberrypi ~/OFgit/openFrameworks/scripts/linux/debian_armv6l $ sudo sh install_dependencies.sh

On the ‘pi@raspberrypi ~/OFgit/openFrameworks/scripts/linux $’ I tryied to do the OF compilation with the script:

sudo sh compileOF.sh

Getting errors like:

compileOF.sh: 15: compileOF.sh: pushd: not found
compileOF.sh: 17: compileOF.sh: popd: not found

/home/pi/OFgit/openFrameworks/libs/openFrameworks/types/ofTypes.h:286:1: error: expected unqualified-id before ‘using’
makefileCommon/compile.core.mk:234: recipe for target ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Debug/libs/openFrameworks/events/ofEvents.o’ failed
make[1]: *** [/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Debug/libs/openFrameworks/events/ofEvents.o] Error 1
makefileCommon/compile.core.mk:213: recipe for target ‘Debug’ failed
make: *** [Debug] Error 2
there has been a problem compiling Debug OF

And I also tried to do the OF compilation with the 0.8.4. guide on the web:

sudo make Release -C /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project

and I get this errors too:

/home/pi/OFgit/openFrameworks/libs/openFrameworks/types/ofTypes.h:286:1: error: expected unqualified-id before ‘using’
makefileCommon/compile.core.mk:234: recipe for target ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o’ failed
make[1]: *** [/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o] Error 1
makefileCommon/compile.core.mk:205: recipe for target ‘Release’ failed
make: *** [Release] Error 2
make: Leaving directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’

When trying to compile an example I get this errors:
sudo make:

pi@raspberrypi ~/OFgit/openFrameworks/examples/3d/3DPrimitivesExample $ sudo make
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
Compiling OF library for Release
make[1]: Entering directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
Compiling /home/pi/OFgit/openFrameworks/libs/openFrameworks/events/ofEvents.cpp
g++ -O3 -Wall -std=c++0x -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -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 -DUSE_DISPMANX_TRANSFORM_T -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -pthread -D_REENTRANT -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-1.0 -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/home/pi/OFgit/openFrameworks/libs/fmodex/include -I/home/pi/OFgit/openFrameworks/libs/glfw/include -I/home/pi/OFgit/openFrameworks/libs/glfw/include/GLFW -I/home/pi/OFgit/openFrameworks/libs/kiss/include -I/home/pi/OFgit/openFrameworks/libs/poco/include -I/home/pi/OFgit/openFrameworks/libs/portaudio/include -I/home/pi/OFgit/openFrameworks/libs/tess2/include -I/home/pi/OFgit/openFrameworks/libs/utf8cpp/include -I/home/pi/OFgit/openFrameworks/libs/utf8cpp/include/utf8 -I/home/pi/OFgit/openFrameworks/libs/openFrameworks -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/events -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/gl -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/graphics -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/video -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/3d -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/types -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/math -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/sound -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/communication -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/app -MMD -MP -MF /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.d -MT/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o -o /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o -c /home/pi/OFgit/openFrameworks/libs/openFrameworks/events/ofEvents.cpp
In file included from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofLog.h:5:0,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/types/ofRectangle.h:6,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/graphics/ofGraphics.h:7,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/events/ofEvents.cpp:196:
/home/pi/OFgit/openFrameworks/libs/openFrameworks/types/ofTypes.h:286:1: error: expected unqualified-id before ‘using’
makefileCommon/compile.core.mk:234: recipe for target ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o’ failed
make[2]: *** [/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/events/ofEvents.o] Error 1
makefileCommon/compile.core.mk:205: recipe for target ‘Release’ failed
make[1]: *** [Release] Error 2
make[1]: Leaving directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’
/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target ‘Release’ failed
make: *** [Release] Error 2

When trying to execute: sudo make run:

pi@raspberrypi ~/OFgit/openFrameworks/examples/3d/3DPrimitivesExample $ sudo make run
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
/bin/sh: 1: ./3DPrimitivesExample: not found
/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:168: recipe for target ‘run’ failed
make: *** [run] Error 127

I am using the 0.8.4 version on the same board and it’s working fine. Now I am lost and I don’t know what I am doing bad, or if the master branch is “broken in some way”.

Any help? Should I follow another guide?

I have seen some related issues:



I can see things that I don’t understand about it, like: set an environmental variable, c++11 , gcc …etc

You need to use GCC 4.8+. We’re working on a solution here:

https://github.com/openframeworks/openFrameworks/issues/4146

Thanks @bakercp !

Ok. I updated to GCC 4.9 using this tips:
https://solarianprogrammer.com/2015/01/13/raspberry-pi-raspbian-install-gcc-compile-cpp-14-programs/

Then I tried to compile OF with this line:

sudo make Release -C /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project CXX=g+±4.9

I takes some more time to do it, but I get this errors:

linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o -c /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp: In member function ‘bool ofFile::copyTo(const string&, bool, bool)’:
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:725:3: error: ‘copy’ is not a member of ‘std::filesystem’
std::filesystem::copy(myFile,path);
^
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:725:3: note: suggested alternatives:
In file included from /usr/include/c++/4.9/deque:64:0,
from /usr/include/c++/4.9/stack:60,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofConstants.h:386,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:3,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:1:
/usr/include/c++/4.9/bits/stl_deque.h:375:5: note: ‘std::copy’
copy(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
^
/usr/include/c++/4.9/bits/stl_deque.h:375:5: note: ‘std::copy’
In file included from /usr/include/boost/filesystem.hpp:36:0,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:12,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:1:
/usr/include/boost/filesystem/v3/operations.hpp:370:8: note: ‘boost::filesystem3::copy’
void copy(const path& from, const path& to, system::error_code& ec)
^
/usr/include/boost/filesystem/v3/operations.hpp:214:10: note: ‘boost::filesystem3::detail::copy’
void copy(const path& from, const path& to, system::error_code* ec=0);
^
makefileCommon/compile.core.mk:234: recipe for target ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o’ failed
make[1]: *** [/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o] Error 1
makefileCommon/compile.core.mk:205: recipe for target ‘Release’ failed
make: *** [Release] Error 2
make: Leaving directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’
pi@raspberrypi ~/OFgit/openFrameworks/examples/3d/3DPrimitivesExample $

When compiled an example with:

make CXX=g+±4.9

I get this errors:

pi@raspberrypi ~/OFgit/openFrameworks/examples/3d/3DPrimitivesExample $ sudo make CXX=g+±4.9
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
Compiling OF library for Release
make[1]: Entering directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
HOST_OS=Linux
HOST_ARCH=armv6l
armv6l
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 libmpg123
Compiling /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp
g+±4.9 -O3 -Wall -std=c++14 -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -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 -DUSE_DISPMANX_TRANSFORM_T -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -pthread -D_REENTRANT -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-1.0 -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/harfbuzz -I/home/pi/OFgit/openFrameworks/libs/fmodex/include -I/home/pi/OFgit/openFrameworks/libs/glfw/include -I/home/pi/OFgit/openFrameworks/libs/glfw/include/GLFW -I/home/pi/OFgit/openFrameworks/libs/kiss/include -I/home/pi/OFgit/openFrameworks/libs/poco/include -I/home/pi/OFgit/openFrameworks/libs/portaudio/include -I/home/pi/OFgit/openFrameworks/libs/tess2/include -I/home/pi/OFgit/openFrameworks/libs/utf8cpp/include -I/home/pi/OFgit/openFrameworks/libs/utf8cpp/include/utf8 -I/home/pi/OFgit/openFrameworks/libs/openFrameworks -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/events -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/gl -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/graphics -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/video -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/3d -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/types -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/math -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/sound -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/communication -I/home/pi/OFgit/openFrameworks/libs/openFrameworks/app -MMD -MP -MF /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.d -MT/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o -o /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o -c /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp: In member function ‘bool ofFile::copyTo(const string&, bool, bool)’:
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:725:3: error: ‘copy’ is not a member of ‘std::filesystem’
std::filesystem::copy(myFile,path);
^
/home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:725:3: note: suggested alternatives:
In file included from /usr/include/c++/4.9/deque:64:0,
from /usr/include/c++/4.9/stack:60,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofConstants.h:386,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:3,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:1:
/usr/include/c++/4.9/bits/stl_deque.h:375:5: note: ‘std::copy’
copy(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
^
/usr/include/c++/4.9/bits/stl_deque.h:375:5: note: ‘std::copy’
In file included from /usr/include/boost/filesystem.hpp:36:0,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.h:12,
from /home/pi/OFgit/openFrameworks/libs/openFrameworks/utils/ofFileUtils.cpp:1:
/usr/include/boost/filesystem/v3/operations.hpp:370:8: note: ‘boost::filesystem3::copy’
void copy(const path& from, const path& to, system::error_code& ec)
^
/usr/include/boost/filesystem/v3/operations.hpp:214:10: note: ‘boost::filesystem3::detail::copy’
void copy(const path& from, const path& to, system::error_code* ec=0);
^
makefileCommon/compile.core.mk:234: recipe for target ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o’ failed
make[2]: *** [/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/lib/linuxarmv6l/obj/Release/libs/openFrameworks/utils/ofFileUtils.o] Error 1
makefileCommon/compile.core.mk:205: recipe for target ‘Release’ failed
make[1]: *** [Release] Error 2
make[1]: Leaving directory ‘/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project’
/home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target ‘Release’ failed
make: *** [Release] Error 2

What I am doing bad?

On the link you provided you are using more arguments/flags…

Should I modifiy this line of my OF compilation too?:

sudo make Release -C /home/pi/OFgit/openFramewrks/libs/openFrameworksCompiled/project CXX=g+±4.9

EDIT: should I use GCC 4.8 instead of 4.9?

Yes, this is the same issue that we are working on here: https://github.com/openframeworks/openFrameworks/issues/4147

I haven’t had a chance to answer / investigate @arturo’s question because my Pi is currently offline – perhaps you could check on it and get back to him in in that issue thread?

Yes I would like to help if it’s in my hands and skills… :wink:

I “switched” from Wheezy (Raspbian) to Jessie repository just for getting the gcc 4.9. (And then I went back again o Wheezy). https://solarianprogrammer.com/2015/01/13/raspberry-pi-raspbian-install-gcc-compile-cpp-14-programs/

I am not sure if I understand the @arturo question… Did he means what boost version is included on raspbian?

I found this two links related:

https://www.raspberrypi.org/forums/viewtopic.php?&t=8111
where you can see this:

It looks like a Debian Wheezy is available for testing and Raspbian which is also Wheezy has boost 1.46, 1.48 and 1.49 available.

http://www.ridgesolutions.ie/index.php/2013/01/15/raspberry-pi-install-boost-1-50-c-libraries-on-wheezy/

From my Rasp:
/usr/include/boost $ nano version.hpp

checking “again” with:

#include <boost/version.hpp>
#include <iostream>

using namespace std;

int main()
{
    cout << "Boost version: " << BOOST_LIB_VERSION << endl;
    return 0;
}

Save the above code as a cpp file. example boost.cpp. Then compile it.

   $ g++ boost.cpp
   $ ./a.out
   Boost version: 1_55

Now on my Rasp:

pi@raspberrypi /usr/include/boost $ sudo nano PRUEBA.cpp
pi@raspberrypi /usr/include/boost $ sudo g++ PRUEBA.cpp
pi@raspberrypi /usr/include/boost $ ./a.out
Boost version: 1_49

So, looks like my raspbian (raspberry pi b+) has Boost 1.49

… I don’t know if that was the question haha :smiley:

yes that should work, can you post the contents of /usr/include/boost/filesystem.hpp ? if it’s too long you can post it in a pastebin link or similar

pi@raspberrypi /usr/include/boost $ cat filesystem.hpp 
//  boost/filesystem.hpp  --------------------------------------------------------------//

//  Copyright Beman Dawes 2010

//  Distributed under the Boost Software License, Version 1.0.
//  See http://www.boost.org/LICENSE_1_0.txt

//  Library home page: http://www.boost.org/libs/filesystem

//--------------------------------------------------------------------------------------// 

#ifndef BOOST_FILESYSTEM_FILESYSTEM_HPP
#define BOOST_FILESYSTEM_FILESYSTEM_HPP

#include <boost/config.hpp>  // for <boost/config/user.hpp>, in case
                             //  BOOST_FILESYSTEM_VERSION defined there

# if defined(BOOST_FILESYSTEM_VERSION) \
  && BOOST_FILESYSTEM_VERSION != 2  && BOOST_FILESYSTEM_VERSION != 3
#   error BOOST_FILESYSTEM_VERSION defined, but not as 2 or 3
# endif

# if !defined(BOOST_FILESYSTEM_VERSION)
#   define BOOST_FILESYSTEM_VERSION 3
# endif

#if BOOST_FILESYSTEM_VERSION == 2
#  include <boost/filesystem/v2/config.hpp>
#  include <boost/filesystem/v2/path.hpp>
#  include <boost/filesystem/v2/operations.hpp>
#  include <boost/filesystem/v2/convenience.hpp>

# else
#  include <boost/filesystem/v3/config.hpp>
#  include <boost/filesystem/v3/path.hpp>
#  include <boost/filesystem/v3/operations.hpp>
#  include <boost/filesystem/v3/convenience.hpp>

# endif

#endif  // BOOST_FILESYSTEM_FILESYSTEM_HPP

can you try what’s the value of BOOST_FILESYSTEM_VERSION in an OF app:

cout << BOOST_FILESYSTEM_VERSION << endl

if it’s 2 can you add at the top of ofFileUtils.h:

#define BOOST_FILESYSTEM_VERSION 3

oki.
(I am trying it. sorry for the delay but now I am getting errors when compiling also in 0.8.4 version…) brb

src/ofApp.cpp:11:21: error: 'BOOST_FILESYSTEM_VERSION' was not declared in this scope
             cout << BOOST_FILESYSTEM_VERSION << endl << endl;

I don’t know how to include it to the project…
I tryed #include "/usr/include/boost/version.hpp"
and

#include </usr/include/boost/version.hpp>

can you post the contents of /usr/include/boost/config.hpp

pi@raspberrypi /usr/include/boost $ cat config.hpp 
//  Boost config.hpp configuration header file  ------------------------------//

//  (C) Copyright John Maddock 2002. 
//  Use, modification and distribution are subject to the 
//  Boost Software License, Version 1.0. (See accompanying file 
//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org/libs/config for most recent version.

//  Boost config.hpp policy and rationale documentation has been moved to
//  http://www.boost.org/libs/config
//
//  CAUTION: This file is intended to be completely stable -
//           DO NOT MODIFY THIS FILE!
//

#ifndef BOOST_CONFIG_HPP
#define BOOST_CONFIG_HPP

// if we don't have a user config, then use the default location:
#if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG)
#  define BOOST_USER_CONFIG <boost/config/user.hpp>
#endif
// include it first:
#ifdef BOOST_USER_CONFIG
#  include BOOST_USER_CONFIG
#endif

// if we don't have a compiler config set, try and find one:
#if !defined(BOOST_COMPILER_CONFIG) && !defined(BOOST_NO_COMPILER_CONFIG) && !defined(BOOST_NO_CONFIG)
#  include <boost/config/select_compiler_config.hpp>
#endif
// if we have a compiler config, include it now:
#ifdef BOOST_COMPILER_CONFIG
#  include BOOST_COMPILER_CONFIG
#endif

// if we don't have a std library config set, try and find one:
#if !defined(BOOST_STDLIB_CONFIG) && !defined(BOOST_NO_STDLIB_CONFIG) && !defined(BOOST_NO_CONFIG) && defined(__cplusplus)
#  include <boost/config/select_stdlib_config.hpp>
#endif
// if we have a std library config, include it now:
#ifdef BOOST_STDLIB_CONFIG
#  include BOOST_STDLIB_CONFIG
#endif

// if we don't have a platform config set, try and find one:
#if !defined(BOOST_PLATFORM_CONFIG) && !defined(BOOST_NO_PLATFORM_CONFIG) && !defined(BOOST_NO_CONFIG)
#  include <boost/config/select_platform_config.hpp>
#endif
// if we have a platform config, include it now:
#ifdef BOOST_PLATFORM_CONFIG
#  include BOOST_PLATFORM_CONFIG
#endif

// get config suffix code:
#include <boost/config/suffix.hpp>

#endif  // BOOST_CONFIG_HPP

can you try to change line 725 in ofFileUtils.cpp to

std::filesystem::copy_file(myFile,path);

I modified this line on the master branch git folder and I compiled OF (without changing to the g++ 4.9):

sudo make Release -C /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project

Then I compiled the emptyExample with ‘make run’ and now it’s working!! App window opens ok. :smile:

That’s it? Do you want I check another thing?

… so there is no need of update the gcc to 4.9?
thanks @arturo & @bakercp

1 Like

OOPS!! sorry, my big mistake!!
I made the last emptyExample compiling under the 0.8.4, not the git master branch… I go check. sorry

1 Like

I think you’ll still need 4.8+ – not sure how it compiled.

yes, I understand.

now I am compiling an example (not the smallest… it’s slow.) like this:

pi@raspberrypi ~/OFgit/openFrameworks/apps/devApps/raspberrypi_hello_world $ sudo make CXX=g++-4.9

I am not sure if I compiled OF with the 4.9. But i’ll do after see if this example compilation works.
I’ll try doing this:

sudo make Release -C /home/pi/OFgit/openFrameworks/libs/openFrameworksCompiled/project CXX=g++-4.9