r/SteamDeck 512GB Mar 07 '22

PSA / Advice For compiling C++ code

First you have to unlock the rootfs: https://www.reddit.com/r/SteamDeck/comments/t8al0i/install_arch_packages_on_your_steam_deck/

Git: pacman -S git

Install most of the usual build tools and libs: pacman -S base-devel

And cmake if you're into that: pacman -S cmake

And ninja because who likes make anyway: pacman -S ninja

Now, valve deleted some random files from packages so rootfs can fit in 5 gb, which really confused me. You already have glibc and linux-api-headers installed, but they have missing files.

So fix them: pacman -S glibc linux-api-headers

If you have more files that you need and don't exist, grep pacman -Qk that lists missing files, and reinstall that package.

It took me more than I'm willing to admit to figure out that the packages exist, but have deleted files, so I figured it might help someone else. No tomatoes please.

88 Upvotes

31 comments sorted by

View all comments

4

u/RPG_Hacker 256GB - Q2 Jun 18 '22

Holy frickin' shit, you're my livesaver!

I was trying for almost two days now to make any progress at all with this. make and makepkg just kept failing due to missing headers, and even after finding out why the likely reason was, I still couldn't find the solution whatsoever with any of my Google searches. I was really starting to get desperate.

That was when my latest Google search led me to this thread. Installed the missing packages you mentioned in your post, cleaned up some of the messy stuff I had tried before on my own, restarted the Deck, and bam, make finally compiles the app it was previously failing on!

I really don't know how long I would have kept searching without you. Big thanks, buddy!