Skip to content
Snippets Groups Projects
Commit 2a3ae983 authored by Joscha Schmiedt's avatar Joscha Schmiedt
Browse files

Update build instructions for Win32

parent 375b9df3
No related branches found
No related tags found
2 merge requests!61Release 0.3.0,!48Fix compilation errors on Windows
Pipeline #54418 passed with warnings
Pipeline: caosdb-julialib

#54423

    Pipeline: CaosDB Octave library

    #54422

      Pipeline: caosdb-cppinttest

      #54419

        ...@@ -110,23 +110,20 @@ We use `Visual Studio ...@@ -110,23 +110,20 @@ We use `Visual Studio
        as compiler. We use `cmake <https://cmake.org/download/>`__ as build as compiler. We use `cmake <https://cmake.org/download/>`__ as build
        tool. tool.
        1. clone/update the subrepo ``git submodule update --init proto`` 1. Install Python and create a virtual environment with the dependencies in `requirements.txt`.
        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`` 2. Activate the environment run in the repository folder: :code:``conan install . - --build=missing -s build_type=Release``
        3. ``cd build/Release`` 3. ``cmake --preset conan-default``
        5. ``cmake -B . ..`` 4. Open ``libcaosdb.sln`` with Visual Studio, change the buildtype to
        6. open ``libcaosdb.sln`` with Visual Studio, change the buildtype to ``Release`` and build the project (ALL_BUILD). (You can open Tools/Command
        ``Release`` and build the project. (You can open Tools/Command
        Line/Developer Command Prompt and execute Line/Developer Command Prompt and execute
        ``msbuild libcaosdb.sln /property:Configuration=Release``) ``msbuild libcaosdb.sln /property:Configuration=Release``)
        5. Try running the cli clients in ``.\build\Release\``.
        Known problems Known problems
        ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^
        - Linking dynamic libraries currently fails on Windows. So probably - Building the unit tests on Windows currently fails with linker errors. See
        other CaosDB libraries which make use of libcaosdb also will not `#90 <https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib/-/issues/90>`__
        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>`__
        Troubleshooting Troubleshooting
        ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Finish editing this message first!
        Please register or to comment