cloud_annotation_tool icon indicating copy to clipboard operation
cloud_annotation_tool copied to clipboard

Error with 'make' on Ubuntu 18.04

Open Gitanjali450 opened this issue 4 years ago • 8 comments

Hello, When I build the cloud_annotation_tool-devel and run the 'make' command, I get the following error:

[ 12%] Generating moc_viewer.cxx /usr/include/boost/unordered/detail/implementation.hpp:52: Parse error at "defined" CMakeFiles/cloud_annotation_tool.dir/build.make:66: recipe for target 'moc_viewer.cxx' failed make[2]: *** [moc_viewer.cxx] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cloud_annotation_tool.dir/all' failed make[1]: *** [CMakeFiles/cloud_annotation_tool.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

What could this error mean?

Thank you.

Gitanjali450 avatar Dec 17 '19 12:12 Gitanjali450

https://github.com/yzrobot/cloud_annotation_tool/issues/4#issuecomment-416995311

use this

dqmmpb avatar Jan 04 '20 12:01 dqmmpb

Hello, When I build the cloud_annotation_tool-devel and run the 'make' command, I get the following error:

[ 12%] Generating moc_viewer.cxx /usr/include/boost/unordered/detail/implementation.hpp:52: Parse error at "defined" CMakeFiles/cloud_annotation_tool.dir/build.make:66: recipe for target 'moc_viewer.cxx' failed make[2]: *** [moc_viewer.cxx] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cloud_annotation_tool.dir/all' failed make[1]: *** [CMakeFiles/cloud_annotation_tool.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

What could this error mean?

Thank you.

@Gitanjali450 Can you please tell me , how did you solve the pcl visulization.h error

nesakeerthi avatar Jan 24 '20 09:01 nesakeerthi

@nesakeerthi if you are having compilation problems, try compiling on Ubuntu 14.04 instead of any other version. This tool would compile without any errors on Ubuntu 14.04, although it is outdataed now. But it looks like this tool was made only for that Ubuntu version. I installed Ubuntu 14.04 as a virtual machine on Virtual Box from Oracle. It did not take much time, and the tool compilied without any errors. Let me know if that works

Gitanjali450 avatar Jan 24 '20 10:01 Gitanjali450

@Gitanjali450 thanks for the reply ...

let me try this... after intstalling have you tried to annotate the point clouds ??? Currently i want annotate the VLP16 pcap or pcd files(coverted using Matlab) and i have stucked with this annotation.

nesakeerthi avatar Jan 24 '20 10:01 nesakeerthi

@nesakeerthi I could compile and run the tool in the end. But I did not like the way the tool worked. I could not annotate my PCD files. If you want to annotate PCD files, then there are other better and recent tools available for that. Try the tool at https://github.com/RMonica/rviz_cloud_annotation The demo video of how this tool works can be seen at http://www.ce.unipr.it/~aleotti/annotation.mp4 This tool worked very well for PCD files. I would recommend it. If it does not compile, you can ask me, but the compilation is easy.

Gitanjali450 avatar Jan 24 '20 11:01 Gitanjali450

@Gitanjali450 Thanks for the tip ... let me try install the thing ...in 14.04 LTS

nesakeerthi avatar Jan 24 '20 11:01 nesakeerthi

Use this CMakeLists.txt

cmake_minimum_required(VERSION 2.8.3)
project(cloud_annotation_tool)

set(CMAKE_CXX_STANDARD 17)

find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
find_package(PCL REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
include_directories(${CMAKE_BINARY_DIR})

include_directories(include ${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

set(MOC_HDRS viewer.h)
qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})

set(UI_FILES viewer.ui)
qt5_wrap_ui(UI_SRCS ${UI_FILES})

add_executable(${PROJECT_NAME} viewer.cpp main.cpp ${MOC_SRCS} ${UI_SRCS})
qt5_use_modules(${PROJECT_NAME} Core Widgets)

target_link_libraries(${PROJECT_NAME} ${PCL_LIBRARIES})

dymons avatar Feb 17 '20 10:02 dymons

@dymons thanks will tried can able to complie the repo but ... its not visulizing the .pcd. I have cross checked with matlab ..it works there. I'm not sure what i'm missing

nesakeerthi avatar Feb 25 '20 04:02 nesakeerthi