Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cpplib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
383b3889
Commit
383b3889
authored
11 months ago
by
Joscha Schmiedt
Browse files
Options
Downloads
Patches
Plain Diff
Update build instructions for vcpkg
- include manual copy of grpc-cpp-plugin
parent
1d84a449
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!61
Release 0.3.0
,
!53
Add vcpkg support
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/Install_develop.rst
+10
-3
10 additions, 3 deletions
doc/Install_develop.rst
vcpkg.json
+1
-6
1 addition, 6 deletions
vcpkg.json
with
11 additions
and
9 deletions
doc/Install_develop.rst
+
10
−
3
View file @
383b3889
...
@@ -22,7 +22,7 @@ which have ``make`` installed, type this in your command line terminal:
...
@@ -22,7 +22,7 @@ which have ``make`` installed, type this in your command line terminal:
Building with ``vcpkg``
Building with ``vcpkg``
~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
Y
ou can use the vcpkg package manager to install the dependencies (`vcpkg.json`). It's included as
Instead of Conan, y
ou can use the vcpkg package manager to install the dependencies (`vcpkg.json`). It's included as
a submodule in the project. To install the dependencies, run the following commands:
a submodule in the project. To install the dependencies, run the following commands:
.. code:: console
.. code:: console
...
@@ -31,12 +31,19 @@ a submodule in the project. To install the dependencies, run the following comma
...
@@ -31,12 +31,19 @@ a submodule in the project. To install the dependencies, run the following comma
vcpkg/vcpkg install
vcpkg/vcpkg install
Copy the ``grpc-cpp-plugin`` to the build directory (TODO: This should ideally be done automatically by CMake):
.. code:: console
mkdir -p build/build_tools
cp vcpkg_installed/<os>/tools/grpc/grpc_cpp_plugin build/build_tools
Then compile the project with CMake by including the vcpkg toolchain file:
Then compile the project with CMake by including the vcpkg toolchain file:
.. code:: console
.. code:: console
cd build
cd build
cmake -S .. -B . -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
cmake -S .. -B . -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
-DCMAKE_BUILD_TYPE=Release
cmake --build .
cmake --build .
...
@@ -49,7 +56,7 @@ package manager. The compiler must support the C++17 standard.
...
@@ -49,7 +56,7 @@ package manager. The compiler must support the C++17 standard.
1. clone/update the subrepo ``git submodule update --init proto``
1. clone/update the subrepo ``git submodule update --init proto``
2. ``conan install . -s build_type=Release --build=missing``
2. ``conan install . -s build_type=Release --build=missing``
3. ``cd build/Release``
3. ``cd build/Release``
4. ``cmake
.
``
4. ``cmake
-S ../.. -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=generators/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release
``
5. ``cmake --build .``
5. ``cmake --build .``
You may also want to install libcaosdb system-wide to
You may also want to install libcaosdb system-wide to
...
...
This diff is collapsed.
Click to expand it.
vcpkg.json
+
1
−
6
View file @
383b3889
...
@@ -5,12 +5,7 @@
...
@@ -5,12 +5,7 @@
"description"
:
"C++ library for the CaosDB project"
,
"description"
:
"C++ library for the CaosDB project"
,
"license"
:
"AGPL-3.0-or-later"
,
"license"
:
"AGPL-3.0-or-later"
,
"dependencies"
:
[
"dependencies"
:
[
"boost-beast"
,
"boost"
,
"boost-filesystem"
,
"boost-json"
,
"boost-log"
,
"boost-smart-ptr"
,
"boost-thread"
,
"grpc"
,
"grpc"
,
"protobuf"
,
"protobuf"
,
"zlib"
,
"zlib"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment