Cannot build KinFu

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot build KinFu

VictorLamoine
Administrator
Hello,

I'm trying to build/run KinFu app, I'm using the latest PCL trunk and my computer is running Ubuntu 12.04.3 64 bits. CUDA examples run fine.

I'm facing an error :

[ 73%] Building CXX object gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/kinfu_app.cpp.o
/home/dell/pcl-trunk/gpu/kinfu/tools/kinfu_app.cpp:55:44: erreur fatale: pcl/visualization/image_viewer.h : Aucun fichier ou dossier de ce type
compilation terminée.
make[2]: *** [gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/kinfu_app.cpp.o] Erreur 1
make[1]: *** [gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/all] Erreur 2


image_viewer.h: No such file or directory.

I do have an image_viewer.h file :

~./pcl-trunk/visualization/include/pcl/visualization/image_viewer.h


Here are the include lines in file :

#include <pcl/visualization/image_viewer.h>
#include <pcl/visualization/pcl_visualizer.h>


So I copied my visualization folder from /usr/include/pcl-1.7/pcl/ to ~./pcl-trunk/include/pcl/. Kinfu compiled and is successfuly running
Looks like the include from pcl-trunk are not in the right folder. Is that a bug or does it comes from me ?

Now i'm getting this error :

[ 85%] Building CXX object tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/obj_rec_ransac_hash_table.cpp.o
/home/dell/pcl-trunk/tools/obj_rec_ransac_hash_table.cpp: In function ‘void visualize(const HashTable&)’:
/home/dell/pcl-trunk/tools/obj_rec_ransac_hash_table.cpp:218:40: erreur: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
/home/dell/pcl-trunk/include/pcl/visualization/pcl_visualizer.h:281:9: erreur:   initializing argument 2 of ‘void pcl::visualization::PCLVisualizer::addCoordinateSystem(double, int)’ [-fpermissive]
make[2]: *** [tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/obj_rec_ransac_hash_table.cpp.o] Erreur 1
make[1]: *** [tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/all] Erreur 2
make: *** [all] Erreur 2


Any help would be appreciated
Reply | Threaded
Open this post in threaded view
|

Re: Cannot build KinFu

Antoine Rennuit
The current trunk is broken, I tried to compile 2 or 3 days ago as well and it did not work either (same error). There is definitely a fix but I did it the quick and dirty way: I reset git to commit b6a8d005778a4fc0ba137acdde6d1fafe804da29 done 13/10/2013 at 19:16 pm (by rbrusu) which I knew was working.

Cheers,

Antoine.


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of VictorL
Sent: mardi 28 janvier 2014 14:32
To: [hidden email]
Subject: [PCL-users] Cannot build KinFu

Hello,

I'm trying to build/run KinFu app, I'm using the latest PCL trunk and my computer is running Ubuntu 12.04.3 64 bits. CUDA examples run fine.

I'm facing an error :
[ 73%] Building CXX object
gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/kinfu_app.cpp.o
/home/dell/pcl-trunk/gpu/kinfu/tools/kinfu_app.cpp:55:44: erreur fatale:
pcl/visualization/image_viewer.h : Aucun fichier ou dossier de ce type compilation terminée.
make[2]: *** [gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/kinfu_app.cpp.o]
Erreur 1
make[1]: *** [gpu/kinfu/tools/CMakeFiles/pcl_kinfu_app.dir/all] Erreur 2


image_viewer.h: No such file or directory.

I do have an image_viewer.h file :
~./pcl-trunk/visualization/include/pcl/visualization/image_viewer.h


Here are the include lines in file :
#include <pcl/visualization/image_viewer.h>
#include <pcl/visualization/pcl_visualizer.h>


So I copied my visualization folder from //usr/include/pcl-1.7/pcl// to /~./pcl-trunk/include/pcl//. Kinfu compiled and is successfuly running Looks like the include from pcl-trunk are not in the right folder. Is that a bug or does it comes from me ?

Now i'm getting this error :
[ 85%] Building CXX object
tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/obj_rec_ransac_hash_table.cpp.o
/home/dell/pcl-trunk/tools/obj_rec_ransac_hash_table.cpp: In function ‘void visualize(const HashTable&)’:
/home/dell/pcl-trunk/tools/obj_rec_ransac_hash_table.cpp:218:40: erreur:
invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
/home/dell/pcl-trunk/include/pcl/visualization/pcl_visualizer.h:281:9:
erreur:   initializing argument 2 of ‘void
pcl::visualization::PCLVisualizer::addCoordinateSystem(double, int)’
[-fpermissive]
make[2]: ***
[tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/obj_rec_ransac_hash_table.cpp.o]
Erreur 1
make[1]: *** [tools/CMakeFiles/pcl_obj_rec_ransac_hash_table.dir/all] Erreur
2
make: *** [all] Erreur 2


Any help would be appreciated



--
View this message in context: http://www.pcl-users.org/Cannot-build-KinFu-tp4031953.html
Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
_______________________________________________
[hidden email] / http://pointclouds.org http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Cannot build KinFu

Jochen Sprickerhof
Administrator
* Antoine Rennuit <[hidden email]> [2014-01-28 14:42]:
> The current trunk is broken, I tried to compile 2 or 3 days ago as well and it did not work either (same error). There is definitely a fix but I did it the quick and dirty way: I reset git to commit b6a8d005778a4fc0ba137acdde6d1fafe804da29 done 13/10/2013 at 19:16 pm (by rbrusu) which I knew was working.

I've pushed a fix for that yesterday, can you try the current master
(414b160)?

Cheers Jochen

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Cannot build KinFu

VictorLamoine
Administrator
Works for me with the fix ! Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Cannot build KinFu

Saiga
Also works for me now. U are a hero Jochen! Been trying to compile that code for over 3 weeks now.
Maarten Bassier
PhD Student Ku Leuven, SLAM