New onboard and ubuntu 18.04 install

#1

hi all thank’s
my name is olivier from france I start working with PX4 fly stack for VTOL application
I searched on this forum but didnt find any info on ubuntu 18.04
I got issue when sourcing ubuntu_sim_ros_gazebo.sh
in the FastRTPS compiling phase

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I…/…/include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I…/…/include -I…/…/thirdparty/tinyxml2 -I…/…/thirdparty/asio -g -O2 -MT rtps/resources/AsyncWriterThread.lo -MD -MP -MF rtps/resources/.deps/AsyncWriterThread.Tpo -c rtps/resources/AsyncWriterThread.cpp -fPIC -DPIC -o rtps/resources/.libs/AsyncWriterThread.o
In file included from …/…/include/fastrtps/rtps/resources/AsyncInterestTree.h:18:0,
from …/…/include/fastrtps/rtps/resources/AsyncWriterThread.h:28,
from rtps/resources/AsyncWriterThread.cpp:15:
…/…/include/fastrtps/rtps/writer/RTPSWriter.h:66:54: error: ‘function’ in namespace ‘std’ does not name a template type
RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
^~~~~~~~
…/…/include/fastrtps/rtps/writer/RTPSWriter.h:66:62: error: expected ‘,’ or ‘…’ before ‘<’ token
RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,

I got also an issue with rosdep

E: Unable to locate package ros-kinetic-desktop-full
sudo: rosdep: command not found

the end result is an error on catkin_tool_prebuild

Errors     << catkin_tools_prebuild:cmake /home/proff/catkin_ws/logs/catkin_tools_prebuild/build.cmake.003.log
CMake Error at /home/proff/catkin_ws/build/catkin_tools_prebuild/CMakeLists.txt:12 (message):
  The catkin CMake module was not found, but it is required to build a linked
  workspace.  To resolve this, please do one of the following, and try
  building again.

the strange thing is that I got the exacte same final error on a fresh 16.04 in a virtual box env yesterday (but here the 18.04 is alongside windows)
thank’s for any idea.

Pixhawk 4 and PX4 v1.7.3 on Ubuntu 18.04
#2

switched back to a 16.04 and get no issue with convenience scripts install

#3

ok I decided to buy a new laptop manly for px4 devs as its a bit new ( Core I7 8700k) the 16.04 looks a bit tricky to install ( graphic drivers for GTX1050Ti specially) so I tried 18.04 again (even after my firsts tests)
this time I decided to not use the conveniences script in order to look precisely where issues appends
the first one is at FastRTPS compiling

~/__WORK/bordel/eProsima_FastRTPS-1.5.0-Linux$ make -j6;
Making all in include
make[1]: Entering directory '/home/proff/__WORK/bordel/eProsima_FastRTPS-1.5.0-Linux/include'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/proff/__WORK/bordel/eProsima_FastRTPS-1.5.0-Linux/include'
Making all in src/cpp
make[1]: Entering directory '/home/proff/__WORK/bordel/eProsima_FastRTPS-1.5.0-Linux/src/cpp'
depbase=`echo rtps/RTPSDomain.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/RTPSDomain.lo -MD -MP -MF $depbase.Tpo -c -o rtps/RTPSDomain.lo rtps/RTPSDomain.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo Domain.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT Domain.lo -MD -MP -MF $depbase.Tpo -c -o Domain.lo Domain.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo log/Log.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT log/Log.lo -MD -MP -MF $depbase.Tpo -c -o log/Log.lo log/Log.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo log/StdoutConsumer.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT log/StdoutConsumer.lo -MD -MP -MF $depbase.Tpo -c -o log/StdoutConsumer.lo log/StdoutConsumer.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo utils/eClock.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT utils/eClock.lo -MD -MP -MF $depbase.Tpo -c -o utils/eClock.lo utils/eClock.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo utils/IPFinder.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT utils/IPFinder.lo -MD -MP -MF $depbase.Tpo -c -o utils/IPFinder.lo utils/IPFinder.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT Domain.lo -MD -MP -MF .deps/Domain.Tpo -c Domain.cpp  -fPIC -DPIC -o .libs/Domain.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/RTPSDomain.lo -MD -MP -MF rtps/.deps/RTPSDomain.Tpo -c rtps/RTPSDomain.cpp  -fPIC -DPIC -o rtps/.libs/RTPSDomain.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT log/Log.lo -MD -MP -MF log/.deps/Log.Tpo -c log/Log.cpp  -fPIC -DPIC -o log/.libs/Log.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/eClock.lo -MD -MP -MF utils/.deps/eClock.Tpo -c utils/eClock.cpp  -fPIC -DPIC -o utils/.libs/eClock.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT log/StdoutConsumer.lo -MD -MP -MF log/.deps/StdoutConsumer.Tpo -c log/StdoutConsumer.cpp  -fPIC -DPIC -o log/.libs/StdoutConsumer.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/IPFinder.lo -MD -MP -MF utils/.deps/IPFinder.Tpo -c utils/IPFinder.cpp  -fPIC -DPIC -o utils/.libs/IPFinder.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/eClock.lo -MD -MP -MF utils/.deps/eClock.Tpo -c utils/eClock.cpp -o utils/eClock.o >/dev/null 2>&1
depbase=`echo utils/md5.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT utils/md5.lo -MD -MP -MF $depbase.Tpo -c -o utils/md5.lo utils/md5.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/md5.lo -MD -MP -MF utils/.deps/md5.Tpo -c utils/md5.cpp  -fPIC -DPIC -o utils/.libs/md5.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT log/StdoutConsumer.lo -MD -MP -MF log/.deps/StdoutConsumer.Tpo -c log/StdoutConsumer.cpp -o log/StdoutConsumer.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/IPFinder.lo -MD -MP -MF utils/.deps/IPFinder.Tpo -c utils/IPFinder.cpp -o utils/IPFinder.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/md5.lo -MD -MP -MF utils/.deps/md5.Tpo -c utils/md5.cpp -o utils/md5.o >/dev/null 2>&1
depbase=`echo utils/StringMatching.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT utils/StringMatching.lo -MD -MP -MF $depbase.Tpo -c -o utils/StringMatching.lo utils/StringMatching.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/StringMatching.lo -MD -MP -MF utils/.deps/StringMatching.Tpo -c utils/StringMatching.cpp  -fPIC -DPIC -o utils/.libs/StringMatching.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT utils/StringMatching.lo -MD -MP -MF utils/.deps/StringMatching.Tpo -c utils/StringMatching.cpp -o utils/StringMatching.o >/dev/null 2>&1
depbase=`echo rtps/resources/ResourceEvent.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/resources/ResourceEvent.lo -MD -MP -MF $depbase.Tpo -c -o rtps/resources/ResourceEvent.lo rtps/resources/ResourceEvent.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
depbase=`echo rtps/resources/TimedEvent.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/resources/TimedEvent.lo -MD -MP -MF $depbase.Tpo -c -o rtps/resources/TimedEvent.lo rtps/resources/TimedEvent.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/ResourceEvent.lo -MD -MP -MF rtps/resources/.deps/ResourceEvent.Tpo -c rtps/resources/ResourceEvent.cpp  -fPIC -DPIC -o rtps/resources/.libs/ResourceEvent.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/TimedEvent.lo -MD -MP -MF rtps/resources/.deps/TimedEvent.Tpo -c rtps/resources/TimedEvent.cpp  -fPIC -DPIC -o rtps/resources/.libs/TimedEvent.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT Domain.lo -MD -MP -MF .deps/Domain.Tpo -c Domain.cpp -o Domain.o >/dev/null 2>&1
depbase=`echo rtps/resources/TimedEventImpl.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/resources/TimedEventImpl.lo -MD -MP -MF $depbase.Tpo -c -o rtps/resources/TimedEventImpl.lo rtps/resources/TimedEventImpl.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/TimedEventImpl.lo -MD -MP -MF rtps/resources/.deps/TimedEventImpl.Tpo -c rtps/resources/TimedEventImpl.cpp  -fPIC -DPIC -o rtps/resources/.libs/TimedEventImpl.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT log/Log.lo -MD -MP -MF log/.deps/Log.Tpo -c log/Log.cpp -o log/Log.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/RTPSDomain.lo -MD -MP -MF rtps/.deps/RTPSDomain.Tpo -c rtps/RTPSDomain.cpp -o rtps/RTPSDomain.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/TimedEvent.lo -MD -MP -MF rtps/resources/.deps/TimedEvent.Tpo -c rtps/resources/TimedEvent.cpp -o rtps/resources/TimedEvent.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/ResourceEvent.lo -MD -MP -MF rtps/resources/.deps/ResourceEvent.Tpo -c rtps/resources/ResourceEvent.cpp -o rtps/resources/ResourceEvent.o >/dev/null 2>&1
depbase=`echo rtps/resources/AsyncWriterThread.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/resources/AsyncWriterThread.lo -MD -MP -MF $depbase.Tpo -c -o rtps/resources/AsyncWriterThread.lo rtps/resources/AsyncWriterThread.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/AsyncWriterThread.lo -MD -MP -MF rtps/resources/.deps/AsyncWriterThread.Tpo -c rtps/resources/AsyncWriterThread.cpp  -fPIC -DPIC -o rtps/resources/.libs/AsyncWriterThread.o
depbase=`echo rtps/resources/AsyncInterestTree.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps  -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio    -g -O2 -MT rtps/resources/AsyncInterestTree.lo -MD -MP -MF $depbase.Tpo -c -o rtps/resources/AsyncInterestTree.lo rtps/resources/AsyncInterestTree.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/TimedEventImpl.lo -MD -MP -MF rtps/resources/.deps/TimedEventImpl.Tpo -c rtps/resources/TimedEventImpl.cpp -o rtps/resources/TimedEventImpl.o >/dev/null 2>&1
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include/fastrtps -DFASTRTPS_SOURCE -DBOOST_ASIO_STANDALONE -DASIO_STANDALONE -I../../include -I../../thirdparty/tinyxml2 -I../../thirdparty/asio -g -O2 -MT rtps/resources/AsyncInterestTree.lo -MD -MP -MF rtps/resources/.deps/AsyncInterestTree.Tpo -c rtps/resources/AsyncInterestTree.cpp  -fPIC -DPIC -o rtps/resources/.libs/AsyncInterestTree.o
In file included from ../../include/fastrtps/rtps/resources/AsyncInterestTree.h:18:0,
                 from ../../include/fastrtps/rtps/resources/AsyncWriterThread.h:28,
                 from rtps/resources/AsyncWriterThread.cpp:15:
../../include/fastrtps/rtps/writer/RTPSWriter.h:66:54: error: ‘function’ in namespace ‘std’ does not name a template type
     RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
                                                      ^~~~~~~~
../../include/fastrtps/rtps/writer/RTPSWriter.h:66:62: error: expected ‘,’ or ‘...’ before ‘<’ token
     RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
                                                              ^
Makefile:1338: recipe for target 'rtps/resources/AsyncWriterThread.lo' failed
make[1]: *** [rtps/resources/AsyncWriterThread.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../../include/fastrtps/rtps/resources/AsyncInterestTree.h:18:0,
                 from rtps/resources/AsyncInterestTree.cpp:17:
../../include/fastrtps/rtps/writer/RTPSWriter.h:66:54: error: ‘function’ in namespace ‘std’ does not name a template type
     RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
                                                      ^~~~~~~~
../../include/fastrtps/rtps/writer/RTPSWriter.h:66:62: error: expected ‘,’ or ‘...’ before ‘<’ token
     RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
                                                              ^
Makefile:1338: recipe for target 'rtps/resources/AsyncInterestTree.lo' failed
make[1]: *** [rtps/resources/AsyncInterestTree.lo] Error 1
make[1]: Leaving directory '/home/proff/__WORK/bordel/eProsima_FastRTPS-1.5.0-Linux/src/cpp'
Makefile:538: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
#4

thank’s for any idea ??

#5

To resolve error: ‘function’ in namespace ‘std’ does not name a template type add #include <functional> in eProsima_FastRTPS-1.5.0-Linux/include/fastrtps/rtps/writer/RTPSWriter.h

1 Like