semlanik / qtprotobuf

Protobuf generator and bindings for Qt framework
https://semlanik.github.io/qtprotobuf
MIT License
169 stars 38 forks source link

Shared Lib option does not work for MSVC build #264

Open arth7s3 opened 2 years ago

arth7s3 commented 2 years ago

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

semlanik commented 2 years ago

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.

gmabey commented 2 years ago

Any prospects for revisiting this issue in the near term?

semlanik commented 2 years ago

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.