ethz-asl / ethzasl_ptam

Modified version of Parallel Tracking and Mapping (PTAM)
http://wiki.ros.org/ethzasl_ptam
235 stars 184 forks source link

Error compiling #91

Open SergioGarG opened 8 years ago

SergioGarG commented 8 years ago

Hi there!

I've tried to compile ethzasl_ptam but I got some errors in the process. I've followed the steps given in #39
and #48 , but without better results. I'm trying to build it in a Raspberry Pi 2B with ROS Indigo and Raspbian GNU/Linux 8.0 (jessie). The output that the prompt gives me back is the following:

`erle@erle-brain-2 ~/ptam_ws $ catkin_make Base path: /home/erle/ptam_ws Source space: /home/erle/ptam_ws/src Build space: /home/erle/ptam_ws/build Devel space: /home/erle/ptam_ws/devel Install space: /home/erle/ptam_ws/install

Running command: "cmake /home/erle/ptam_ws/src -DCATKIN_DEVEL_PREFIX=/home/erle/ptam_ws/devel -DCMAKE_INSTALL_PREFIX=/home/erle/ptam_ws/install -G Unix Makefiles" in "/home/erle/ptam_ws/build"

-- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Using CATKIN_DEVEL_PREFIX: /home/erle/ptam_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/indigo -- This workspace overlays: /opt/ros/indigo -- Found PythonInterp: /usr/bin/python (found version "2.7.9") -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/erle/ptam_ws/build/test_results -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.18 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~ -- ~~ traversing 4 packages in topological order: -- ~~ - ethzasl_ptam (metapackage) -- ~~ - ptam_com -- ~~ - rqt_ptam -- ~~ - ptam -- ~~~~~~~~~~~~~ -- +++ processing catkin metapackage: 'ethzasl_ptam' -- ==> add_subdirectory(ethzasl_ptam/ethzasl_ptam) -- +++ processing catkin package: 'ptam_com' -- ==> add_subdirectory(ethzasl_ptam/ptam_com) -- Using these message generators: gencpp;genlisp;genpy -- ptam_com: 6 messages, 2 services -- +++ processing catkin package: 'rqt_ptam' -- ==> add_subdirectory(ethzasl_ptam/rqt_ptam) -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found -- Found Qt4: /usr/bin/qmake (found version "4.8.6") -- +++ processing catkin package: 'ptam' -- ==> add_subdirectory(ethzasl_ptam/ptam) -- Using these message generators: gencpp;genlisp;genpy -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") -- checking for module 'gtk+-2.0' -- found gtk+-2.0, version 2.24.25 -- Configuring done CMake Warning (dev) at ethzasl_ptam/ptam/CMakeLists.txt:127 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "ptam_gencfg}}" of target "cameracalibrator" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at ethzasl_ptam/ptam/CMakeLists.txt:120 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "ptam_gencfg}}" of target "ptam" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at ethzasl_ptam/ptam/CMakeLists.txt:150 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "ptam_gencfg}}" of target "ptam_visualizer" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at ethzasl_ptam/ptam/CMakeLists.txt:146 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning.

The dependency target "ptam_gencfg}}" of target "remote_ptam" does not exist. This warning is for project developers. Use -Wno-dev to suppress it.

-- Generating done -- Build files have been written to: /home/erle/ptam_ws/build

Running command: "make -j4 -l4" in "/home/erle/ptam_ws/build"

Scanning dependencies of target _ptam_com_generate_messages_check_deps_OctoMapPointArray Scanning dependencies of target _ptam_com_generate_messages_check_deps_OctoMapPointStamped Scanning dependencies of target _ptam_com_generate_messages_check_deps_Vector3Array Scanning dependencies of target _ptam_com_generate_messages_check_deps_ptam_info [ 0%] Built target _ptam_com_generate_messages_check_deps_ptam_info [ 0%] [ 0%] Built target _ptam_com_generate_messages_check_deps_OctoMapPointStamped Built target _ptam_com_generate_messages_check_deps_OctoMapPointArray [ 0%] Scanning dependencies of target sensor_msgs_generate_messages_py Built target _ptam_com_generate_messages_check_deps_Vector3Array Scanning dependencies of target _ptam_com_generate_messages_check_deps_OctoMapScan Scanning dependencies of target std_msgs_generate_messages_py [ 0%] Scanning dependencies of target geometry_msgs_generate_messages_py Built target sensor_msgs_generate_messages_py [ 0%] [ 0%] Scanning dependencies of target _ptam_com_generate_messages_check_deps_KeyFrame_msg Built target std_msgs_generate_messages_py Built target geometry_msgs_generate_messages_py Scanning dependencies of target _ptam_com_generate_messages_check_deps_KeyFrame_srv Scanning dependencies of target _ptam_com_generate_messages_check_deps_PointCloud [ 0%] Built target _ptam_com_generate_messages_check_deps_KeyFrame_msg [ 0%] Built target _ptam_com_generate_messages_check_deps_OctoMapScan Scanning dependencies of target std_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_cpp Scanning dependencies of target sensor_msgs_generate_messages_cpp [ 0%] Built target _ptam_com_generate_messages_check_deps_KeyFrame_srv [ 0%] Built target _ptam_com_generate_messages_check_deps_PointCloud Scanning dependencies of target geometry_msgs_generate_messages_cpp [ 0%] Scanning dependencies of target std_msgs_generate_messages_lisp Built target sensor_msgs_generate_messages_cpp Scanning dependencies of target geometry_msgs_generate_messages_lisp [ 0%] Built target geometry_msgs_generate_messages_cpp [ 0%] Built target std_msgs_generate_messages_lisp Scanning dependencies of target sensor_msgs_generate_messages_lisp [ 0%] [ 1%] Built target geometry_msgs_generate_messages_lisp [ 3%] Generating ui_remote_ptam.h [ 3%] Built target sensor_msgs_generate_messages_lisp Scanning dependencies of target DEPS Building all dependencies Generating include/rqt_ptam/moc_remote_ptam.cxx make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. making third party libs [ 4%] Cloning into 'include/TooN'... Generating include/rqt_ptam/moc_ratio_layouted_frame.cxx Scanning dependencies of target ptam_gencfg [ 6%] Generating dynamic reconfigure files from cfg/PTAMVisualizerParams.cfg: /home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h /home/erle/ptam_ws/devel/lib/python2.7/dist-packages/ptam/cfg/PTAMVisualizerParamsConfig.py [ 7%] Scanning dependencies of target rqt_ptam Generating dynamic reconfigure files from cfg/PtamParams.cfg: /home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h /home/erle/ptam_ws/devel/lib/python2.7/dist-packages/ptam/cfg/PtamParamsConfig.py remote: Counting objects: 3847, done. Traceback (most recent call last):
File "/home/erle/ptam_ws/src/ethzasl_ptam/ptam/cfg/PTAMVisualizerParams.cfg", line 4, in import roslib; roslib.load_manifest(PACKAGE) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest sys.path = _generate_python_path(package_name, _rospack) + sys.path File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path m = rospack.get_manifest(pkg) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest return self._load_manifest(name) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self) File "/usr/local/lib/python2.7/dist-packages/rospkg/manifest.py", line 393, in parse_manifest_file _static_rosdep_view = init_rospack_interface() File "/usr/local/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 127, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 607, in create_default sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 508, in load_cached_sources_list return parse_sources_data(cache_data, origin=cache_index, model=model) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 366, in parse_sources_data raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin) rosdep2.core.InvalidData: line: yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx unsupported pickle protocol: 4 ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/build.make:56: recipe for target '/home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h' failed make[2]: * [/home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h] Error 1 make[2]: * Waiting for unfinished jobs.... Traceback (most recent call last): File "/home/erle/ptam_ws/src/ethzasl_ptam/ptam/cfg/PtamParams.cfg", line 4, in import roslib; roslib.load_manifest(PACKAGE) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest sys.path = _generate_python_path(package_name, _rospack) + sys.path File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path m = rospack.get_manifest(pkg) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest return self._load_manifest(name) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self) File "/usr/local/lib/python2.7/dist-packages/rospkg/manifest.py", line 393, in parse_manifest_file _static_rosdep_view = init_rospack_interface() File "/usr/local/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 127, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 607, in create_default sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 508, in load_cached_sources_list return parse_sources_data(cache_data, origin=cache_index, model=model) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 366, in parse_sources_data raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin) rosdep2.core.InvalidData: line: yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx unsupported pickle protocol: 4 ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/build.make:71: recipe for target '/home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h' failed make[2]: * [/home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h] Error 1 CMakeFiles/Makefile2:1672: recipe for target 'ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/all' failed make[1]: * [ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/all] Error 2 make[1]: *\ Waiting for unfinished jobs.... remote: Total 3847 (delta 0), reused 0 (delta 0), pack-reused 3847 Receiving objects: 100% (3847/3847), 1.58 MiB | 250.00 KiB/s, done. Resolving deltas: 100% (2352/2352), done. Checking connectivity... done. [ 12%] [ 12%] [ 12%] Building CXX object ethzasl_ptam/rqt_ptam/CMakeFiles/rqt_ptam.dir/include/rqt_ptam/moc_remote_ptam.cxx.o Building CXX object ethzasl_ptam/rqt_ptam/CMakeFiles/rqt_ptam.dir/src/rqt_ptam/ratio_layouted_frame.cpp.o Note: checking out '35bb77741e7e2b7de5d75d0605f104f2ad728708'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 35bb777... Compatibility fix Building CXX object ethzasl_ptam/rqt_ptam/CMakeFiles/rqt_ptam.dir/src/rqt_ptam/remote_ptam.cpp.o Cloning into 'sources'... remote: Counting objects: 7636, done. remote: Total 7636 (delta 0), reused 0 (delta 0), pack-reused 7636 Receiving objects: 100% (7636/7636), 3.77 MiB | 978.00 KiB/s, done. Resolving deltas: 100% (5026/5026), done. [ 14%] Building CXX object ethzasl_ptam/rqt_ptam/CMakeFiles/rqt_ptam.dir/include/rqt_ptam/moc_ratio_layouted_frame.cxx.o Checking connectivity... done. Note: checking out '26bb46b9845383a4724a5e24db42dc27d41477d4'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 26bb46b... Fix for empty $x_libraries checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for gawk... gawk checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for ranlib... ranlib checking how to run the C++ preprocessor... g++ -E Linking CXX shared library /home/erle/ptam_ws/devel/lib/librqt_ptam.so checking build system type... armv7l-unknown-linux-gnu checking host system type... armv7l-unknown-linux-gnu checking if compiler flag -Wall works... yes checking if compiler flag -Wextra works... yes checking if compiler flag -pipe works... yes checking if compiler flag -ggdb works... yes checking if -D_GLIBCXX_DEBUG can works...... [ 14%] Built target rqt_ptam yes checking if compiler flag -fPIC works... yes checking if compiler flag -O3 works... yes


Checking processor specific features

checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... no checking size of void*... 4 checking for inline asm statement... yes checking assembler supports .type pseudo-op... no


Checking for operating system specific features

checking for v4l2... yes checking linux/videodev.h usability... no checking linux/videodev.h presence... no checking for linux/videodev.h... no checking for clock_getres in -lrt... yes checking for working pthreads... yes checking for sched_yield... yes


Checking for optional libraries

checking for X... libraries , headers checking for glDrawPixels in -lGL... yes checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking for gluGetString in -lGLU... yes checking for shared_ptr... no checking for tr1::sharedptr... yes checking for TooN... yes checking for dgesvd in -lacml... no checking if Accelerate framework is needed for LAPACK... checking for dgesvd... no checking for dgesvd in -llapack... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_init_io in -lpng... yes checking for png_set_expand_gray_1_2_4_to_8 in -lpng... yes checking jpeglib.h usability... yes checking jpeglib.h presence... yes checking for jpeglib.h... yes checking for jpeg_destroy_decompress in -ljpeg... yes checking JPEG read buffer size... 1 (safe reading) checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes checking for TIFFReadRGBAImage in -ltiff... yes checking for TIFFReadRGBAImageOriented in -ltiff... yes checking for doxygen... docs


Checking for platform compatibility

checking glob.h usability... yes checking glob.h presence... yes checking for glob.h... yes checking for glob... yes checking for GLOB_BRACE and GLOB_TILDE in glob.h... yes checking whether feenableexcept is declared... yes checking for posix_memalign... yes


Checking for extra build options

Options: inline_asm v4l2buffer posix_rt pthread videodisplay toon lapack png jpeg tiff glob memalign

Missing options for linux-gnu: assembler dc1394v1 dc1394v2 ffmpeg shared_ptr v4l1buffer

Dodgy things: tr1_shared_ptr

SIMD support:

Missing SIMD support for armv7l-unknown-linux-gnu:

-D_REENTRANT -mfpu=neon -fsee -funsafe-loop-optimizations -ffinite-math-only -fno-signed-zeros -fno-math-errno -funroll-loops -Wall -Wextra -pipe -ggdb -fPIC -pthread -ltiff -ljpeg -lpng -lpng -llapack -lGLU -lGL -lrt -pthread -lX11 -lXext Generating config... diff: cvd/config.h: No such file or directory New configuration configure: creating ./config.status config.status: creating Makefile Makefile:405: .deps: No such file or directory In file included from ./cvd_src/i686/utility_byte_differences.cc:3:0: /usr/lib/gcc/arm-linux-gnueabihf/4.9/include/mmintrin.h:28:2: error: #error mmintrin.h included without enabling WMMX/WMMX2 instructions (e.g. -march=iwmmxt or -march=iwmmxt2)

error mmintrin.h included without enabling WMMX/WMMX2 instructions (e.g. -march=iwmmxt or -march=iwmmxt2)

^ cvd_src/eventobject.cpp: In member function 'bool CVD::EventObject::wait(unsigned int)': cvd_src/eventobject.cpp:39:34: warning: narrowing conversion of '(((long unsigned int)tv.timeval::tv_sec) + ((long unsigned int)(milli / 1000u)))' from 'long unsigned int' to 'time_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts= {tv.tv_sec+milli/1000, tv.tv_usec_1000+(milli%1000)_1000000}; ^ cvd_src/eventobject.cpp:39:62: warning: narrowing conversion of '(((long unsigned int)(tv.timeval::tv_usec * 1000l)) + ((long unsigned int)((milli % 1000u) * 1000000u)))' from 'long unsigned int' to 'syscall_slong_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts= {tv.tv_sec+milli/1000, tv.tv_usec_1000+(milli%1000)_1000000}; ^ cvd_src/thread.cpp: In static member function 'static void CVD::Thread::sleep(unsigned int)': cvd_src/thread.cpp:90:32: warning: narrowing conversion of '(milli / 1000u)' from 'unsigned int' to 'time_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts = { milli/1000, (milli%1000)_1000000 }; ^ cvd_src/thread.cpp:90:51: warning: narrowing conversion of '((milli % 1000u) * 1000000u)' from 'unsigned int' to 'syscall_slong_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts = { milli/1000, (milli%1000)_1000000 }; ^ a - cvd_src/diskbuffer2.o a - cvd_src/deinterlacebuffer.o a - cvd_src/exceptions.o a - cvd_src/image_io.o a - cvd_src/bayer.o a - cvd_src/morphology.o a - cvd_src/colourspace_convert.o a - cvd_src/draw.o a - cvd_src/yuv422.o a - cvd_src/yuv420.o a - cvd_src/image_io/pnm_grok.o a - cvd_src/image_io/bmp.o a - cvd_src/image_io/bmp_read.o a - cvd_src/image_io/bmp_write.o a - cvd_src/image_io/cvdimage.o a - cvd_src/image_io/fits.o a - cvd_src/image_io/fitswrite.o a - cvd_src/image_io/save_postscript.o a - cvd_src/image_io/text_write.o a - cvd_src/image_io/text.o a - cvd_src/fast_corner.o a - cvd_src/convolution.o a - cvd_src/nonmax_suppression.o a - cvd_src/timeddiskbuffer.o a - cvd_src/videosource.o a - cvd_src/connected_components.o a - cvd_src/cvd_timer.o a - cvd_src/yuv411_to_stuff.o a - cvd_src/noarch/half_sample.o a - cvd_src/noarch/convert_rgb_to_y.o a - cvd_src/noarch/convolve_gaussian.o a - cvd_src/noarch/gradient.o a - cvd_src/noarch/yuv420p_to_rgb_runner.o a - cvd_src/noarch/yuv422_wrapper.o a - cvd_src/noarch/median_3x3.o a - cvd_src/noarch/utility_float.o a - cvd_src/noarch/utility_byte_differences.o a - cvd_src/noarch/utility_double_int.o a - cvd_src/noarch/two_thirds_sample.o a - cvd_src/fast/fast_7_detect.o a - cvd_src/fast/fast_7_score.o a - cvd_src/slower_corner_7.o a - cvd_src/fast/fast_8_detect.o a - cvd_src/fast/fast_8_score.o a - cvd_src/slower_corner_8.o a - cvd_src/fast/fast_9_detect.o a - cvd_src/fast/fast_9_score.o a - cvd_src/fast_corner_9_nonmax.o a - cvd_src/fast/fast_10_detect.o a - cvd_src/fast/fast_10_score.o a - cvd_src/fast/fast_11_detect.o a - cvd_src/fast/fast_11_score.o a - cvd_src/slower_corner_11.o a - cvd_src/fast/fast_12_detect.o a - cvd_src/fast/fast_12_score.o a - cvd_src/noarch/slower_corner_9.o a - cvd_src/noarch/slower_corner_10.o a - cvd_src/noarch/slower_corner_12.o a - cvd_src/videosource_nodvbuffer.o a - cvd_src/Linux/videosource_nov4l1buffer.o a - cvd_src/Linux/v4lbuffer.o a - cvd_src/Linux/videosource_v4lbuffer.o a - cvd_src/Linux/v4l2buffer.o a - cvd_src/Linux/v4lcontrol.o a - cvd_src/OSX/videosource_noqtbuffer.o a - cvd_src/posix/get_time_of_day_ns.o a - cvd_src/synchronized.o a - cvd_src/eventobject.o a - cvd_src/thread.o a - cvd_src/posix/sched_yield.o a - cvd_src/noarch/posix_memalign.o a - cvd_src/videodisplay.o a - cvd_src/glwindow.o a - cvd_src/gltext.o a - cvd_src/image_io/jpeg.o a - cvd_src/image_io/tiff.o a - cvd_src/image_io/tiffwrite.o a - cvd_src/image_io/png.o a - cvd_src/videosource_novideofilebuffer.o a - cvd_src/globlist.o a - cvd_src/tensor_voting.o a - cvd_src/brezenham.o a - cvd_src/drawtoon.o progs/calibrate.cxx: In function 'int main(int, char*)': progs/calibrate.cxx:897:12: warning: variable 'pass' set but not used [-Wunused-but-set-variable] bool pass = false; ^ progs/calibrate.cxx: In instantiation of 'void improveLM(std::vector&, std::vectorTooN::SE3< >&, CM&, double) [with CM = Camera::Quintic]': progs/calibrate.cxx:1109:55: required from here progs/calibrate.cxx:426:16: warning: variable 'camFrame' set but not used [-Wunused-but-set-variable] Vector<3> camFrame = pose[i] * ms[i].world[j]; ^ progs/calibrate.cxx: In instantiation of 'void getUncertainty(const std::vector&, const std::vectorTooN::SE3< >&, CM&, TooN::Matrix&) [with CM = Camera::Quintic]': progs/calibrate.cxx:1146:60: required from here progs/calibrate.cxx:473:16: warning: variable 'v' set but not used [-Wunused-but-set-variable] Vector<2> v = ms[i].im[j] - cm.project(transform_and_project(pose[i], ms[i].world[j], J_x, J_pose)); ^ ^[[Acvd_src/eventobject.cpp: In member function 'bool CVD::EventObject::wait(unsigned int)': cvd_src/eventobject.cpp:39:34: warning: narrowing conversion of '(((long unsigned int)tv.timeval::tv_sec) + ((long unsigned int)(milli / 1000u)))' from 'long unsigned int' to 'time_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts= {tv.tv_sec+milli/1000, tv.tv_usec_1000+(milli%1000)_1000000}; ^ cvd_src/eventobject.cpp:39:62: warning: narrowing conversion of '(((long unsigned int)(tv.timeval::tv_usec * 1000l)) + ((long unsigned int)((milli % 1000u) * 1000000u)))' from 'long unsigned int' to 'syscall_slong_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts= {tv.tv_sec+milli/1000, tv.tv_usec_1000+(milli%1000)_1000000}; ^ cvd_src/thread.cpp: In static member function 'static void CVD::Thread::sleep(unsigned int)': cvd_src/thread.cpp:90:32: warning: narrowing conversion of '(milli / 1000u)' from 'unsigned int' to 'time_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts = { milli/1000, (milli%1000)_1000000 }; ^ cvd_src/thread.cpp:90:51: warning: narrowing conversion of '((milli % 1000u) * 1000000u)' from 'unsigned int' to 'syscall_slong_t {aka long int}' inside { } is ill-formed in C++11 [-Wnarrowing] struct timespec ts = { milli/1000, (milli%1000)*1000000 }; ^ a - debug/cvd_src/diskbuffer2.o a - debug/cvd_src/deinterlacebuffer.o a - debug/cvd_src/exceptions.o a - debug/cvd_src/image_io.o a - debug/cvd_src/bayer.o a - debug/cvd_src/morphology.o a - debug/cvd_src/colourspace_convert.o a - debug/cvd_src/draw.o a - debug/cvd_src/yuv422.o a - debug/cvd_src/yuv420.o a - debug/cvd_src/image_io/pnm_grok.o a - debug/cvd_src/image_io/bmp.o a - debug/cvd_src/image_io/bmp_read.o a - debug/cvd_src/image_io/bmp_write.o a - debug/cvd_src/image_io/cvdimage.o a - debug/cvd_src/image_io/fits.o a - debug/cvd_src/image_io/fitswrite.o a - debug/cvd_src/image_io/save_postscript.o a - debug/cvd_src/image_io/text_write.o a - debug/cvd_src/image_io/text.o a - debug/cvd_src/fast_corner.o a - debug/cvd_src/convolution.o a - debug/cvd_src/nonmax_suppression.o a - debug/cvd_src/timeddiskbuffer.o a - debug/cvd_src/videosource.o a - debug/cvd_src/connected_components.o a - debug/cvd_src/cvd_timer.o a - debug/cvd_src/yuv411_to_stuff.o a - debug/cvd_src/noarch/half_sample.o a - debug/cvd_src/noarch/convert_rgb_to_y.o a - debug/cvd_src/noarch/convolve_gaussian.o a - debug/cvd_src/noarch/gradient.o a - debug/cvd_src/noarch/yuv420p_to_rgb_runner.o a - debug/cvd_src/noarch/yuv422_wrapper.o a - debug/cvd_src/noarch/median_3x3.o a - debug/cvd_src/noarch/utility_float.o a - debug/cvd_src/noarch/utility_byte_differences.o a - debug/cvd_src/noarch/utility_double_int.o a - debug/cvd_src/noarch/two_thirds_sample.o a - debug/cvd_src/fast/fast_7_detect.o a - debug/cvd_src/fast/fast_7_score.o a - debug/cvd_src/slower_corner_7.o a - debug/cvd_src/fast/fast_8_detect.o a - debug/cvd_src/fast/fast_8_score.o a - debug/cvd_src/slower_corner_8.o a - debug/cvd_src/fast/fast_9_detect.o a - debug/cvd_src/fast/fast_9_score.o a - debug/cvd_src/fast_corner_9_nonmax.o a - debug/cvd_src/fast/fast_10_detect.o a - debug/cvd_src/fast/fast_10_score.o a - debug/cvd_src/fast/fast_11_detect.o a - debug/cvd_src/fast/fast_11_score.o a - debug/cvd_src/slower_corner_11.o a - debug/cvd_src/fast/fast_12_detect.o a - debug/cvd_src/fast/fast_12_score.o a - debug/cvd_src/noarch/slower_corner_9.o a - debug/cvd_src/noarch/slower_corner_10.o a - debug/cvd_src/noarch/slower_corner_12.o a - debug/cvd_src/videosource_nodvbuffer.o a - debug/cvd_src/Linux/videosource_nov4l1buffer.o a - debug/cvd_src/Linux/v4lbuffer.o a - debug/cvd_src/Linux/videosource_v4lbuffer.o a - debug/cvd_src/Linux/v4l2buffer.o a - debug/cvd_src/Linux/v4lcontrol.o a - debug/cvd_src/OSX/videosource_noqtbuffer.o a - debug/cvd_src/posix/get_time_of_day_ns.o a - debug/cvd_src/synchronized.o a - debug/cvd_src/eventobject.o a - debug/cvd_src/thread.o a - debug/cvd_src/posix/sched_yield.o a - debug/cvd_src/noarch/posix_memalign.o a - debug/cvd_src/videodisplay.o a - debug/cvd_src/glwindow.o a - debug/cvd_src/gltext.o a - debug/cvd_src/image_io/jpeg.o a - debug/cvd_src/image_io/tiff.o a - debug/cvd_src/image_io/tiffwrite.o a - debug/cvd_src/image_io/png.o a - debug/cvd_src/videosource_novideofilebuffer.o a - debug/cvd_src/globlist.o a - debug/cvd_src/tensor_voting.o a - debug/cvd_src/brezenham.o a - debug/cvd_src/draw_toon.o Cloning into 'sources'... remote: Counting objects: 969, done. remote: Total 969 (delta 0), reused 0 (delta 0), pack-reused 969 Receiving objects: 100% (969/969), 278.26 KiB | 0 bytes/s, done. Resolving deltas: 100% (706/706), done. Checking connectivity... done. Note: checking out '1f325cead6117b4fbd8016e46dc2f654f0ab7f25'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b new_branch_name

HEAD is now at 1f325ce... Derive GVar errors from sane std::exceptions configure: WARNING: unrecognized options: --without-ffmpeg, --without-dc1394v1, --without-dc1394v2, --with-lapack, --with-pic checking for gawk... gawk checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking iostream usability... yes checking iostream presence... yes checking for iostream... yes checking build system type... armv7l-unknown-linux-gnu checking host system type... armv7l-unknown-linux-gnu checking if compiler flag -Wall works... yes checking if compiler flag -Wextra works... yes


Checking for options

checking for TooN... yes checking for TooN-2... yes checking if compiler flag -pthread works... yes checking for rl_done in -lreadline... no checking ncurses as a requirement for readline... checking for tputs in -lncurses... no checking for rl_done in -lreadline... no checking curses as a requirement for readline... checking for tputs in -lcurses... no checking for rl_done in -lreadline... no


Checking for widget libraries (provides GUI_...)

checking for fltk2-config... no checking FL/Fl.H usability... no checking FL/Fl.H presence... no checking for FL/Fl.H... no checking for main in -lfltk... no checking for X... libraries , headers checking Xm/Xm.h usability... no checking Xm/Xm.h presence... no checking for Xm/Xm.h... no checking for main in -lXm... no configure: WARNING: No GUI functionality enabled Options: toon

Missing options: gui readline GUI support: none

configure: creating ./config.status config.status: creating Makefile config.status: creating gvars3/config.h configure: WARNING: unrecognized options: --without-ffmpeg, --without-dc1394v1, --without-dc1394v2, --with-lapack, --with-pic src/GUI_no_language.cc:34:33: warning: unused parameter 'l' [-Wunused-parameter] void remove_lang(GUI_language* l) ^ src/GUI_impl_noreadline.cc:23:61: warning: unused parameter 'text' [-Wunused-parameter] char * GUI_impl::ReadlineCompletionFunction (const char _text, int start, int end) ^ src/GUI_impl_noreadline.cc:23:71: warning: unused parameter 'start' [-Wunused-parameter] char _ GUI_impl::ReadlineCompletionFunction (const char _text, int start, int end) ^ src/GUI_implnoreadline.cc:23:82: warning: unused parameter 'end' [-Wunused-parameter] char * GUI_impl::ReadlineCompletionFunction (const char _text, int start, int end) ^ src/GUI_impl_noreadline.cc:37:31: warning: unused parameter 'ost' [-Wunused-parameter] void print_history(ostream &ost) ^ a - src/gvars3.o a - src/GUI.o a - src/GStringUtil.o a - src/gvars2.o a - src/serialize.o a - src/GUI_none.o a - src/GUI_non_readline.o a - src/inst.o a - src/GUI_no_language.o a - src/GUI_impl_noreadline.o a - src/gvars3.o a - src/GUI.o a - src/GStringUtil.o a - src/gvars2.o a - src/serialize.o a - src/GUI_none.o a - src/GUI_impl_headless.o a - src/inst.o a - src/GUI_no_language.o -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/erle/ptam_ws/src/ethzasl_ptam/ptam/thirdparty/agast/build Scanning dependencies of target agast [ 10%] Building CXX object CMakeFiles/agast.dir/src/agast5_8.o [ 20%] Building CXX object CMakeFiles/agast.dir/src/agast7_12d_nms.o /home/erle/ptam_ws/src/ethzasl_ptam/ptam/thirdparty/agast/src/agast7_12d_nms.cc:30:66: warning: unused parameter 'ignorePattern' [-Wunused-parameter] int AgastDetector712d::cornerScore(const unsigned char p, bool ignorePattern) ^ [ 30%] Building CXX object CMakeFiles/agast.dir/src/oast9_16_nms.o [ 40%] Building CXX object CMakeFiles/agast.dir/src/agast7_12s_nms.o /home/erle/ptam_ws/src/ethzasl_ptam/ptam/thirdparty/agast/src/agast7_12s_nms.cc:30:66: warning: unused parameter 'ignorePattern' [-Wunused-parameter] int AgastDetector7_12s::cornerScore(const unsigned char* p, bool ignorePattern) ^ [ 50%] Building CXX object CMakeFiles/agast.dir/src/oast9_16.o [ 60%] Building CXX object CMakeFiles/agast.dir/src/agast7_12s.o [ 70%] Building CXX object CMakeFiles/agast.dir/src/agast5_8_nms.o /home/erle/ptam_ws/src/ethzasl_ptam/ptam/thirdparty/agast/src/agast5_8_nms.cc:30:64: warning: unused parameter 'ignorePattern' [-Wunused-parameter] int AgastDetector5_8::cornerScore(const unsigned char* p, bool ignorePattern) ^ [ 80%] Building CXX object CMakeFiles/agast.dir/src/AstDetector.o [ 90%] Building CXX object CMakeFiles/agast.dir/src/agast7_12d.o [100%] Building CXX object CMakeFiles/agast.dir/src/nonMaximumSuppression.o Linking CXX static library ../lib/libagast.a [100%] Built target agast [ 14%] Built target DEPS Makefile:127: recipe for target 'all' failed make: *\ [all] Error 2 Invoking "make -j4 -l4" failed `

I saw some errors when compiling ptam_gencfg, so I tried to compile it alone, but I got the next error:

`erle@erle-brain-2 ~/ptam_ws $ catkin_make ptam_gencfgBase path: /home/erle/ptam_ws Source space: /home/erle/ptam_ws/src Build space: /home/erle/ptam_ws/build Devel space: /home/erle/ptam_ws/devel Install space: /home/erle/ptam_ws/install

Running command: "make cmake_check_build_system" in "/home/erle/ptam_ws/build"

Running command: "make ptam_gencfg -j4 -l4" in "/home/erle/ptam_ws/build"

[ 50%] [100%] Generating dynamic reconfigure files from cfg/PTAMVisualizerParams.cfg: /home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h /home/erle/ptam_ws/devel/lib/python2.7/dist-packages/ptam/cfg/PTAMVisualizerParamsConfig.py Generating dynamic reconfigure files from cfg/PtamParams.cfg: /home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h /home/erle/ptam_ws/devel/lib/python2.7/dist-packages/ptam/cfg/PtamParamsConfig.py Traceback (most recent call last): File "/home/erle/ptam_ws/src/ethzasl_ptam/ptam/cfg/PTAMVisualizerParams.cfg", line 4, in import roslib; roslib.load_manifest(PACKAGE) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest sys.path = _generate_python_path(package_name, _rospack) + sys.path File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path m = rospack.get_manifest(pkg) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest return self._load_manifest(name) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self) File "/usr/local/lib/python2.7/dist-packages/rospkg/manifest.py", line 393, in parse_manifest_file _static_rosdep_view = init_rospack_interface() File "/usr/local/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 127, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 607, in create_default sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 508, in load_cached_sources_list return parse_sources_data(cache_data, origin=cache_index, model=model) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 366, in parse_sources_data raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin) rosdep2.core.InvalidData: line: yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx unsupported pickle protocol: 4 ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/build.make:56: recipe for target '/home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h' failed make[3]: * [/home/erle/ptam_ws/devel/include/ptam/PTAMVisualizerParamsConfig.h] Error 1 make[3]: * Waiting for unfinished jobs.... Traceback (most recent call last): File "/home/erle/ptam_ws/src/ethzasl_ptam/ptam/cfg/PtamParams.cfg", line 4, in import roslib; roslib.load_manifest(PACKAGE) File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest sys.path = _generate_python_path(package_name, _rospack) + sys.path File "/opt/ros/indigo/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path m = rospack.get_manifest(pkg) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 164, in get_manifest return self._load_manifest(name) File "/usr/local/lib/python2.7/dist-packages/rospkg/rospack.py", line 208, in _load_manifest retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name, rospack=self) File "/usr/local/lib/python2.7/dist-packages/rospkg/manifest.py", line 393, in parse_manifest_file _static_rosdep_view = init_rospack_interface() File "/usr/local/lib/python2.7/dist-packages/rosdep2/rospack.py", line 58, in init_rospack_interface lookup = _get_default_RosdepLookup(Options()) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 127, in _get_default_RosdepLookup verbose=options.verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 607, in create_default sources = load_cached_sources_list(sources_cache_dir=sources_cache_dir, verbose=verbose) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 508, in load_cached_sources_list return parse_sources_data(cache_data, origin=cache_index, model=model) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 366, in parse_sources_data raise InvalidData("line:\n\t%s\n%s"%(line, e), origin=origin) rosdep2.core.InvalidData: line: yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx unsupported pickle protocol: 4 ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/build.make:71: recipe for target '/home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h' failed make[3]: * [/home/erle/ptam_ws/devel/include/ptam/PtamParamsConfig.h] Error 1 CMakeFiles/Makefile2:1672: recipe for target 'ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/all' failed make[2]: * [ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/all] Error 2 CMakeFiles/Makefile2:1684: recipe for target 'ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/rule' failed make[1]: * [ethzasl_ptam/ptam/CMakeFiles/ptam_gencfg.dir/rule] Error 2 Makefile:759: recipe for target 'ptam_gencfg' failed make: * [ptam_gencfg] Error 2 Invoking "make ptam_gencfg -j4 -l4" failed `

Any help will be welcome, don't doubt in asking for any information.

asn567 commented 7 years ago

Hi~ @SergioGarG I have the same problem, did you solve this?