Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am trying to write my own plugin, which has its own header file. For its compilation, I am Plugins 101 tutorials. When I run make in build file, it says "fatal error: myproject.hh: No such file or directory compilation terminated".

Gazebo Version: 7.13.1
Ubuntu 16.04,
File Structure :
Myproject (Folder)
----myproject.cc
----myproject.hh
----CMakeLists.txt
----build (Folder)

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)

include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(myproject SHARED myproject.cc)

target_link_libraries(myproject ${GAZEBO_LIBRARIES})

I have written a new header file myproject.hh and included it in myproject.cc. When I try to compile myproject.cc, it says "myproject.hh not found". What changes should I make to my CMakeLists.txt, so that it recognises the header file. Thanks in advance.

I am trying to write my own plugin, which has its own header file. For its compilation, I am Plugins 101 tutorials. When I run make in build file, it says "fatal error: myproject.hh: No such file or directory compilation terminated".

Gazebo Version: 7.13.1
Ubuntu 16.04,

Tutorial Link: Plugins 101

File Structure :
Myproject (Folder)
----myproject.cc
----myproject.hh
----CMakeLists.txt
----build (Folder)

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)

include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(myproject SHARED myproject.cc)

target_link_libraries(myproject ${GAZEBO_LIBRARIES})

I have written a new header file myproject.hh and included it in myproject.cc. When I try to compile myproject.cc, it says "myproject.hh not found". What changes should I make to my CMakeLists.txt, so that it recognises the header file. Thanks in advance.

I am trying to write my own plugin, which has its own header file. For its compilation, I am Plugins 101 tutorials. When I run make in build file, it says "fatal error: myproject.hh: No such file or directory compilation terminated".

Gazebo Version: 7.13.1
Ubuntu 16.04,

Tutorial Link: Plugins 101

File Structure :
Myproject (Folder)
----myproject.cc
----myproject.hh
----CMakeLists.txt
----build (Folder)

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)

include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(myproject SHARED myproject.cc)

target_link_libraries(myproject ${GAZEBO_LIBRARIES})

I have written a new header file myproject.hh and included it in myproject.cc. When I try to compile myproject.cc, it says "myproject.hh not found". What changes should I make to my CMakeLists.txt, so that it recognises the header file. Thanks in advance.

I am trying to write my own plugin, which has its own header file. For its compilation, I am Plugins 101 tutorials. When I run make in build file, it says "fatal error: myproject.hh: No such file or directory compilation terminated".terminated". How to solve this problem ?

Gazebo Version: 7.13.1
Ubuntu 16.04,

Tutorial Link: Plugins 101

File Structure :
Myproject (Folder)
----myproject.cc
----myproject.hh
----CMakeLists.txt
----build (Folder)

CMakeLists.txt:

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
find_package(gazebo REQUIRED)

include_directories(${GAZEBO_INCLUDE_DIRS})
link_directories(${GAZEBO_LIBRARY_DIRS})

list(APPEND CMAKE_CXX_FLAGS "${GAZEBO_CXX_FLAGS}")
add_library(myproject SHARED myproject.cc)

target_link_libraries(myproject ${GAZEBO_LIBRARIES})

I have written a new header file myproject.hh and included it in myproject.cc. When I try to compile myproject.cc, it says "myproject.hh not found". What changes should I make to my CMakeLists.txt, so that it recognises the header file. Thanks in advance.