Skip to content
Snippets Groups Projects

Resolve "Windows: Linker errors with protobuf-generated code"

Merged Joscha Schmiedt requested to merge 90-windows-linker-errors-with-protobuf-generated-code into dev
2 files
+ 59
47
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 13
16
@@ -108,22 +108,19 @@ How to build on Windows
We use `Visual Studio
2022 <https://visualstudio.microsoft.com/de/vs/features/cplusplus/>`__
as compiler. We use `cmake <https://cmake.org/download/>`__ as build
tool.
1. Install Python and create a virtual environment with the dependencies in `requirements.txt`.
2. Activate the environment run in the repository folder: ``conan install . --build=missing -s build_type=Release``
3. ``cmake --preset conan-default``
4. Open ``build/liblinkahead.sln`` with Visual Studio, change the
buildtype to ``Release`` and build the project (ALL_BUILD). (You
can open Tools/Command Line/Developer Command Prompt and execute
``msbuild liblinkahead.sln /property:Configuration=Release``)
5. Try running the cli clients in ``.\build\Release\``.
Known problems
^^^^^^^^^^^^^^
- Building the unit tests on Windows currently fails with linker errors. See
`#90 <https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib/-/issues/90>`__
tool, which can be installed together with Visual Studio.
1. Install Python and create a virtual environment with the dependencies in
`requirements.txt`.
2. In a PowerShell, activate the environment and run the following commands from the
repository root:
3. ``conan profile detect --force`` (and check the output)
3. ``make.ps1 conan-install``
4. ``make.ps1 build``
You'll find the shared libraries and cli clients in ``.\build\Release\``. To run the tests,
use ``make.ps1 test``. As a shortcut to run all steps, use ``make.ps1 all``.
Troubleshooting
~~~~~~~~~~~~~~~
Loading