The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
cmake -G"CodeBlocks - Unix Makefiles" /home/.../dev/PCL/CMakeLists.txt
Hi all,I installed PCL on my computer with Ubuntu 12.04 LTS. I followed instructions found here: http://pointclouds.org/downloads/linux.htmlI wanted to try the first tutorial found here: http://pointclouds.org/documentation/tutorials/writing_pcd.php#writing-pcdThen I typed this commands on terminal to generate CodeBlocks project: Codecmake -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!!
-------------- 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 allmake[1]: ingresso nella directory "/home/.../PCL"/usr/bin/make -f CMakeFiles/pcd_write_test.dir/build.make CMakeFiles/pcd_write_test.dir/dependmake[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/buildmake[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_testmake[1]: uscita dalla directory "/home/.../PCL"/usr/bin/cmake -E cmake_progress_start /home/.../PCL/CMakeFiles 0Process terminated with status 0 (0 minutes, 0 seconds)0 errors, 0 warnings
make[100%] Built target pcd_write_test***@asusM51se:~/.../PCL$ ./pcd_write_testSaved 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
So there is a problem in the setting of CB. Could you help me to understand why I get this error?
Quote from: fastkit on December 08, 2013, 08:13:01 pm[...] You can't "run" a commands-only target...What is the problem with CodeBlocks?It's most likely not a problem with Code::Blocks, but with the cmake-generated project-file.Try to change the type of the project in "Project -> Properties -> Build targets" for the problematic build targets and fix the patha nd name of the executable (if needed).If this works the cmake conf-file is not correct and generates a command-only-target instead of console or gui or whatever you need.
[...] You can't "run" a commands-only target...What is the problem with CodeBlocks?
It's most likely not a problem with Code::Blocks, but with the cmake-generated project-file.Try to change the type of the project in "Project -> Properties -> Build targets" for the problematic build targets and fix the patha nd name of the executable (if needed).If this works the cmake conf-file is not correct and generates a command-only-target instead of console or gui or whatever you need.