Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ar_sandbox_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
AR_Sandbox
ar_sandbox_lib
Commits
248f44a7
Commit
248f44a7
authored
4 years ago
by
simon.fanetti
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
89488e59
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+30
-5
30 additions, 5 deletions
README.md
with
30 additions
and
5 deletions
README.md
+
30
−
5
View file @
248f44a7
# Library Sandbox
## Assembly
-
A beamer and a monitor must be pluged to the pc (2 outputs needed for the calibration)
-
The camera must be pluged with an usb 3.0 extension (otherwise the resolution of the frames will be lowered)
## Depedencies
-
OS : Ubuntu 18.04
-
C++ : 11.0
...
...
@@ -9,16 +13,37 @@
-
yaml-cpp : https://github.com/jbeder/yaml-cpp @commit : 9fb51534877d16597cfd94c18890d87af0879d65
-
Qt : 5.9.5
## Makefiles
Flags for the linker availible throught the variable DEP_SANDBOX in file dep.mk
## Makefile
-
make lib : build the librairy
-
make apps : build the setup application
-
make clean : clean all generated files
## Makefile for applications
Examples can be found in the project ar_sandbox_app
### Compilation
You need to specify :
-
The path (can be relative) to the headers of the classes in the project with the parameter -I (this is an upper case i)
### Linker
You need to specify :
-
The path (can be relative) to the generated shared object library (file .so) with the parameter -L
-
The flag of the generated library (-lsandbox in our case)
-
The flags of the libraries used in the project for the linker, which are availible throught the variable DEP_SANDBOX in file dep.mk
## Before launching your application
-
LD_LIBRARY_PATH must contain the path to the directory containing libsandbox.so (which is generated in /build)
-
Enter this command in the terminal executing your applications
-
Enter the command below in the terminal executing your applications
-
Where $REALTIVE_PATH_TO_SO is the relative path to the generated file libsandbox.so from the current path of your terminal
```
export LD_LIBRARY_PATH=$(pwd)/$RELATIVE_PATH_TO_SO
```
-
Where $REALTIVE_PATH_TO_SO is the relative path to the generated file libsandbox.so from the current path of your terminal
-
Don't forget that LD_LIBRARY_PATH is local to each terminal
If the ld variable is not set correctly or the library is not generated, this error will show up :
```
/usr/bin/ld : cannot find -lsandbox
collect2: error: ld returned 1 exit status
```
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