Ask Your Question

Revision history [back]

I'm using ROS Indigo distribution, I have tried to do the same in my computer and I got the following error:

CMake Error: The current CMakeCache.txt directory /home/marcoarruda/catkin_02/build/CMakeCache.txt is different than the directory /home/marcoarruda/catkin_01/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt

Then, I have removed the folders build and devel from catkin_02 and tried to compile again. It worked!

I don't think the compilation problem is related to that, but it's also important to remove any source catkin_01/devel/setup.bash instruction (maybe you have added to your .bashrc file)

I'm using ROS Indigo distribution, I have tried to do the same in my computer and I got the following error:

CMake Error: The current CMakeCache.txt directory /home/marcoarruda/catkin_02/build/CMakeCache.txt is different than the directory /home/marcoarruda/catkin_01/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt

Then, I have removed the folders build and devel from catkin_02 and tried to compile again. It worked!

I don't think the compilation problem is related to that, but it's also important to remove any source catkin_01/devel/setup.bash instruction (maybe you have added to your .bashrc file)

I've created a video showing the steps to reproduce and solve it (https://youtu.be/Lg_oM4vFIEs).