can't build on Debian Sid, missing cstdint includes for Pangolin
When trying to build basalt on Debian Sid as follows I unfortunately get some build errors:
$ git clone --recursive https://gitlab.freedesktop.org/mateosss/basalt.git
[...]
$ cd basalt
$ ./scripts/install_deps.sh
[...]
$ cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBASALT_BUILD_SHARED_LIBRARY_ONLY=on
user@ArgOS-Augen:~/dev/VR/basalt$ cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBASALT_BUILD_SHARED_LIBRARY_ONLY=on
-- Found ccache: /usr/bin/ccache
-- Detected Linux with gcc.
-- Found Eigen headers in: /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen
-- Found TBB 2021.11 (interface version 12110) headers in: /usr/include
-- Found OpenCV 4.6.0 headers in: /usr/include/opencv4
-- Found OpenCV_LIBS: opencv_core;opencv_imgproc;opencv_calib3d;opencv_highgui
-- Found {fmt} 9.1.0 in: /usr/lib/x86_64-linux-gnu/cmake/fmt
-- Including internal Eigen from submodule
-- Performing Test COMPILER_SUPPORT_std=cpp03
-- Performing Test COMPILER_SUPPORT_std=cpp03 - Success
-- Standard libraries to link to explicitly: none
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found, so disabling the mandelbrot and opengl demos
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDES CHOLMOD_LIBRARIES)
-- Could NOT find UMFPACK (missing: UMFPACK_INCLUDES UMFPACK_LIBRARIES)
-- Could NOT find KLU (missing: KLU_INCLUDES KLU_LIBRARIES)
-- Could NOT find SuperLU (missing: SUPERLU_INCLUDES SUPERLU_LIBRARIES SUPERLU_VERSION_OK) (Required is at least version "4.0")
-- Checking for one of the modules 'hwloc'
-- A version of Pastix has been found but pastix_nompi.h does not exist in the include directory. Because Eigen tests require a version without MPI, we disable the Pastix backend.
--
-- Configured Eigen 3.4.0
--
-- Available targets (use: cmake --build . --target TARGET):
-- ---------+--------------------------------------------------------------
-- Target | Description
-- ---------+--------------------------------------------------------------
-- install | Install Eigen. Headers will be installed to:
-- | <CMAKE_INSTALL_PREFIX>/<INCLUDE_INSTALL_DIR>
-- | Using the following values:
-- | CMAKE_INSTALL_PREFIX: /usr
-- | INCLUDE_INSTALL_DIR: include/eigen3
-- | Change the install location of Eigen headers using:
-- | cmake . -DCMAKE_INSTALL_PREFIX=yourprefix
-- | Or:
-- | cmake . -DINCLUDE_INSTALL_DIR=yourdir
-- doc | Generate the API documentation, requires Doxygen & LaTeX
-- blas | Build BLAS library (not the same thing as Eigen)
-- uninstall| Remove files installed by the install target
-- ---------+--------------------------------------------------------------
--
-- Using Eigen3 from: /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen (include: $<BUILD_INTERFACE:/home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen>;$<INSTALL_INTERFACE:include/eigen3>)
-- Including internal Sophus from submodule
CMake Deprecation Warning at thirdparty/basalt-headers/thirdparty/Sophus/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Turning basic logging OFF
-- Using Sophus from: /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/Sophus (include: $<BUILD_INTERFACE:/home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/Sophus>;$<INSTALL_INTERFACE:include>)
-- Including internal Cereal from submodule
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: serialization
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using cereal from: /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/cereal (include: $<BUILD_INTERFACE:/home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/cereal/include>;$<INSTALL_INTERFACE:include>)
CMake Deprecation Warning at thirdparty/ros/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.83.0/BoostConfig.cmake (found version "1.83.0") found components: date_time filesystem program_options regex
CMake Deprecation Warning at thirdparty/opengv/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at thirdparty/Pangolin/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found GLEW: /usr/lib/x86_64-linux-gnu/libGLEW.so
-- Eigen Found and Enabled
-- libdc1394 Found and Enabled
-- V4L Found and Enabled
-- libuvc Found and Enabled
-- libpng Found and Enabled
-- libjpeg Found and Enabled
-- libtiff Found and Enabled
-- libzstd Found and Enabled
-- liblz4 Found and Enabled
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/user/dev/VR/basalt/build
$ cmake --build build
[...]
user@ArgOS-Augen:~/dev/VR/basalt$ cmake --build build [4/10] Building CXX object thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream.cpp.o
FAILED: thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream.cpp.o
/usr/bin/ccache /usr/bin/c++ -DFMT_DEPRECATED_OSTREAM=1 -I/home/user/dev/VR/basalt/thirdparty/Pangolin/include -I/home/user/dev/VR/basalt/build/thirdparty/Pangolin/src/include -isystem /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen -Wall -Wno-error=deprecated-declarations -Wall -Wextra -Wall -Wextra -Wno-error=unused-parameter -ftemplate-backtrace-limit=0 -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -fdiagnostics-color=always -Wno-error=deprecated-copy -Wno-parentheses -DEIGEN_DONT_PARALLELIZE -march=native -O3 -DNDEBUG -std=c++14 -fPIC -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-deprecated-copy -Wno-parentheses -MD -MT thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream.cpp.o -MF thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream.cpp.o.d -o thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream.cpp.o -c /home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp
In file included from /home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:32,
from /home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:1:
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:7:22: error: ‘uint32_t’ does not name a type
7 | using pangoTagType = uint32_t;
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:1:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
+++ |+#include <cstdint>
1 | #pragma once
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:25:7: error: ‘uint32_t’ does not name a type
25 | const uint32_t TAG_PANGO_HDR = PANGO_TAG('L', 'I', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:25:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:26:7: error: ‘uint32_t’ does not name a type
26 | const uint32_t TAG_PANGO_MAGIC = PANGO_TAG('P', 'A', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:26:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:27:7: error: ‘uint32_t’ does not name a type
27 | const uint32_t TAG_PANGO_SYNC = PANGO_TAG('S', 'Y', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:27:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:28:7: error: ‘uint32_t’ does not name a type
28 | const uint32_t TAG_PANGO_STATS = PANGO_TAG('S', 'T', 'A');
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:28:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:29:7: error: ‘uint32_t’ does not name a type
29 | const uint32_t TAG_PANGO_FOOTER = PANGO_TAG('F', 'T', 'R');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:29:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:30:7: error: ‘uint32_t’ does not name a type
30 | const uint32_t TAG_ADD_SOURCE = PANGO_TAG('S', 'R', 'C');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:30:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:31:7: error: ‘uint32_t’ does not name a type
31 | const uint32_t TAG_SRC_JSON = PANGO_TAG('J', 'S', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:31:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:32:7: error: ‘uint32_t’ does not name a type
32 | const uint32_t TAG_SRC_PACKET = PANGO_TAG('P', 'K', 'T');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:32:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:33:7: error: ‘uint32_t’ does not name a type
33 | const uint32_t TAG_END = PANGO_TAG('E', 'N', 'D');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:33:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:88:5: error: ‘pangoTagType’ does not name a type
88 | pangoTagType peekTag();
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:90:5: error: ‘pangoTagType’ does not name a type
90 | pangoTagType readTag();
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:92:5: error: ‘pangoTagType’ does not name a type
92 | pangoTagType readTag(pangoTagType);
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:94:5: error: ‘pangoTagType’ does not name a type
94 | pangoTagType syncToTag();
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:100:5: error: ‘pangoTagType’ does not name a type
100 | pangoTagType _tag;
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h: In member function ‘void pangolin::PacketStream::cclear()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:106:9: error: ‘_tag’ was not declared in this scope
106 | _tag = 0;
| ^~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: In member function ‘size_t pangolin::PacketStream::readUINT()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:10:5: error: ‘uint32_t’ was not declared in this scope
10 | uint32_t shift = 0;
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:2:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
1 | #include <pangolin/log/packetstream.h>
+++ |+#include <cstdint>
2 | #include <stdexcept>
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:13:28: error: ‘shift’ was not declared in this scope
13 | n |= (v & 0x7F) << shift;
| ^~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:19:30: error: ‘shift’ was not declared in this scope
19 | return n | (v & 0x7F) << shift;
| ^~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: At global scope:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:29:1: error: ‘pangoTagType’ does not name a type
29 | pangoTagType PacketStream::readTag()
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:36:1: error: ‘pangoTagType’ does not name a type
36 | pangoTagType PacketStream::readTag(pangoTagType x)
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:44:1: error: ‘pangoTagType’ does not name a type
44 | pangoTagType PacketStream::peekTag()
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: In member function ‘char pangolin::PacketStream::get()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:58:5: error: ‘_tag’ was not declared in this scope
58 | _tag = 0;
| ^~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: In member function ‘size_t pangolin::PacketStream::read(char*, size_t)’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:64:5: error: ‘_tag’ was not declared in this scope
64 | _tag = 0;
| ^~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: In member function ‘std::streampos pangolin::PacketStream::tell ()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:82:9: error: ‘_tag’ was not declared in this scope
82 | if (_tag) {
| ^~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: At global scope:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:105:19: error: ‘pangoTagType’ was not declared in this scope
105 | static bool valid(pangoTagType t)
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:124:1: error: ‘pangoTagType’ does not name a type
124 | pangoTagType PacketStream::syncToTag() //scan through chars one by one until the last three look like a tag
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: In member function ‘std::streampos pangolin::PacketStream::tell ()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:87:1: warning: control reaches end of non-void function [-Wreturn-type]
87 | }
| ^
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp: At global scope:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream.cpp:105:13: warning: ‘pangolin::valid’ defined but not used [-Wunused-variable]
105 | static bool valid(pangoTagType t)
| ^~~~~
[5/10] Building CXX object thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/image/image_io_jpg.cpp.o
FAILED: thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/image/image_io_jpg.cpp.o
/usr/bin/ccache /usr/bin/c++ -DFMT_DEPRECATED_OSTREAM=1 -I/home/user/dev/VR/basalt/thirdparty/Pangolin/include -I/home/user/dev/VR/basalt/build/thirdparty/Pangolin/src/include -isystem /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen -Wall -Wno-error=deprecated-declarations -Wall -Wextra -Wall -Wextra -Wno-error=unused-parameter -ftemplate-backtrace-limit=0 -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -fdiagnostics-color=always -Wno-error=deprecated-copy -Wno-parentheses -DEIGEN_DONT_PARALLELIZE -march=native -O3 -DNDEBUG -std=c++14 -fPIC -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-deprecated-copy -Wno-parentheses -MD -MT thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/image/image_io_jpg.cpp.o -MF thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/image/image_io_jpg.cpp.o.d -o thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/image/image_io_jpg.cpp.o -c /home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp: In function ‘pangolin::TypedImage pangolin::LoadJpg(std::istream&)’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp:187:13: error: ‘uint8_t’ was not declared in this scope
187 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y);
| ^~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp:11:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
10 | # include <jpeglib.h>
+++ |+#include <cstdint>
11 | # ifdef _WIN_
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp:187:22: error: ‘dstRow’ was not declared in this scope
187 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y);
| ^~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/image/image_io_jpg.cpp:187:40: error: expected primary-expression before ‘)’ token
187 | uint8_t* dstRow = (uint8_t*)image.RowPtr(y);
| ^
[6/10] Building CXX object thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream_writer.cpp.o
FAILED: thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream_writer.cpp.o
/usr/bin/ccache /usr/bin/c++ -DFMT_DEPRECATED_OSTREAM=1 -I/home/user/dev/VR/basalt/thirdparty/Pangolin/include -I/home/user/dev/VR/basalt/build/thirdparty/Pangolin/src/include -isystem /home/user/dev/VR/basalt/thirdparty/basalt-headers/thirdparty/eigen -Wall -Wno-error=deprecated-declarations -Wall -Wextra -Wall -Wextra -Wno-error=unused-parameter -ftemplate-backtrace-limit=0 -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -fdiagnostics-color=always -Wno-error=deprecated-copy -Wno-parentheses -DEIGEN_DONT_PARALLELIZE -march=native -O3 -DNDEBUG -std=c++14 -fPIC -Wno-implicit-fallthrough -Wno-stringop-truncation -Wno-deprecated-copy -Wno-parentheses -MD -MT thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream_writer.cpp.o -MF thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream_writer.cpp.o.d -o thirdparty/Pangolin/src/CMakeFiles/pangolin.dir/log/packetstream_writer.cpp.o -c /home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp
In file included from /home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:32,
from /home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_writer.h:30,
from /home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:26:
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:7:22: error: ‘uint32_t’ does not name a type
7 | using pangoTagType = uint32_t;
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:1:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
+++ |+#include <cstdint>
1 | #pragma once
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:25:7: error: ‘uint32_t’ does not name a type
25 | const uint32_t TAG_PANGO_HDR = PANGO_TAG('L', 'I', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:25:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:26:7: error: ‘uint32_t’ does not name a type
26 | const uint32_t TAG_PANGO_MAGIC = PANGO_TAG('P', 'A', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:26:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:27:7: error: ‘uint32_t’ does not name a type
27 | const uint32_t TAG_PANGO_SYNC = PANGO_TAG('S', 'Y', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:27:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:28:7: error: ‘uint32_t’ does not name a type
28 | const uint32_t TAG_PANGO_STATS = PANGO_TAG('S', 'T', 'A');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:28:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:29:7: error: ‘uint32_t’ does not name a type
29 | const uint32_t TAG_PANGO_FOOTER = PANGO_TAG('F', 'T', 'R');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:29:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:30:7: error: ‘uint32_t’ does not name a type
30 | const uint32_t TAG_ADD_SOURCE = PANGO_TAG('S', 'R', 'C');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:30:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:31:7: error: ‘uint32_t’ does not name a type
31 | const uint32_t TAG_SRC_JSON = PANGO_TAG('J', 'S', 'N');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:31:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:32:7: error: ‘uint32_t’ does not name a type
32 | const uint32_t TAG_SRC_PACKET = PANGO_TAG('P', 'K', 'T');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:32:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:33:7: error: ‘uint32_t’ does not name a type
33 | const uint32_t TAG_END = PANGO_TAG('E', 'N', 'D');
| ^~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_tags.h:33:7: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:88:5: error: ‘pangoTagType’ does not name a type
88 | pangoTagType peekTag();
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:90:5: error: ‘pangoTagType’ does not name a type
90 | pangoTagType readTag();
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:92:5: error: ‘pangoTagType’ does not name a type
92 | pangoTagType readTag(pangoTagType);
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:94:5: error: ‘pangoTagType’ does not name a type
94 | pangoTagType syncToTag();
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:100:5: error: ‘pangoTagType’ does not name a type
100 | pangoTagType _tag;
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h: In member function ‘void pangolin::PacketStream::cclear()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream.h:106:9: error: ‘_tag’ was not declared in this scope
106 | _tag = 0;
| ^~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_writer.h: At global scope:
/home/user/dev/VR/basalt/thirdparty/Pangolin/include/pangolin/log/packetstream_writer.h:149:50: error: ‘pangoTagType’ does not name a type
149 | inline void writeTag(std::ostream& writer, const pangoTagType tag)
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::WriteHeader()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:59:23: error: ‘TAG_PANGO_HDR’ was not declared in this scope
59 | writeTag(_stream, TAG_PANGO_HDR);
| ^~~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::Write(const pangolin::PacketStreamSource&)’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:79:23: error: ‘TAG_ADD_SOURCE’ was not declared in this scope
79 | writeTag(_stream, TAG_ADD_SOURCE);
| ^~~~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::WriteMeta(pangolin::PacketStreamSourceId, const picojson::value&)’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:107:23: error: ‘TAG_SRC_JSON’ was not declared in this scope
107 | writeTag(_stream, TAG_SRC_JSON);
| ^~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::WriteSourcePacket(pangolin::PacketStreamSourceId, const char*, int64_t, size_t, const picojson::value&)’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:121:23: error: ‘TAG_SRC_PACKET’ was not declared in this scope
121 | writeTag(_stream, TAG_SRC_PACKET);
| ^~~~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::WriteSync()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:140:23: error: ‘TAG_PANGO_SYNC’ was not declared in this scope
140 | writeTag(_stream, TAG_PANGO_SYNC);
| ^~~~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp: In member function ‘void pangolin::PacketStreamWriter::WriteEnd()’:
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:150:23: error: ‘TAG_PANGO_STATS’ was not declared in this scope
150 | writeTag(_stream, TAG_PANGO_STATS);
| ^~~~~~~~~~~~~~~
/home/user/dev/VR/basalt/thirdparty/Pangolin/src/log/packetstream_writer.cpp:152:23: error: ‘TAG_PANGO_FOOTER’ was not declared in this scope
152 | writeTag(_stream, TAG_PANGO_FOOTER);
| ^~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.