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

fatal error: libcaer/libcaer.h: No such file or directory #4

Open
yuanliang861 opened this issue Oct 1, 2019 · 4 comments
Open

fatal error: libcaer/libcaer.h: No such file or directory #4

yuanliang861 opened this issue Oct 1, 2019 · 4 comments

Comments

@yuanliang861
Copy link

When I run "catkin_make", it occurs this problem.
In folder dvs_clustering_tracking/src/dvs_clustering_tracking/libcaer/include, there is no file named libcaer.h.But there is a file named libcaer_in.h, I rename it as libcaer.h. It does not work.
`
Scanning dependencies of target dvs_renderer
[ 40%] Building CXX object dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/src/driver_nodelet.cpp.o
[ 42%] Building CXX object dvs_clustering_tracking/dvs_renderer/CMakeFiles/dvs_renderer.dir/src/image_tracking.cpp.o
In file included from /home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/include/davis_ros_driver/driver_nodelet.h:20:0,
from /home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/src/driver_nodelet.cpp:18:
/home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/include/davis_ros_driver/driver.h:34:29: fatal error: libcaer/libcaer.h: No such file or directory
compilation terminated.
dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/build.make:62: recipe for target 'dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/src/driver_nodelet.cpp.o' failed
make[2]: *** [dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/src/driver_nodelet.cpp.o] Error 1
CMakeFiles/Makefile2:1321: recipe for target 'dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/all' failed
make[1]: *** [dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver_nodelet.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** No rule to make target '/home/zhao/dvs_clustering_tracking/devel/lib/libcaer.so', needed by '/home/zhao/dvs_clustering_tracking/devel/lib/davis_ros_driver/davis_ros_driver'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 44%] Building CXX object dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/src/driver.cpp.o
In file included from /home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/src/driver_node.cpp:18:0:
/home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/include/davis_ros_driver/driver.h:34:29: fatal error: libcaer/libcaer.h: No such file or directory
compilation terminated.
dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/build.make:62: recipe for target 'dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/src/driver_node.cpp.o' failed
make[2]: *** [dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/src/driver_node.cpp.o] Error 1
[ 46%] Building CXX object dvs_clustering_tracking/dvs_renderer/CMakeFiles/dvs_renderer.dir/src/renderer.cpp.o
In file included from /home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/src/driver.cpp:16:0:
/home/zhao/dvs_clustering_tracking/src/dvs_clustering_tracking/davis_ros_driver/include/davis_ros_driver/driver.h:34:29: fatal error: libcaer/libcaer.h: No such file or directory
compilation terminated.
dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/build.make:86: recipe for target 'dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/src/driver.cpp.o' failed
make[2]: *** [dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/src/driver.cpp.o] Error 1
CMakeFiles/Makefile2:2305: recipe for target 'dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/all' failed
make[1]: *** [dvs_clustering_tracking/davis_ros_driver/CMakeFiles/davis_ros_driver.dir/all] Error 2
[ 48%] Building CXX object dvs_clustering_tracking/dvs_renderer/CMakeFiles/dvs_renderer.dir/src/renderer_node.cpp.o
[ 50%] Linking CXX executable /home/zhao/dvs_clustering_tracking/devel/lib/dvs_renderer/dvs_renderer
[ 50%] Built target dvs_renderer
Note: checking out '57466910da84c25231aab57e99f246239722a628'.

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

HEAD is now at 5746691... Events: add Point4D event, useful for tracking homogeneous coordinates for example.
[ 54%] No update step for 'libcaer_src'
[ 54%] No patch step for 'libcaer_src'
[ 56%] Performing configure step for 'libcaer_src'
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - 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
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project version is: 2.0.0-rUnversioned directory
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Check size of size_t
-- Check size of size_t - done
-- Check size of void *
-- Check size of void * - done
-- Looking for pthread.h
-- Looking for 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 PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libusb-1.0>=1.0.17'
-- Found libusb-1.0, version 1.0.20
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhao/dvs_clustering_tracking/build/dvs_clustering_tracking/libcaer_catkin/libcaer_src-prefix/src/libcaer_src-build
[ 58%] Performing build step for 'libcaer_src'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
Scanning dependencies of target caer
[ 10%] Building C object src/CMakeFiles/caer.dir/events.c.o
[ 20%] Building C object src/CMakeFiles/caer.dir/ringbuffer/ringbuffer.c.o
[ 30%] Building C object src/CMakeFiles/caer.dir/davis_fx2.c.o
[ 40%] Building C object src/CMakeFiles/caer.dir/log.c.o
/home/zhao/dvs_clustering_tracking/build/dvs_clustering_tracking/libcaer_catkin/libcaer_src-prefix/src/libcaer_src/src/log.c: In function ‘caerLog’:
/home/zhao/dvs_clustering_tracking/build/dvs_clustering_tracking/libcaer_catkin/libcaer_src-prefix/src/libcaer_src/src/log.c:29:6: warning: stack protector not protecting local variables: variable length buffer [-Wstack-protector]
void caerLog(uint8_t logLevel, const char *subSystem, const char *format, ...) {
^
[ 50%] Building C object src/CMakeFiles/caer.dir/dvs128.c.o
[ 60%] Building C object src/CMakeFiles/caer.dir/device.c.o
[ 70%] Building C object src/CMakeFiles/caer.dir/davis_fx3.c.o
[ 80%] Building C object src/CMakeFiles/caer.dir/davis_common.c.o
[ 90%] Building C object src/CMakeFiles/caer.dir/frame_utils.c.o
/home/zhao/dvs_clustering_tracking/build/dvs_clustering_tracking/libcaer_catkin/libcaer_src-prefix/src/libcaer_src/src/frame_utils.c: In function ‘caerFrameUtilsWhiteBalance’:
/home/zhao/dvs_clustering_tracking/build/dvs_clustering_tracking/libcaer_catkin/libcaer_src-prefix/src/libcaer_src/src/frame_utils.c:648:54: warning: unused parameter ‘framePacket’ [-Wunused-parameter]
void caerFrameUtilsWhiteBalance(caerFrameEventPacket framePacket) {
^
[100%] Linking C shared library libcaer.so
[100%] Built target caer
[ 60%] Performing install step for 'libcaer_src'
make[3]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
[100%] Built target caer
Install the project...
-- Install configuration: "Release"
-- Installing: /home/zhao/dvs_clustering_tracking/devel/lib/pkgconfig/libcaer.pc
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/libcaer.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/log.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/portable_endian.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/frame_utils.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/imu9.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/frame.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/ear.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/packetContainer.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/imu6.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/point1d.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/point3d.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/special.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/point2d.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/polarity.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/sample.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/config.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/point4d.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/events/common.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/devices
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/devices/usb.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/devices/davis.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/include/libcaer/devices/dvs128.h
-- Installing: /home/zhao/dvs_clustering_tracking/devel/lib/libcaer.so.2.0.0
-- Installing: /home/zhao/dvs_clustering_tracking/devel/lib/libcaer.so.2
-- Installing: /home/zhao/dvs_clustering_tracking/devel/lib/libcaer.so
-- Set runtime path of "/home/zhao/dvs_clustering_tracking/devel/lib/libcaer.so.2.0.0" to "/home/zhao/dvs_clustering_tracking/devel//home/zhao/dvs_clustering_tracking/devel/lib"
[ 62%] Completed 'libcaer_src'
[ 62%] Built target libcaer_src
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

`

@fbarranco
Copy link
Owner

Hi,
I am sorry, but libcaer is part of the the library provided by UZH (it is in the documentation). If you have any problems with it, it could be because they have updated it. Please, do redirect any questions you have about that to them. From your, it looks like your are not including the path to the library correctly.
Regards

@yuanliang861
Copy link
Author

Thank you

@JeffChanxf
Copy link

I solved the problem by following the instructions in https://gitlab.com/inivation/dv/libcaer
Hopefully, it can be of some help!

@fbarranco
Copy link
Owner

Thanks @JeffChanxf!

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

3 participants