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

cannot find freenect_camera/FreenectConfig.h #28

Open
heavyhuang opened this issue Apr 19, 2016 · 7 comments
Open

cannot find freenect_camera/FreenectConfig.h #28

heavyhuang opened this issue Apr 19, 2016 · 7 comments

Comments

@heavyhuang
Copy link

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?

@piyushk
Copy link

piyushk commented Apr 19, 2016

@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 added a commit that referenced this issue Apr 19, 2016
@piyushk
Copy link

piyushk commented Apr 19, 2016

@heavyhuang I've now updated the master branch.

@jacquelinekay
Copy link

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/

@jack-oquin
Copy link
Member

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

@jacquelinekay
Copy link

Thanks for re-releasing!

@jack-oquin
Copy link
Member

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.

@yohlane
Copy link

yohlane commented Sep 7, 2016

@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

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

5 participants