The error log is this
SIMD support:
mmx mmxext sse sse2 sse3
Missing SIMD support for x86_64-unknown-linux-gnu:
-g -Wall -Wextra -pipe -ggdb -fPIC -mmmx -msse -msse -msse2 -msse3 -pthread
-ltiff -ljpeg -lpng -lpng -lGLU -lGL -lrt -L -lX11 -lXext -pthread
Generating config... configuration unchanged
configure: creating ./config.status
config.status: creating Makefile
cd build && export CPATH=../../TooN/include && make
make[3]: Entering directory /home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty/libcvd/build'
g++ -O3 -I. -I. -INONE/include -g -Wall -Wextra -pipe -ggdb -fPIC -mmmx -msse -msse -msse2 -msse3 -pthread -c progs/video_play_source.cc -o progs/video_play_source.o
progs/video_play_source.cc: In function ‘void play(std::string)’:
progs/video_play_source.cc:200:17: error: there are no arguments to ‘usleep’ that depend on a template parameter, so a declaration of ‘usleep’ must be available [-fpermissive]
progs/video_play_source.cc:200:17: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
progs/video_play_source.cc: In instantiation of ‘void play(std::string) [with C = CVD::Rgb<unsigned char>; std::string = std::basic_string<char>]’:
progs/video_play_source.cc:241:30: required from here
progs/video_play_source.cc:200:4: error: ‘usleep’ was not declared in this scope
In file included from ./cvd/internal/convert_pixel_types.h:27:0,
from ./cvd/image_convert.h:25,
from ./cvd/colourspacebuffer.h:27,
from ./cvd/videosource.h:13,
from progs/video_play_source.cc:38:
./cvd/internal/scalar_convert.h: At global scope:
./cvd/internal/scalar_convert.h:112:21: warning: ‘CVD::Pixel::Internal::init_float_for_byte’ defined but not used [-Wunused-variable]
./cvd/internal/scalar_convert.h:113:21: warning: ‘CVD::Pixel::Internal::init_double_for_byte’ defined but not used [-Wunused-variable]
make[3]: *** [progs/video_play_source.o] Error 1
make[3]: Leaving directory
/home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty/libcvd/build'
make[2]: * [libcvd_built] Error 2
make[2]: Leaving directory /home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty/libcvd'
make[1]: *** [all] Error 2
make[1]: Leaving directory
/home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty'
make: * [all] Error 2
The solution is to add
#include <unistd.h> // it defines usleep()
to
/tum_ardrone/thirdparty/libcvd/build/progs/video_play_source.cc
/tum_ardrone/thirdparty/libcvd/installfiles/progs/video_play_source.cc
This compilation issue is used to be a warning, nowadays compilers become more strict, so it is an error now.
*EDIT
Not really a general solution, there are many other errors occurred after.
from /home/rpserver/ros/rosbuild/stacks/tum_ardrone/src/autopilot/KI/../DroneController.h:27,
from /home/rpserver/ros/rosbuild/stacks/tum_ardrone/src/autopilot/KI/KIProcedure.h:26,
from /home/rpserver/ros/rosbuild/stacks/tum_ardrone/src/autopilot/KI/KIFlyTo.h:25,
from /home/rpserver/ros/rosbuild/stacks/tum_ardrone/src/autopilot/KI/KIFlyTo.cpp:21:
/home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty/TooN/include/TooN/internal/debug.hh:100:33: note: ‘template<class P> void TooN::Internal::debug_initialize(P*, int)’ declared here, later in the translation unit
Linking CXX executable ../bin/drone_gui
In file included from /home/rpserver/ros/rosbuild/stacks/tum_ardrone/thirdparty/TooN/include/TooN/TooN.h:250:0,
from /home/rpserver/ros/rosbuild/stacks/tum_ardrone ...
(more)
Is that really 13.02? please give the full context of the error. What SIMD instruction sets do you think are available on your machine?
I am getting the same error