ethz-asl / ethzasl_ptam

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

PtamParamsConfig.h missing #39

Closed stefangachter closed 10 years ago

stefangachter commented 10 years ago

I am trying to build the package with catkin_make but end up with the following error:

[ 23%] Building CXX object ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o
In file included from /home/gstef/catkin_ws/src/ethzasl_ptam/ptam/src/CameraCalibrator.cc:5:0:
/home/gstef/catkin_ws/src/ethzasl_ptam/ptam/include/ptam/Params.h:11:35: fatal error: ptam/PtamParamsConfig.h: No such file or directory
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" failed

I cannot find the file PtamParamsConfig.h and I do not know how to generate it. Could somebody point out how to proceed? Any help will be apprecaited.

simonlynen commented 10 years ago

Hi Stefan,

This file is autogenerated by the dynamic reconfigure config file in the cfg subfolder. Try to clear the build dir and execute catkin_make again. If this does not work please provide a link to the full build log.

Simon On Jun 24, 2014 4:17 AM, "stefangachter" notifications@github.com wrote:

I am trying to build the package with catkin_make but end up with the following error:

[ 23%] Building CXX object ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o In file included from /home/gstef/catkin_ws/src/ethzasl_ptam/ptam/src/CameraCalibrator.cc:5:0: /home/gstef/catkin_ws/src/ethzasl_ptam/ptam/include/ptam/Params.h:11:35: fatal error: ptam/PtamParamsConfig.h: No such file or directory 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" failed

I cannot find the file PtamParamsConfig.h and I do not know how to generate it. Could somebody point out how to proceed? Any help will be apprecaited.

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

stefangachter commented 10 years ago

Hi Simon, Thank you for your quick reply. I did a clean build of ethzasl_ptam only, but ended up with the same error. The build log is here: https://www.dropbox.com/s/m5s5kff0z9kwu68/catkin_make_log.txt I had the problem with other packages that my computer does not support properly SSE3, but there is no aparent error related to SSE3. Maybe you can figure it out. Thanks for your support. Stefan

simonlynen commented 10 years ago

Stefan,

I am sorry but I have no idea what is wrong in your setup. We have this on a 12.04 Ubuntu build-server built from scratch every day so it does not seem to be a general problem. Can you just do a search for this issue and let me know if you find sth.

Simon

fboris commented 10 years ago

try to remove /devel and /build under catkin workspace, then catkin_make again. I encountered some linking wrong path issue but it was solved by this way.

stefangachter commented 10 years ago

Thank you for your support. Actually, I removed both directories and did a build from scratch, but without success. I am currently testing it on another PC. I will report back should I have some findings.

stefangachter commented 10 years ago

Ok, I built it on a virtual machine with Ubuntu 14.04 and ROS Indigo and it built flawlessly, but still do not know what the problem is on the other computer. The issue can be closed for the time being.

tstellanova commented 10 years ago

Stefan can you detail the steps you used to build on Ubuntu 14.04 and ROS Indigo? I am getting the same error you originally reported. The steps I'm following:

The error output is:

In file included from /home/user/catkin_ws/src/ethzasl_ptam/ptam/src/CameraCalibrator.cc:5:0:
/home/user/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.
tstellanova commented 10 years ago

Possibly related output from catkin_make:


--------------------------------
Checking for extra build options
--------------------------------

Options:
inline_asm assembler v4l2buffer posix_rt pthread videodisplay toon png jpeg tiff glob memalign

Missing options for linux-gnu:
dc1394v1 dc1394v2 ffmpeg lapack shared_ptr v4l1buffer

Dodgy things:
tr1_shared_ptr

SIMD support:
mmx mmxext sse sse2 sse3

Missing SIMD support for i686-pc-linux-gnu:

-fsee -funsafe-loop-optimizations -ffinite-math-only -fno-signed-zeros -fno-math-errno -funroll-loops -Wall -Wextra -pipe -ggdb -fPIC -mmmx -msse -msse -msse2 -msse3 -pthread
-ltiff -ljpeg -lpng -lpng -lGLU -lGL -lrt -pthread -lX11 -lXext
Generating config... diff: cvd/config.h: No such file or directory
New configuration
configure: creating ./config.status
config.status: creating Makefile
Makefile:405: .deps: No such file or directory
stefangachter commented 10 years ago

Hi Todd, As far as I remember, apart of different directory naming, I did the same as you did and it worked in my case, for whatever reason. I checked the differences between my local version and github, but there are no differences except for the two autogenerated files PTAMVIsualizeParams.cfg and PtamParams.cfg. Sorry, I am not much of help. Stefan

markusachtelik commented 10 years ago

you can try checking out #47 , this should make sure that the files get generated before ptam get built.

limhyon commented 10 years ago

Hi I have the same problem. I also checked out new commit by markus. Which thing generates that header file exactly?

These are steps that I am following:

Meekohi commented 10 years ago

I am having the same issue. Ubuntu 14.04 and ROS Indigo 1.11.9.

nplayle commented 10 years ago

Hi,

I have the same issue as well, however only when copying my modified version of ETHZ PTAM into the catkinized version of PTAM (I'll admit I'm not very familiar with ROS in general).

The messages the compiler is not finding are located at: catkin_test/src/ethzasl_ptam/ptam/cfg/cpp/ptam.

The solution I got to work was simply copying the header files into the default ETHZ PTAM header directory: catkin_test/src/ethzasl_ptam/ptam/include/ptam.

Obviously this is not a very clean solution but it works (and I didn't have to figure out why catkin wasn't finding the cfg directories). Keep in mind if you modify the reconfigure files you will have to re-copy the header files over again.

My build was working fine if I pulled it directly from github but if I tried with my modified version it failed to build (I have custom messages and modified the rqt reconfigure files a little).

acajic commented 8 years ago

I have the same issue.

[ 81%] Building CXX object ethzasl_ptam-master/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o
In file included from /home/andrija/ros_packages/src/ethzasl_ptam-master/ptam/src/CameraCalibrator.cc:5:0:
/home/andrija/ros_packages/src/ethzasl_ptam-master/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-master/ptam/CMakeFiles/cameracalibrator.dir/src/CameraCalibrator.cc.o] Error 1
make[1]: *** [ethzasl_ptam-master/ptam/CMakeFiles/cameracalibrator.dir/all] Error 2
make: *** [all] Error 2

Only I am not able to find the PtamParamsConfig.h anywhere in the downloaded repository.

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.