Blub / netevent

Input-Event device cloning utility. Use it together with ssh/netcat/... to share input devices among different machines.
GNU General Public License v2.0
148 stars 14 forks source link

Can't build on SteamOS (Arch based) due to ... at least getopt.h #27

Closed Utopiah closed 2 years ago

Utopiah commented 2 years ago

Hi, first of all thanks for the project. Tried from Ubuntu to Raspbian as a quick test and worked right away.

Now I trying to do so between Raspbian (with a PiCade) to the SteamDeck to get the arcade controller running there.

Unfortunately, and that is probably due to my total lack of familiarity to Arch Linux in general. When I ssh to the SteamDeck, git clone there, ./configure then make I get :

deck@steamdeck netevent)$ make
clang++ -g -Wall -Werror -Wno-unknown-pragmas -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-packed  -std=c++14 -I. -c -o src/main.o src/main.cpp -MMD -MT src/main.o -MF src/main.d
src/main.cpp:8:10: fatal error: 'getopt.h' file not found
#include <getopt.h>
         ^~~~~~~~~~
1 error generated.
make: *** [Makefile:59: src/main.o] Error 1

I tried pacman -Sy base-devel but that didn't help.

I also checked https://wiki.archlinux.org/title/Steam_Deck but not specific pointer. I looked for packages with said header https://archlinux.org/packages/?q=getopt.h but 0 result.

Any suggestion appreciated.

PS: also asked on https://old.reddit.com/r/linuxquestions/comments/x33w8g/getopth_missing_while_trying_to_build_netevent_on/ in case more generic advice is preferred.

Utopiah commented 2 years ago

If anybody new to Arch also get stuck, seems like pacman -Fy headername.h is the way.

Utopiah commented 2 years ago

If interested here it the outcome https://twitter.com/utopiah/status/1565313431409934336

Feel free to use the GIF as a project visual if you believe it could be useful.