armory3d / armortools

3D Content Creation Tools
https://armorpaint.org
Other
3.15k stars 332 forks source link

Cannot build for Linux #1697

Closed WhitleyStriber closed 4 months ago

WhitleyStriber commented 4 months ago

ArmorPaint version: Development

OS/device including version: Gentoo Linux

Issue description:

fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[3/4] clang++ -std=c++17 -O2 -I../../../armorcore/v8/include -I../../../armorcore/Libraries/nfd/include -I../../../../../../usr/include/gtk-3.0 -I../../../../../../usr/include/glib-2.0 -I../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../../../../../usr/include/pango-1.0 -I../../../../../../usr/include/cairo -I../../../../../../usr/include/gdk-pixbuf-2.0 -I../../../../../../usr/include/atk-1.0 -I../../../../../../usr/lib64/glib-2.0/include -I../../../../../../usr/lib/glib-2.0/include -I../../../../../../usr/include/harfbuzz -I../../../armorcore/Libraries/tinydir/include -I../../../armorcore/Libraries/zlib -I../../../armorcore/Libraries/stb -I../../../armorcore/Kinc/Sources -I../../../armorcore/Kinc/Backends/System/Linux/Sources -I../../../armorcore/Kinc/Backends/System/POSIX/Sources -I../wayland -I../../../armorcore/Kinc/Backends/Graphics4/OpenGL/Sources -I../../../armorcore/Kinc/Backends/Graphics5/G5onG4/Sources -DWITH_EVAL -DWITH_G2 -DWITH_IRON -DWITH_ZUI -DKINC_NO_WAYLAND -DWITH_NFD -DWITH_TINYDIR -DWITH_ZLIB -DWITH_STB_IMAGE_WRITE -DIDLE_SLEEP -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LZ4X -DKORE_OPENGL -DKINC_EGL -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DWITH_PLUGIN_EMBED -DTINYUSDZ_NO_STB_IMAGE_IMPLEMENTATION -DNDEBUG -MD -MF io_usd.o.d -c ../../Plugins/Sources/io_usd/io_usd.cc -o io_usd.o
FAILED: io_usd.o 
clang++ -std=c++17 -O2 -I../../../armorcore/v8/include -I../../../armorcore/Libraries/nfd/include -I../../../../../../usr/include/gtk-3.0 -I../../../../../../usr/include/glib-2.0 -I../../../../../../usr/lib/x86_64-linux-gnu/glib-2.0/include -I../../../../../../usr/include/pango-1.0 -I../../../../../../usr/include/cairo -I../../../../../../usr/include/gdk-pixbuf-2.0 -I../../../../../../usr/include/atk-1.0 -I../../../../../../usr/lib64/glib-2.0/include -I../../../../../../usr/lib/glib-2.0/include -I../../../../../../usr/include/harfbuzz -I../../../armorcore/Libraries/tinydir/include -I../../../armorcore/Libraries/zlib -I../../../armorcore/Libraries/stb -I../../../armorcore/Kinc/Sources -I../../../armorcore/Kinc/Backends/System/Linux/Sources -I../../../armorcore/Kinc/Backends/System/POSIX/Sources -I../wayland -I../../../armorcore/Kinc/Backends/Graphics4/OpenGL/Sources -I../../../armorcore/Kinc/Backends/Graphics5/G5onG4/Sources -DWITH_EVAL -DWITH_G2 -DWITH_IRON -DWITH_ZUI -DKINC_NO_WAYLAND -DWITH_NFD -DWITH_TINYDIR -DWITH_ZLIB -DWITH_STB_IMAGE_WRITE -DIDLE_SLEEP -DKORE_G1 -DKORE_G2 -DKORE_G3 -DKORE_A1 -DKORE_A2 -DKORE_LZ4X -DKORE_OPENGL -DKINC_EGL -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -DKORE_G4 -DKORE_G5 -DKORE_G5ONG4 -DWITH_PLUGIN_EMBED -DTINYUSDZ_NO_STB_IMAGE_IMPLEMENTATION -DNDEBUG -MD -MF io_usd.o.d -c ../../Plugins/Sources/io_usd/io_usd.cc -o io_usd.o
In file included from ../../Plugins/Sources/io_usd/io_usd.cc:1:
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:59:15: error: use of undeclared identifier 'uint8_t'
   59 |   std::vector<uint8_t> data;
      |               ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:107:20: error: unknown type name 'uint32_t'
  107 |   constexpr static uint32_t n = N;
      |                    ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:123:26: error: use of undeclared identifier 'uint16_t'
  123 | using Vec4h = std::array<uint16_t, 4>;
      |                          ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:124:26: error: use of undeclared identifier 'uint16_t'
  124 | using Vec3h = std::array<uint16_t, 3>;
      |                          ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:125:26: error: use of undeclared identifier 'uint16_t'
  125 | using Vec2h = std::array<uint16_t, 2>;
      |                          ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:135:26: error: use of undeclared identifier 'uint16_t'
  135 | using Quath = std::array<uint16_t, 4>;
      |                          ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:259:25: error: unknown type name 'uint8_t'
  259 |   explicit ListOpHeader(uint8_t b) : bits(b) {}
      |                         ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:280:3: error: unknown type name 'uint8_t'
  280 |   uint8_t bits;
      |   ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:511:35: error: unknown type name 'uint32_t'
  511 |   ValueType(const std::string &n, uint32_t i, bool a)
      |                                   ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:598:52: error: use of undeclared identifier 'uint8_t'
  598 |   Value(const ValueType &_dtype, const std::vector<uint8_t> &_data)
      |                                                    ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:600:52: error: use of undeclared identifier 'uint8_t'
  600 |   Value(const ValueType &_dtype, const std::vector<uint8_t> &_data,
      |                                                    ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:601:9: error: unknown type name 'uint64_t'
  601 |         uint64_t _array_length)
      |         ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:638:22: error: unknown type name 'uint32_t'
  638 |   void SetUInt(const uint32_t i) {
      |                      ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:654:24: error: unknown type name 'uint64_t'
  654 |   void SetUInt64(const uint64_t i) {
      |                        ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:709:23: error: unknown type name 'Vec2h'
  709 |   void SetVec2h(const Vec2h v) {
      |                       ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:741:23: error: unknown type name 'Vec3h'
  741 |   void SetVec3h(const Vec3h v) {
      |                       ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:773:23: error: unknown type name 'Vec4h'
  773 |   void SetVec4h(const Vec4h v) {
      |                       ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:781:23: error: unknown type name 'Quath'
  781 |   void SetQuath(const Quath v) {
      |                       ^
../../Plugins/Sources/io_usd/tinyusdz/tinyusdz.hh:852:28: error: unknown type name 'uint32_t'
  852 |   void SetPermission(const uint32_t d) {
      |                            ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.
Build time: 0m 0s
Compilation failed.
Error: Compile error

I followed the instructions here.

System Information:

clang version 17.0.6 Linux 6.7.4-gentoo-dist gcc version 13.2.1 20240113 (Gentoo 13.2.1_p20240113-r1 p12) ninja 1.11.1

luboslenco commented 4 months ago

Linking with issues at https://github.com/armory3d/armortools/issues/1671, thanks for additional info.