Skip to content
Snippets Groups Projects

Fix compilation errors on Windows

Merged Joscha Schmiedt requested to merge f-34-building-shared-libraries-on-windows-fails into dev
Files
12
+ 8
11
@@ -110,23 +110,20 @@ We use `Visual Studio
as compiler. We use `cmake <https://cmake.org/download/>`__ as build
tool.
1. clone/update the subrepo ``git submodule update --init proto``
2. :code:``conan install .. -g visual_studio -s arch=x86_64 -s build_type=Release -s compiler.toolset=v142 -s compiler.version=16 -s compiler.runtime=MD --build=missing --update``
3. ``cd build/Release``
5. ``cmake -B . ..``
6. open ``libcaosdb.sln`` with Visual Studio, change the buildtype to
``Release`` and build the project. (You can open Tools/Command
1. Install Python and create a virtual environment with the dependencies in `requirements.txt`.
2. Activate the environment run in the repository folder: :code:``conan install . - --build=missing -s build_type=Release``
3. ``cmake --preset conan-default``
4. Open ``libcaosdb.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 libcaosdb.sln /property:Configuration=Release``)
5. Try running the cli clients in ``.\build\Release\``.
Known problems
^^^^^^^^^^^^^^
- Linking dynamic libraries currently fails on Windows. So probably
other CaosDB libraries which make use of libcaosdb also will not
build. This is a known bug and we hope to fix this in the next
release. See
`#34 <https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib/-/issues/34>`__
- Building the unit tests on Windows currently fails with linker errors. See
`#90 <https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib/-/issues/90>`__
Troubleshooting
~~~~~~~~~~~~~~~
Loading