Impact Subsea SDK example app written in C++17
- Open Microsoft Visual Studios and click
Continue without code
. - Open the
CmakeLists.txt
file from the menuFile->Open->CMake..
- Select the startup object from the dropdown green compile and run button.
- Click the Compile / Run button.
-
Make sure you have
cmake
installed. -
Clone the git repo onto your local storage.
-
Change into root repo directory:
$ cd sdkExample
-
Clone the git submodules.
$ git submodule update --init --recursive --remote
-
Create a new build directory and change into it:
$ mkdir build $ cd build
-
Run cmake on the parent directory to generate makefile:
$ cmake -DCMAKE_BUILD_TYPE=Debug .. or $ cmake -DCMAKE_BUILD_TYPE=Release ..
-
Run make on the generated makefile to generate the static library:
$ make
If using windows
$ cmake --build .
-
Run the exe in the folder sdkExample/build/bin/
-
If on Linux make sure the app has permission to access the serial ports:
$ sudo usermod -a -G dialout YOUR_USER_NAME