freenect_stack icon indicating copy to clipboard operation
freenect_stack copied to clipboard

cannot find freenect_camera/FreenectConfig.h

Open heavyhuang opened this issue 8 years ago • 7 comments

Hello, I'm having some trouble with yaourt ros-indigo-freenect-stack in arch-linux,it's get:

> [20%] Building CXX object CMakeFiles / freenect_nodelet.dir / src / nodelets / drive.cpp.o
> In file included from /tmp/yaourt-tmp-huang/aur-ros-indigo-freenect-camera/src/freenect_camera/src/nodelets/driver.cpp:39:0:
> /tmp/yaourt-tmp-huang/aur-ros-indigo-freenect-camera/src/freenect_camera/src/nodelets/driver.h:51:44: Fatal Error: freenect_camera / FreenectConfig.h: No such file or directory
> Compile interrupt.
> CMakeFiles / freenect_nodelet.dir / build.make: 62: recipe for target 'CMakeFiles / freenect_nodelet.dir / src / nodelets / driver.cpp.o' failed
> make [2]: *** [CMakeFiles / freenect_nodelet.dir / src / nodelets / driver.cpp.o] Error 1
> CMakeFiles / Makefile2: 67: recipe for target 'CMakeFiles / freenect_nodelet.dir / all' failed
> make [1]: *** [CMakeFiles / freenect_nodelet.dir / all] Error 2
> Makefile: 127: recipe for target 'all' failed
> make: *** [all] Error 2
> ==> ERROR: An error has occurred build () in. Aborting ...
> ==> Error: Makepkg not build ros-indigo-freenect-camera.

and I find #include <freenect_camera/FreenectConfig.h> in driver.h but cannot find FreenectConfig.h,does it change name?

heavyhuang avatar Apr 19 '16 08:04 heavyhuang

@heavyhuang FreenectConfig.h is auto-generated from this file: https://github.com/ros-drivers/freenect_stack/blob/master/freenect_camera/cfg/Freenect.cfg, using dynamic reconfigure message generation.

I suspect it might be because CMakeLists is missing an add dependency on the autogenerated config file. I'll add it shortly. Unfortunately, I'm not aware as to how yaourt works. I'm assuming you can pull from the master branch and build it on arch somehow?

piyushk avatar Apr 19 '16 15:04 piyushk

@heavyhuang I've now updated the master branch.

piyushk avatar Apr 19 '16 15:04 piyushk

The binary job on Kinetic appears to fail because of this issue:

http://build.ros.org/job/Kbin_uX64__freenect_camera__ubuntu_xenial_amd64__binary/4/

jacquelinekay avatar May 26 '16 15:05 jacquelinekay

@jacquelinekay: We have a fix for that problem, which suddenly appeared in Xenial. I plan to re-release soon, but would like to run a Travis CI test for Xenial and Kinetic, if that's possible yet.

jack-oquin avatar May 26 '16 17:05 jack-oquin

Thanks for re-releasing!

jacquelinekay avatar May 26 '16 22:05 jacquelinekay

You are welcome, Jackie.

@heavyhuang: can you verify whether this fixes your problem with Arch Linux?

You'll need to build it from source, as this fix has only been released to Kinetic so far. If it fixes your problem, I'll release it to Indigo, too.

jack-oquin avatar May 26 '16 22:05 jack-oquin

@jack-oquin, @heavyhuang Adding the folling before the make in the PKGBUILD worked sed -i '40 a add_dependencies(freenect_node ${PROJECT_NAME}_gencfg)' ${srcdir}/${_dir}/CMakeLists.txt sed -i '46 a add_dependencies(freenect_nodelet ${PROJECT_NAME}_gencfg)' ${srcdir}/${_dir}/CMakeLists.txt

yohlane avatar Sep 07 '16 20:09 yohlane