-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from ibois-epfl/after_cmake_merge_guli
After cmake merge
- Loading branch information
Showing
6 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,29 @@ They are made to be print as stickers. The code to generate them can be found ![ | |
<br /> | ||
|
||
|
||
## Build | ||
## System dependecies | ||
AC needs some local libraries already installed before compilation with cmake. | ||
|
||
Before start you will need many dependencies but the largest will be opencv `4.5.5`. Be sure to have installed this version in your local system. | ||
|
||
Next we need glm dependencies and libraries: | ||
```bash | ||
sudo apt-get -y install libmpfr-dev libboost-dev libgoogle-glog-dev \ | ||
freeglut3-dev libglew-dev libglfw3 libglfw3-dev \ | ||
git-lfs libassimp-dev libglm-dev libimgui-dev | ||
``` | ||
|
||
For tbb and opencv you will also need these: | ||
```bash | ||
sudo apt -y install build-essential cmake git pkg-config libgtk-3-dev \ | ||
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \ | ||
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \ | ||
gfortran openexr libatlas-base-dev python3-dev python3-numpy \ | ||
libtbb2 libtbb-dev libdc1394-dev libopenexr-dev \ | ||
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev | ||
``` | ||
|
||
## Build & run | ||
Cloning the repo with submodules | ||
```bash | ||
git clone --recursive [email protected]:ibois-epfl/augmented-carpentry.git | ||
|
@@ -190,17 +212,23 @@ git submodule sync | |
git pull --recurse-submodules | ||
``` | ||
|
||
If it is the first time you are installing AC, set all the dependecies options in the `CMakeLists.txt` file to **ON**. | ||
Next you need to pull the PyTorch dependency with the Large File System in git, to do this: | ||
```bash | ||
cd deps/TTool | ||
git lfs pull | ||
``` | ||
|
||
Time to build.. If you are deploying on a touch monitor set the flag `-DDEPLOY_ON_TOUCH=ON`, you can config: | ||
|
||
```bash | ||
./cmake/install_TSlam.sh (Although CMakeList.txt run this when INSTALL_TSLAM option is on, you might need to install TSlam with this command manually as its need sudo priviledge) | ||
./cmake/install_TTool.sh | ||
./configure.sh (or ./configure.sh -c for cleaning out the build folder) | ||
./build.sh # or cmake --build . --target AC | ||
cd augmented-carpentry | ||
cmake -S . -B build | ||
cmake --build build | ||
``` | ||
|
||
To run the code: | ||
```bash | ||
./run.sh | ||
./build/bin/AC | ||
``` | ||
|
||
## How to contribute | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ download_submodule_project(TTool) | |
|
||
set(TTOOL_BUILD_TTOOL_EXE OFF) | ||
add_subdirectory(deps/TTool) | ||
|
||
find_package(Torch) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters