Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with 'make' on Ubuntu 18.04 #15

Open
Gitanjali450 opened this issue Dec 17, 2019 · 8 comments
Open

Error with 'make' on Ubuntu 18.04 #15

Gitanjali450 opened this issue Dec 17, 2019 · 8 comments

Comments

@Gitanjali450
Copy link

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.

@dqmmpb
Copy link

dqmmpb commented Jan 4, 2020

#4 (comment)

use this

@nesakeerthi
Copy link

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

@Gitanjali450
Copy link
Author

@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

@nesakeerthi
Copy link

@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.

@Gitanjali450
Copy link
Author

@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.

@nesakeerthi
Copy link

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

@dymons
Copy link

dymons commented Feb 17, 2020

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})

@nesakeerthi
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants