The app tracks a large number of events to a given collector.
The app uses the tracker library imported using a CMake target.
First, install the Conan package manager.
On macOS, you can install via Homebrew: brew install conan
# cd into the root of this repository
cd snowplow-cpp-tracker
# install the dependencies into the `install` folder
conan install examples -b missing -of install/cmake -pr:b=default -pr:h=default -s build_type=Debug -g=CMakeDeps -o system_curl_uuid=FalseThis will build the tracker into the build-tracker folder.
It will install then install the tracker in the install folder set using the DCMAKE_INSTALL_PREFIX attribute.
cmake -S . -B build-tracker -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DSNOWPLOW_USE_EXTERNAL_JSON=1 -DSNOWPLOW_USE_EXTERNAL_SQLITE=0 -DSNOWPLOW_BUILD_TESTS=0 -DSNOWPLOW_BUILD_EXAMPLE=0 -DSNOWPLOW_BUILD_PERFORMANCE=0 -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=1 -DBUILD_SHARED_LIBS=1cmake --build build-tracker --target install --config DebugMake sure that DCMAKE_INSTALL_PREFIX points to the folder that you chose to install the tracker library above.
# cd into the root of this repository
cd snowplow-cpp-tracker
cmake -S examples -B build-app -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Debug -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=1cmake --build build-app --config DebugRun the app from the build-app folder given the collector URL:
cd build-app
./snowplow-example http://localhost:9090