FreeCAD-LibPack icon indicating copy to clipboard operation
FreeCAD-LibPack copied to clipboard

Make sure that debug dlls of OCC have different file names than from release build

Open wwmayer opened this issue 2 years ago • 4 comments

With the latest LibPacks the debug and release dlls of OCC have the same file names. This makes it very difficult to make a debug build of FreeCAD to use the debug build of OCC.

OCC's CMake build scripts used to have an option where for the debug build the suffix "d" was added to the dlls.

wwmayer avatar Aug 20 '23 17:08 wwmayer

Thanks - is OCC the only library where we have to make this differentiation manually?

chennes avatar Aug 20 '23 20:08 chennes

Yes, I think so.

wwmayer avatar Aug 20 '23 23:08 wwmayer

OK - I'm working on a new LibPack that's got Qt6 and Python 3.11 in it, do you want me to also make a "backport" LibPack that updates the OCC but leaves everything else the same as the current LibPack?

chennes avatar Aug 21 '23 00:08 chennes

do you want me to also make a "backport" LibPack that updates the OCC but leaves everything else the same as the current LibPack?

The problem has been reported in the forum where mixing OCC release dlls with a FreeCAD debug build can lead to a crash: https://forum.freecad.org/viewtopic.php?p=700327#p700327

I for myself don't need it because I still use my older LibPack that doesn't suffer from this issue. But if you are already working on a new LibPack with Qt6 it doesn't harm to prepare a backport LibPack. But don't forget to also provide a new debug version of netgen/nglib then.

Thanks!

wwmayer avatar Aug 21 '23 10:08 wwmayer