uzh-rpg / rpg_esim

ESIM: an Open Event Camera Simulator
MIT License
595 stars 125 forks source link

Error while compiling ze_common #95

Closed Dreadlocke1984 closed 3 years ago

Dreadlocke1984 commented 3 years ago

Hello, First and foremost, thanks for developing the simulator! I am trying to install it by following the installation instructions given in the installation wiki. However, after I try the command: -

catkin build esim_ros

I get the following error: - ze_common_compile_error

I am not able to resolve it.

I am using Ubuntu 18.04, OpenCV4 and ROS Melodic.

Dreadlocke1984 commented 3 years ago

I was able to solve the issue. The problem was with the ze_setup.cmake file, which is included in the CMakeLists.txt file of ze_common.

I referred to the following link for the solution: - https://stackoverflow.com/questions/32523589/svo-fast-coner-detector-installation-plain-cmake-no-ros

I opened the ze_setup.cmake file in gedit and commented lines 20 to 25.

I then added the following to line 26: - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a")

I was successfully able to compile the 36 modules and able to run the Planar Renderer example.