tum-vision / tum_ardrone

Repository for the tum_ardrone ROS package, implementing autonomous flight with PTAM-based visual navigation for the Parrot AR.Drone.
http://wiki.ros.org/tum_ardrone
GNU General Public License v3.0
226 stars 192 forks source link

Error in stateestimation catkin_make #25

Open jayden118 opened 10 years ago

jayden118 commented 10 years ago

Hi,

I'm amazed by your ardrone projects and I bought a ardrone and compile codes (catkin) follow your instructions.

but during the compiling, I always get the following error:

/home/arlxps/catkin_ws/src/tum_ardrone/src/stateestimation/GLWindow2.cc: In member function ‘void GLWindow2::SetupWindowOrtho()’: /home/arlxps/catkin_ws/src/tum_ardrone/src/stateestimation/GLWindow2.cc:106:17: error: cannot convert ‘CVD::ImageRef’ to ‘GLdouble {aka double}’ for argument ‘1’ to ‘void glOrtho(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)’ make[2]: * [tum_ardrone/CMakeFiles/drone_stateestimation.dir/src/stateestimation/GLWindow2.cc.o] Error 1 make[2]: * Waiting for unfinished jobs.... [ 91%] Built target trainMarkerBundle make[1]: * [tum_ardrone/CMakeFiles/drone_stateestimation.dir/all] Error 2 make: * [all] Error 2

Can you please help me and give me some hints how to fix this error?

p/s: I have installd TooN, and reconfigure the libcvd too. But no luck too.

Your help is highly appreciated. Look forward for your reply.

Thank you in advanced.

regards, jayden

lesire commented 10 years ago

Could you give more information on the branch you use, your ROS version, your OS version, your gcc (or other compiler) version?

jayden118 commented 10 years ago

Hi Lesire,

Thank your for your reply. Please refer my answer as below:

  1. ROS version: 1.10.2
  2. OS version: Ubuntu 13.04
  3. Branch: Hydro
  4. gcc version: 4.7.3

Any hints to fix the problem? Thank you in advanced.

regards, jayden

jayden118 commented 10 years ago

Hi Lesire,

Thank your for your reply. Please refer my answer as below:

  1. ROS version: 1.10.2
  2. OS version: Ubuntu 13.04
  3. Branch: Hydro
  4. gcc version: 4.7.3

Any hints to fix the problem? Thank you in advanced.

regards, jayden

On Tue, May 6, 2014 at 1:01 AM, Charles Lesire-Cabaniols < notifications@github.com> wrote:

Could you give more information on the branch you use, your ROS version, your OS version, your gcc (or other compiler) version?

— Reply to this email directly or view it on GitHubhttps://github.com/tum-vision/tum_ardrone/issues/25#issuecomment-42210591 .

rohanbhargava11 commented 10 years ago

The error seems similar to the one mention here . http://ewokrampage.wordpress.com/troubleshooting-faq/

Are you compiling libcvd and TooN independently?

catkin_make should compile libcvd and TooN for you.

jayden118 commented 10 years ago

Hi @rohanbhargava11,

Yes. I compiled the libcvd and TooN independently because there is miss TooN lib error previously.

Should I delete all the libraries and reinstall again?

rohanbhargava11 commented 10 years ago

Okay lets try this. Delete the libraries and let catkin_make compile the libraries for you.

So in the ros workspace where you have tum_ardrone run catkin_make.

This command should compile everything for you. Let me know if you face any problems with this command.

I have tested the package on Ubuntu 13.04 with hydro and it compiles fine.

jayden118 commented 10 years ago

Dear Rohan,

Thank you very much for your reply. I will try to do it and hopefully I'm able to compile it.

On Wed, May 21, 2014 at 6:30 PM, Rohan Bhargava notifications@github.comwrote:

Okay lets try this. Delete the libraries and let catkin_make compile the libraries for you.

So in the ros workspace where you have tum_ardrone run catkin_make.

This command should compile everything for you. Let me know if you face any problems with this command.

I have tested the package on Ubuntu 13.04 with hydro and it compiles fine.

— Reply to this email directly or view it on GitHubhttps://github.com/tum-vision/tum_ardrone/issues/25#issuecomment-43738564 .

rohanbhargava11 commented 10 years ago

@jayden118 Is this issue been resolved? If yes please close it