ethz-asl / ethzasl_ptam

Modified version of Parallel Tracking and Mapping (PTAM)
http://wiki.ros.org/ethzasl_ptam
235 stars 184 forks source link

fatal error: ptam/PtamParamsConfig.h: No such file or directory #69

Open zht9961020 opened 9 years ago

zht9961020 commented 9 years ago

In file included from /home/cane/catkin_ws/src/ethzasl_ptam/ptam/src/CameraCalibrator.cc:5:0: /home/cane/catkin_ws/src/ethzasl_ptam/ptam/include/ptam/Params.h:11:35: fatal error: ptam/PtamParamsConfig.h: No such file or directory

include <ptam/PtamParamsConfig.h>

                               ^

compilation terminated. make[2]: * [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o] Error 1 make[1]: * [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/all] Error 2 make: *\ [all] Error 2 Invoking "make -j1 -l1" failed

simonlynen commented 9 years ago

Please take a look in the closed issues, there are several answers to this question around. Thanks

On Thu, Jun 18, 2015, 07:58 zht9961020 notifications@github.com wrote:

In file included from /home/cane/catkin_ws/src/ethzasl_ptam/ptam/src/CameraCalibrator.cc:5:0: /home/cane/catkin_ws/src/ethzasl_ptam/ptam/include/ptam/Params.h:11:35: fatal error: ptam/PtamParamsConfig.h: No such file or directory

include

^ compilation terminated. make[2]: * [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o] Error 1 make[1]: *\ [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/all] Error 2 make: * [all] Error 2 Invoking "make -j1 -l1" failed

— Reply to this email directly or view it on GitHub https://github.com/ethz-asl/ethzasl_ptam/issues/69.

unknownnn commented 9 years ago

Hello Simon,

I have exactly the same error too, and it's true that there are several answers to this question but there is no solution anywhere just few comments...

acajic commented 9 years ago

I am also experiencing this error.

Although this issue is closed here: https://github.com/ethz-asl/ethzasl_ptam/issues/39 it did not help me to solve the problem.

I am on Ubuntu 14.04 LTS running ROS Indigo.

UPDATE: Also, there is an open issue about the same thing: https://github.com/ethz-asl/ethzasl_ptam/issues/48

I found help in the comments there.

FGovers commented 8 years ago

Also having the same problem - check the answers given previously, none of these helped - still having problems with PtamParamsConfig.h missing

aspears1935 commented 8 years ago

The solution in my case is below:

The dependency PtamParamsConfig.h file wasn't being generated before packages that needed it were being built. To solve this I called catkin_make for just the config file generator node before calling catkin_make again to make all packages. i.e.:

Doing it in this order guaranteed that the PtamParamsConfig.h file was generated before it was required to build the main ptam nodes.

So I found that for a successful clean build in Ubuntu 14.04 follow these steps:

Hopefully that helps some others as well.