cv2pdb icon indicating copy to clipboard operation
cv2pdb copied to clipboard

Anyone has tried to port this project to work on Linux?

Open sameehj opened this issue 6 years ago • 5 comments

Hi,

This project is great, but once your build system is on linux, then this would break the pipeline and would require windows machine just for generating the pdbs for mingw artifacts.

Did anyone attempt to port this to run on Linux before? What are the challenges in doing so?

I think that mingw can be used for getting the windows headers.

Please share your thoughts and experiences

sameehj avatar Nov 07 '18 11:11 sameehj

Sorry for the late reply, it somehow slipped through the cracks.

A crucial part of the work is done by a Microsoft library (mspdb*.dll), i.e. generating the PDB file from the different pieces of debug information. I doubt that it's worthwhile reimplementing it. You might find some inspiration in LLVM/LLD, though, as these projects are actually capable of generating PDB files, too.

If you want to run this on Linux as is, reaching for wine would be my first try.

rainers avatar Nov 10 '18 08:11 rainers

@sameehj I think this has been addressed, no? Unless you want to adapt code from https://github.com/microsoft/microsoft-pdb/ to avoid using mspdb*.dll. But that would be such a big ask that you would probably have to tackle this project yourself.

dscho avatar Dec 11 '21 11:12 dscho

If you want to run this on Linux as is, reaching for wine would be my first try.

seems to be completely broken. I failed to get anything except useless "cannot create PDB file" error, tried with mspdb80 form msvc8, but remember it worked successfully on 32 bit binaries few years ago, but maybe with different mspdb versions

mittorn avatar Jun 22 '23 17:06 mittorn

IIRC you will also need mspdbsrv.exe and other DLLs, e.g. msobj80.dll nd mspdbcore.dll.

rainers avatar Jun 22 '23 20:06 rainers

It's present. And i checked it (with same libraries) on server 2008, it worked. Maybe it's wine regression as it worked few years ago (some rpcrt bug or x64-related)

mittorn avatar Jun 24 '23 14:06 mittorn