DiscussionsIssue archiveOCCT:Configuration

Archived issue #0028057

Compilation fails

CommunityOCCT:Configurationclosed4 public notes

Search issues

Description

Since [revision removed] there is a problem with compilation:


Scanning dependencies of target TKGeomAlgo
[ 18%] Building CXX object src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/__/IntPatch/IntPatch_ALineToWLine.cxx.obj
D:/OpenCascade/Occt/src/IntPatch/IntPatch_ALineToWLine.cxx:23:38: fatal error: IntPatch_SpecialPoints.hxx: No such file or directory
compilation terminated.
src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/build.make:1563: recipe for target 'src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/__/IntPatch/IntPatch_ALineToWLine.cxx.obj' failed
mingw32-make[2]: *** [src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/__/IntPatch/IntPatch_ALineToWLine.cxx.obj] Error 1
CMakeFiles/Makefile2:430: recipe for target 'src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/all' failed
mingw32-make[1]: *** [src/TKGeomAlgo/CMakeFiles/TKGeomAlgo.dir/all] Error 2
makefile:127: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Public activity

4 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Dear Author.

Our team has not faced with this problem yet (OCCT with said commit has already been built by me, testers and many other developers).

Therefore, please check your work version carefully. Do the files IntPatch_SpecialPoints.hxx, IntPatch_SpecialPoints.cxx, IntPatch_SpecPntType.hxx really exist(it must be in src\IntPatch directory)?

These files are really new (previous OCCT version did not contain them).

After you will check, please rebuild new OCCT version completely (including project files generation with CMake - please see https://dev.opencascade.org/doc/overview/html/occt_dev_guides__building.html).

If it does not help please do not hesitate to ask me again.

02Author
Dear nbv,

thanks for your answer. After executing CMake - Generate indeed compilation succeeds. I am surprised because I have thought that CMake does necessary reconfigurations automatically. Also there has never been a compilation error like that here, but probably that is because new header files are rarely added to OCCT?

Anyway, now it works. Thank you.

Benjamin
03Commenter 3
Dear Commenter 1,

Please close this issue.
04Author
Hmmm, I am not well familiar with CMake, but a quick check has led me to
http://stackoverflow.com/questions/28250081/when-should-i-rerun-cmake.
There they state that it should never be necessary to manually re-run CMake if the configure scripts are well written...