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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cpplib
Commits
8acc60a5
Verified
Commit
8acc60a5
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
DOC: update README_SETUP
parent
4a738a7a
No related branches found
No related tags found
1 merge request
!3
Better Error Handling and Logging
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README_SETUP.md
+20
-1
20 additions, 1 deletion
README_SETUP.md
with
20 additions
and
1 deletion
README_SETUP.md
+
20
−
1
View file @
8acc60a5
...
...
@@ -8,7 +8,8 @@
We use
[
cmake
](
https://cmake.org
)
as build tool.
1.
`mkdir build && cd build/`
0.
clone/update the subrepo
`git submodule update --init proto`
1.
`mkdir build && cd build`
2.
`conan install .. -s "compiler.libcxx=libstdc++11"`
3.
`cmake -B . ..`
4.
`cmake --build .`
...
...
@@ -38,6 +39,7 @@ variable.
We use
[
Visual Studio 2019
](
https://visualstudio.microsoft.com/de/vs/features/cplusplus/
)
as compiler. We use
[
cmake
](
https://cmake.org/download/
)
as build tool.
0.
clone/update the subrepo
`git submodule update --init proto`
1.
`mkdir build`
2.
`cd build`
3.
`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`
...
...
@@ -46,6 +48,23 @@ as compiler. We use [cmake](https://cmake.org/download/) as build tool.
and build the project. (You can open Tools/Command Line/Developer Command
Prompt and execute
`msbuild libcaosdb.sln /property:Configuration=Release`
)
### Creating a Local Conan Build ##
Building and installing libcaosdb with Conan is just a single command:
`conan create . -s "compiler.libcxx=libstdc++11"`
For MacOS, you probably should adjust the option as mentioned above.
### Troubleshooting
#### `conan install` Fails Due to Missing Prebuilts
When
`conan install`
fails during the installation of the dependencies because
a precompiled package is not available for your specific settings, try adding
the
`--build=missing`
option:
`conan install .. [ other options
] --build=missing`
. This should download and compile the sources of the
dependencies.
## Unit Tests
### Build
...
...
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