SITUATION:
After updating the SVN repository of MRPT to revision 2651 (or newer) you may have errors like these:
svn: Failed to add file 'samples/captureVideoFFmpeg/CMakeLists.txt': an unversioned file of the same name already exists (or any other:) svn: Failed to add file 'samples/.../CMakeLists.txt': an unversioned file of the same name already exists
If never built MRPT with BUILD_EXAMPLES=ON this error won't affect you.
SOLUTION:
The easiest workaround is to delete the entire directory {MRPT_SOURCE_DIR}/samples and issuing a new svn update command, which will recreate everything as needed.
REASON OF THIS CHANGE:
Since the origin of times, the CMakeLists.txt files in the directories samples/*/ were not uploaded to the SVN repository but generated "on the fly" from some templates when the user checked BUILD_EXAMPLES=ON.
However, those scripts were intended to live within the main MRPT source tree and that caused a lots of problems to users not experienced with CMake.
In the new way, all CMakeLists.txt files are ready to be copied to a new directory and serve as a base for developing user programs from the examples code.
I'm sorry for the incoveniences this change may cause, but was something that would have been done sooner or later.
Comments
Alternative solution from
Alternative solution from command line
svn update --force
Re
Good point!