
Fri, 05/02/2025 - 16:11
Forums:
I have successfully built OCCT using Cmake, VS Code and Fedora linux 42, but when I try to run draw.sh, I get this error: “couldn't read file ‘/home/winet/Documents/OCCT/build/src/DrawResources/DrawDefault’: no such file or directory”. The problem is that I built OCCT with the “BUILD_RESOURCES” flag enabled. Supposedly, it should have copied the resources to src inside the build directory, but it didn't.
What am I doing wrong?
Sun, 05/04/2025 - 11:28
BUILD_RESOURCES
configuration option ("Enables regeneration of OCCT resource files" in description) has nothing to do with copying any files. What it does is regeneration of special textual resource files likesrc/Shaders/Shaders_Declarations_glsl.pxx
which are embedded directly into binaries (compiled as C++ constants) from their original files likesrc/Shaders/Shaders_Declarations_glsl
. This flag is useful only to developers of OCCT itself, when they modify such resources.draw.sh
within the build directory should configure environment variables like$DRAWDEFAULT
pointing to the source code of OCCT. AndINSTALL
target in CMake should copy resources to installation folder and generatedraw.sh
pointing variables to appropriate location.Cannot say what goes wrong in your case - try looking into generated
draw.sh
to see if there is something specious. And if you still have the problem - try sharing information about exact version of OCCT you are trying to build, how it is built, and if there are other OCCT versions already installed in the system.Tue, 05/06/2025 - 18:58
Dear Anatoly,
Do you use one of the latest "master"? If yes - please try to check V7_9_0 tag, master can have some issues after reorganization. From my side, on Ubuntu using "build" result were no issues. If not - just for my information, could you please share the version or commit hash?
As temporary option, could you please use result of "INSTALL", inside install folder will be own draw.sh.
Best regards, Dmitrii.