A tested Ubuntu/Debian copy pasta, if you don't want to loose too much time searching all the good packages ;)
cd
sudo apt update
sudo apt upgrade -y
sudo apt install -y git libssl-dev make cmake build-essential libcurlpp-dev libusb-1.0-0-dev libcurl4-openssl-dev libprotoc-dev pkg-config libtool autoconf libprotobuf-c-dev
git clone https://github.com/ryanbinns/ttwatch && cd ttwatch
mkdir build && cd build
cmake .. && make && sudo make install
echo $? # should return 0!
Then follow the instruction to access your watch as non root user + for my part ttwatch --set-formats=gpx as export format as it is a common one for others activity tracking services.
I have a problem with lib-protobuf.
protobuf_c_message_get_packed_size and other functions are not found when I do make install with Ubuntu 22.04.3 LTS and all package installed.
A tested Ubuntu/Debian copy pasta, if you don't want to loose too much time searching all the good packages ;)
Then follow the instruction to access your watch as non root user + for my part
ttwatch --set-formats=gpx
as export format as it is a common one for others activity tracking services.