wmayer wrote: ↑Fri Aug 18, 2023 6:04 pm
As advised last time you should make a debug build of FreeCAD in a separate directory, copy the dlls of the bin directory of the LibPack to the bin sub-directory of the build directory and then copy over the OCC debug dlls of the bind directory.
So, assuming that I want to start from scratch, I have to:
1. Download (clone) the source code to
FreeCAD_compiled\FreeCAD
2. Set that directory as "Where is the source code" in CMake, then set "Where to build the binaries" to
FreeCAD_compiled\build
3. Run Configure, set the Libpack path as FREECAD_LIBPACK_DIR and set the install directory (CMAKE_INSTALL_PREFIX) to
FreeCAD_compiled\install, run Configure again, run Generate
4. Open project in Visual Studio, set Debug here:
- debug.png (3.93 KiB) Viewed 677 times
5. Build ALL_BUILD
6. Copy all files from
LibPack-0.21-V2.9\bin (or just the ones from
LibPack-0.21-V2.9\bin\DLLs ?) to
FreeCAD_compiled\build\bin
7. Copy all files from
LibPack-0.21-V2.9\bind to
FreeCAD_compiled\build\bin
8. Build INSTALL
9. Run FreeCAD from
FreeCAD_compiled\install\bin\FreeCAD_d.exe
Is that correct or are there some steps missing here ? Do I also need a separate release build if I just want to test the newly merged features ?
Sorry if I messed it all up, I'm not familiar with this stuff and I just want to find the easiest reliable way to build FreeCAD from the source code (official or someone's fork).