Recompilation fails after `make clean` (Bug #206)
Description
Hi,
It seems that makefile generated by cmake is invalid. I'm unable to rebuild sources, because of lack of essential files after make clean
. For example:
Scanning dependencies of target cxcore_pch_dephelp
[ 2%] Building CXX object src/cxcore/CMakeFiles/cxcore_pch_dephelp.dir/cxcore_pch_dephelp.o
/home/grzesiek22/libopencv/svn/opencv/src/cxcore/cxcore_pch_dephelp.cxx:1:81: error: /home/grzesiek22/libopencv/svn/opencv/src/cxcore/_cxcore.h: No such file or directory
Regards,
Grzesiek
Related issues
duplicated by Bug #258: make clean deletes wrong files | Cancelled |
History
Updated by grzesiek grz almost 15 years ago
This refer to current svn version - 2872.
Updated by anonymous - almost 15 years ago
looks like the problem only appears when the build directory is the same as the source directory, which is considered a bad practice anyway. By doing out-of-source build, e.g. as shown below, you do not get into this problem:
===
cd opencv
mkdir ../opencv.build/release
cd ../opencv.build/release
cmake <options> ../opencv
make -j 2
make clean
make -j 2
===
- Status changed from Open to Done
- (deleted custom field) set to worksforme