qtprotobuf icon indicating copy to clipboard operation
qtprotobuf copied to clipboard

Shared Lib option does not work for MSVC build

Open arth7s3 opened this issue 3 years ago • 3 comments

Build with option BUILD_SHARED_LIBS does not work for MSVC build. Build fails with multiple errors. Cannot build project DLLs, the only available option for qmake projects (since cannot statically integrate the project). Works fine on linux.

Build the project using MSVC: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat x64 mkdir build && cd build cmake .. -DBUILD_SHARED_LIBS=ON cmake --build . --config DEBUG -- /m:4

output: Todo - add ouput

arth7s3 avatar Feb 15 '22 10:02 arth7s3

Yeah it's a known issue, that's why CI only tests static builds with MSVC. For now all work in this repo is on hold. Will back to fixing this issue later on.

semlanik avatar Apr 07 '22 13:04 semlanik

Any prospects for revisiting this issue in the near term?

gmabey avatar Jul 18 '22 22:07 gmabey

Hi, I think not in the near term at least, but also the repo might be abandoned as soon as Qt6 will get the protobuf support.

semlanik avatar Jul 20 '22 09:07 semlanik