FreeCAD / FreeCAD-LibPack

Library collection to compile FreeCAD on Windows
GNU Lesser General Public License v2.1
27 stars 11 forks source link

two problems:fmt and .pdb #7

Closed zhouji963 closed 3 weeks ago

zhouji963 commented 1 year ago

1.When debugging, fmt has an error. After checking, it is found that the debug configuration file is missing under the folder “LibPack-0.21-V2.10\lib\cmake\fmt” 2.Unable to perform Python/Native Debugging in VS,because .pdb files are missing in the following location,: LibPack-0.21-V2.10\bin\ LibPack-0.21-V2.10\DLLs\ LibPack-0.21-V2.10\bin\Lib\vebv\scripts\nt

Could you improve these two problems ? Thank you!

My English is not good, please forgive me!

tmksw commented 11 months ago

I also observed an issue withlibfmt in debug mode. In Visual Studio for debug configuration I got following error:

fmt.lib(format.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cxx_extensions.obj
fmt.lib(format.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cxx_extensions.obj

However release build works as expected.

DamonsJ commented 10 months ago

same for me! miss fmtd.lib which is fmt's debug library. compile fmt by myself and replace the fmt.lib in debug mode , this will fix the problem

adrianinsaval commented 4 months ago

is this still a problem in the latest libpack? @zhouji963

chennes commented 3 weeks ago

At present LibPack 3 only supports compiling in Release and RelWithDebInfo modes. We plan to add debug support in the future, pending getting a working debug build of numpy. I'm going to close this ticket since it related to LibPack 2, which is no longer supported.