Fri, 03/08/2024 - 16:57
Forums:
Dear Development Team,
I am currently trying to follow Lesson 3: "Compile OpenCascade with MFC samples," but I am encountering a CMake error when building with MFC.
The error message is as follows:
CMake Error at samples/mfc/standard/mfcsample/CMakeLists.txt:123 (add_library):
Cannot find source file:
C:/Users/95439/source/repos/arungoooo112/OCCT/samples/mfc/standard/Common/User_Cylinder.hxx
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
I cannot find the file “User_Cylinder.hxx” in source code.
I hope you can provide some assistance and tell me how to solve this problem.
Looking forward to your reply,
Fri, 03/08/2024 - 17:17
I downloaded this file "User_Cylinder.hxx" from the internet and fixed this bug, but then these problems appeared:
Do I also need to separately download the files
05_ImportExport/src/ColoredShapes.cpp
and08_HLR/src/HLRApp.cpp
?Sat, 03/09/2024 - 06:06
Later, I modified the CMakeLists.txt of porject ImportExport like the picture bellow.
It seems work.
: )