Hi all,
I installed PCL on my computer with Ubuntu 12.04 LTS. I followed instructions found here: http://pointclouds.org/downloads/linux.html
I wanted to try the first tutorial found here: http://pointclouds.org/documentation/tutorials/writing_pcd.php#writing-pcd
Then I typed this commands on terminal to generate CodeBlocks project: cmake -G"CodeBlocks - Unix Makefiles" /home/.../dev/PCL/CMakeLists.txt
and I got the CodeBlocks project. I compiled it without errors, but when I try to run it says: You can't "run" a commands-only target...
What is the problem with CodeBlocks?
Thank you a lot in advance!!
I got this:
-------------- Build: all in Project ---------------
Running command: /usr/bin/make -f "/home/.../PCL/Makefile" VERBOSE=1 all
/usr/bin/cmake -H/home/.../PCL -B/home/.../PCL --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/.../PCL/CMakeFiles /home/.../PCL/CMakeFiles/progress.marks
/usr/bin/make -f CMakeFiles/Makefile2 all
make[1]: ingresso nella directory "/home/.../PCL"
/usr/bin/make -f CMakeFiles/pcd_write_test.dir/build.make CMakeFiles/pcd_write_test.dir/depend
make[2]: ingresso nella directory "/home/.../PCL"
cd /home/.../PCL && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/.../PCL /home/.../PCL /home/saverio/Sviluppo/PCL/CMakeFiles/pcd_write_test.dir/DependInfo.cmake --color=
make[2]: uscita dalla directory "/home/.../PCL"
/usr/bin/make -f CMakeFiles/pcd_write_test.dir/build.make CMakeFiles/pcd_write_test.dir/build
make[2]: ingresso nella directory "/home/.../PCL"
make[2]: Nessuna operazione da eseguire per "CMakeFiles/pcd_write_test.dir/build".
make[2]: uscita dalla directory "/home/.../PCL"
/usr/bin/cmake -E cmake_progress_report /home/.../PCL/CMakeFiles 1
[100%] Built target pcd_write_test
make[1]: uscita dalla directory "/home/.../PCL"
/usr/bin/cmake -E cmake_progress_start /home/.../PCL/CMakeFiles 0
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
So, how to solve?
I run it using the terminal:
make
[100%] Built target pcd_write_test
***@asusM51se:~/.../PCL$ ./pcd_write_test
Saved 5 data points to test_pcd.pcd.
0.352222 -0.151883 -0.106395
-0.397406 -0.473106 0.292602
-0.731898 0.667105 0.441304
-0.734766 0.854581 -0.0361733
-0.4607 -0.277468 -0.916762
It works well.
So there is a problem in the setting of CB. Could you help me to understand why I get this error?