Problems with GDExtension setup on SteamOS

Godot Version

4.3

Question

HI all,
I am a hobbist developer relatively new to Godot and Linux in general. Please, forgive my clumsiness.

I am following the oficial GDExtension C++ Example. I got stuck at godot-cpp compilation time. As far as I understand, gcc does not find standard c++ headers

In file included from gdextension/gdextension_interface.h:39,
                 from include/godot_cpp/core/class_db.hpp:34,
                 from src/core/class_db.cpp:31:
/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next <stdint.h>
      |                ^~~~~~~~~~

I have checked that the missing files exist in the specified paths

I reinstalled gcc-libs anyway
sudo pacman -Ss gcc-libs

I have searched into scons and gcc documentation with no luck. I found some instructions for gcc but since it is invoked from scons I have no control over it.

Any clue on this? I am getting crazy
Thanks in advance

A kind Steam user pointed me to the solution:

sudo pacman --sync --noconfirm base-devel glibc linux-api-headers

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.