Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Steam Deck: fails to build, missing headers #8

@Razwerkz

Description

@Razwerkz

What went wrong here?

g++ -g -O1 -std=c++11 -o overlay overlay.cpp gason.cpp json_message.cc socket.cc -lX11 -lXfixes -lXext -Wall
In file included from /usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/c++config.h:655,
                 from /usr/include/c++/12.2.0/iostream:38,
                 from overlay.cpp:19:
/usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory
   39 | #include <features.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from gason.h:24,
                 from gason.cpp:22:
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/stdint.h:9:16: fatal error: stdint.h: No such file or directory
    9 | # include_next <stdint.h>
      |                ^~~~~~~~~~
compilation terminated.
In file included from /usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/c++config.h:655,
                 from /usr/include/c++/12.2.0/string:38,
                 from json_message.cc:16:
/usr/include/c++/12.2.0/x86_64-pc-linux-gnu/bits/os_defines.h:39:10: fatal error: features.h: No such file or directory
   39 | #include <features.h>
      |          ^~~~~~~~~~~~
compilation terminated.
In file included from socket.cc:15:
socket.hh:22:10: fatal error: unistd.h: No such file or directory
   22 | #include <unistd.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:2: overlay] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions