ethzasl_ptam icon indicating copy to clipboard operation
ethzasl_ptam copied to clipboard

PTAM installation problem

Open limhyon opened this issue 11 years ago • 16 comments

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

These are steps that I am following:

  • Install fresh Ubuntu 14.04
  • Install ROS Indigo ( sudo apt-get install ros-indigo-desktop )
  • source /opt/ros/indigo/setup.bash
  • mkdir -p ~/catkin_ws/src
  • cd ~/catkin_ws/src
  • git clone https://github.com/ethz-asl/ethzasl_ptam
  • cd ../ && catkin_make

limhyon avatar Sep 15 '14 06:09 limhyon

I just mentioned this in another issue, but I'll post it here in case it helps.


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


I am running the same version (Ubuntu 14.04 and ROS indigo) The files are generated by dynamic reconfigure from the .py files in the .cfg directory. THey do have to be made executable (sudo chmod +x filename.py or through the file browser, right click, properties, permissions, allow execution...)

The line that generates the files is: generate_dynamic_reconfigure_options(cfg/PTAMVisualizerParams.cfg cfg/PtamParams.cfg) located in /src/ethzasl_ptam/ptam.

nplayle avatar Oct 20 '14 17:10 nplayle

Does the ethzasl_ptam support hydro or indigo? It's said only support fuerte&groovy from the wiki website

LiliMeng avatar Dec 12 '14 00:12 LiliMeng

I do not know if it supports hydro/indigo if you clone it directly from git.

That said, I am currently running ethzasl_ptam on indigo (and I have run it on hydro) and Ubuntu 14.04 LTS. It took a little bit of fiddling around but it does work in the end.

From: LiliMeng [mailto:[email protected]] Sent: December 11, 2014 6:07 PM To: ethz-asl/ethzasl_ptam Cc: nplayle Subject: Re: [ethzasl_ptam] PTAM installation problem (#48)

Does the ethzasl_ptam support hydro or indigo? It's said only support fuerte&groovy from the wiki website

— Reply to this email directly or view it on GitHub https://github.com/ethz-asl/ethzasl_ptam/issues/48#issuecomment-66712337 . https://github.com/notifications/beacon/AI4_yrXzp2__hxVmXFmej-NST_4TBgU7ks5nWikqgaJpZM4Ch7yD.gif

nplayle avatar Dec 12 '14 04:12 nplayle

As Lim reports above ptam is also working on Indigo. On Dec 12, 2014 9:07 AM, "LiliMeng" [email protected] wrote:

Does the ethzasl_ptam support hydro or indigo? It's said only support fuerte&groovy from the wiki website

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

simonlynen avatar Dec 12 '14 21:12 simonlynen

Hi! I have a problem of build the ptam package. These are steps that I am following: 1 Install Ubuntu 12.04 2 Install ROS groovy( sudo apt-get install ros-groovy-desktop-full) 3 mkdir -p ~/catkin_ws/src 4 cd ~/catkin_ws/src 5 catkin_init_workspace 6 cd ~/catkin_ws/src 7 git clone https://github.com/ethz-asl/ethzasl_ptam 8 cd ../ && catkin_make And then I have an error information.I do not know what is wrong with it . The error informations are as follows: -- Build files have been written to: /home/zl/catkin_ws/src/ethzasl_ptam/ptam/thirdparty/agast/build [100%] Built target agast [ 54%] Built target DEPS [ 56%] Built target ptam_visualizer Linking CXX executable /home/zl/catkin_ws/devel/lib/ptam/cameracalibrator [ 57%] Built target remote_ptam Linking CXX executable /home/zl/catkin_ws/devel/lib/ptam/ptam /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -llapack collect2: ld 返回 1 make[2]: *** [/home/zl/catkin_ws/devel/lib/ptam/cameracalibrator] 错误 1 make[1]: *** [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -llapack collect2: ld 返回 1 make[2]: *** [/home/zl/catkin_ws/devel/lib/ptam/ptam] 错误 1 make[1]: *** [ethzasl_ptam/ptam/CMakeFiles/ptam.dir/all] 错误 2 make: *** [all] 错误 2 Invoking "make" failed

dragonmind avatar Mar 12 '15 01:03 dragonmind

You have to install the blas and lapack packages for ubuntu.

On Thu, Mar 12, 2015, 02:39 dragonmind [email protected] wrote:

Hi! I have a problem of build the ptam package.

These are steps that I am following:

1.Install Ubuntu 12.04 2.Install ROS groovy( sudo apt-get install ros-groovy-desktop-full)

  1. mkdir -p ~/catkin_ws/src 4.cd ~/catkin_ws/src
  2. catkin_init_workspace 6.cd ~/catkin_ws/src 7.git clone https://github.com/ethz-asl/ethzasl_ptam 8.cd ../ && catkin_make And then I have an error information.I do not know what is wrong with it . The error informations are as follows: -- Build files have been written to: /home/zl/catkin_ws/src/ethzasl_ptam/ptam/thirdparty/agast/build [100%] Built target agast [ 54%] Built target DEPS [ 56%] Built target ptam_visualizer Linking CXX executable /home/zl/catkin_ws/devel/lib/ptam/cameracalibrator [ 57%] Built target remote_ptam Linking CXX executable /home/zl/catkin_ws/devel/lib/ptam/ptam /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -llapack collect2: ld 返回 1 make[2]: *** [/home/zl/catkin_ws/devel/lib/ptam/cameracalibrator] 错误 1 make[1]: *** [ethzasl_ptam/ptam/CMakeFiles/cameracalibrator.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -llapack collect2: ld 返回 1 make[2]: *** [/home/zl/catkin_ws/devel/lib/ptam/ptam] 错误 1 make[1]: *** [ethzasl_ptam/ptam/CMakeFiles/ptam.dir/all] 错误 2 make: *** [all] 错误 2 Invoking "make" failed

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

simonlynen avatar Mar 12 '15 06:03 simonlynen

Hi,I'm trying to install PTAM on ubuntu 14.04 and I have this error :

/usr/bin/ld: GLWindow2.o: référence au symbole non défini «glColorMask» //usr/lib/x86_64-linux-gnu/mesa/libGL.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [PTAM] Erreur 1

Any suggestion please? And, thank you.

5aou avatar May 06 '15 07:05 5aou

@5aou you need to install all system dependencies. You are missing: libglu-dev

simonlynen avatar May 06 '15 07:05 simonlynen

thank you for your answer, in fact I installed all system dependencies, I had just to add : LINKFLAGS = -L/usr/local/lib -lGVars3 -lcvd -lopencv_legacy -lopencv_core -lopencv_video -lopencv_highgui -lGLU -lGL -llapack -lblas in the Makefile. Now I have this errors : VideoSource_Linux_DV.cc:(.text+0xcf): référence indéfinie vers « CVD::DV3::RawDVBuffer3::RawDVBuffer3(CVD::DV3::DV3ColourSpace, int, unsigned long, int, bool, bool, CVD::ImageRef, float, CVD::ImageRef, int) » ......... the solution is presented here : http://forum.ubuntu-fr.org/viewtopic.php?pid=3478792 , is that I have to activate the raw1394 module,but I don't know how to do that.

5aou avatar May 06 '15 08:05 5aou

I thought I had the packages as well but I needed different ones: Make sure you have these three: sudo apt-get install freeglut3-dev sudo apt-get install libblas-dev sudo apt-get install liblapacke-dev

havi0019 avatar Jul 08 '15 15:07 havi0019

I had similar problem, that were resolved by: 1 - Installing freeglut3-dev, liblapacke-dev, liblapack3, libopenblas-base, libopenblas-dev using apt-get install. 2 - Installing Toon, libCVD and gvars3 using git clone, ./configure, make and make install;

then using catkin_ws with ptam successfully compiled and worked.

alexandrewillame avatar Sep 06 '15 17:09 alexandrewillame

alexandrewillame, I did like you specified and everything finally worked. Thank you.

acajic avatar Nov 06 '15 12:11 acajic

just cut the ptam, ptam_com, rqt_ptam folders from repository to src directory in catkin workspace before calling catkin_make you need to set variables by calling cd $catkin_ws . /opt/ros/indigo/setup.bash . ./devel/setup.bash catkin_make

then it will be compiled successfully. May it will help

haopo2005 avatar Apr 30 '16 07:04 haopo2005

Can confirm that doing alexandrewillame's steps worked for me.

bchu avatar Jul 06 '16 22:07 bchu

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

  • catkin_make ptam_gencfg

  • catkin_make

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:

  • Install Ubuntu 14.04
  • Install ros-indigo-desktop-full (http://wiki.ros.org/indigo/Installation/Ubuntu)
  • Install PTAM dependencies: >> sudo apt-get install git libblas-dev liblapack-dev freeglut3-dev
  • Create catkin_ws: >> mkdir -p ~/catkin_ws/src
  • Clone the ptam project into the src directory
  • Navigate to catkin_ws dir >> cd catkin_ws
  • Make the config files >> catkin_make ptam_gencfg
  • Make the ptam project >> catkin_make

Hopefully that helps some others as well.

aspears1935 avatar Jul 12 '16 16:07 aspears1935

Thank you very much.

karnkasin avatar Jul 29 '16 07:07 karnkasin