Recompilation fails after `make clean` (Bug #206)


Added by grzesiek grz almost 15 years ago. Updated almost 15 years ago.


Status:Done Start date:
Priority:Blocker Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Associated revisions

Revision 9c6eed0b
Added by Andrey Kamaev about 12 years ago

Merge pull request #206 from asmorkalov/manager_version_fix

Bug #2595 in OpenCV Manager fixed.

Revision d7f25d20
Added by Vadim Pisarevsky over 10 years ago

Merge pull request #206 from mshabunin:logistic-regression

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

Also available in: Atom PDF