Build the project by running the following commands.
Build the project by running the following commands (note that Mac provides both `logicalcpu` and `physicalcpu`, but we want the logical number for maximum speed).
@@ -12,14 +12,20 @@ You can quickly add your custom code into this folder so that quick prototypes c
...
@@ -12,14 +12,20 @@ You can quickly add your custom code into this folder so that quick prototypes c
1. Install/compile OpenPose as usual.
1. Install/compile OpenPose as usual.
2. Add your custom *.cpp / *.hpp files here,. Hint: You might want to start by copying the [OpenPoseDemo](../openpose/openpose.cpp) example or any of the [examples/tutorial_api_cpp/](../tutorial_api_cpp/) examples. Then, you can simply modify their content.
2. Add your custom *.cpp / *.hpp files here,. Hint: You might want to start by copying the [OpenPoseDemo](../openpose/openpose.cpp) example or any of the [examples/tutorial_api_cpp/](../tutorial_api_cpp/) examples. Then, you can simply modify their content.
3. Add the name of your custom *.cpp / *.hpp files at the top of the [examples/user_code/CMakeLists.txt](./CMakeLists.txt) file.
3. Add the name of your custom *.cpp / *.hpp files at the top of the [examples/user_code/CMakeLists.txt](./CMakeLists.txt) file.
4. Re-compile OpenPose.
4. Re-compile OpenPose. Depending on your OS, that means...
- Ubuntu:
```
```
# Ubuntu/Mac
cd build/
cd build/
make -j`nproc`
make -j`nproc`
# Windows
# Close Visual Studio, re-run CMake, and re-compile the project in Visual Studio
```
```
- Mac:
```
cd build/
make -j`sysctl -n hw.logicalcpu`
```
- Windows: Close Visual Studio, re-run CMake, and re-compile the project in Visual Studio.
5.**Run step 4 every time that you make changes into your code**.
5.**Run step 4 every time that you make changes into your code**.