Thu, 11/11/2021 - 21:32
Forums:
i'm experimenting build occ on macos (various versions) ie. mojave, catalina, and big sur. i'd like to build OCC using debug symbols if that's even possible.
i'll be blunt i'm quite new to C++ but have worked with Xcode in the past where i could build a project in a debug mode that would provide .dsym
related files for displaying signatures in the aid of debugging.
i'm building OCC using macos homebrew presently, and added the below cmake arg
-DCMAKE_BUILD_TYPE=DEBUG
however adding the arg seems produce the exact project structure ie. prefix regardless if add the above arg or not.
What am i doing wrong?
Thu, 11/11/2021 - 22:25
.dsym is relatively "new" feature - it requires extra efforts from build system to support generation of these files. Without modifications of CMake scripts, debug build on macOS and Linux platforms would normally generate dynamic libraries of larger size using DWARF format
Indeed, the libraries on your screenshot have the same size. Make sure to make a clean rebuild (without artifacts of previous release build to see the difference) and check for "libd" folder (e.g. "lib" with "d" suffix), which is commonly used by OCCT for debug builds.