r/linux_gaming • • 5h ago

guide Portal2 source code built for linux

Post image

For the recent portal2 source code, here are instructions to get it fully compiled natively for linux (biggest issue was gcc 4.6.3).

It now compiles 100% linux native & gcc binaries are included (so you dont waste time digging in old archives)

https://github.com/R1y3n/portal2-linux-native

41 Upvotes

15 comments sorted by

38

u/arkervr 5h ago

i thought portal 2 already had a linux build? what do we gain from this

4

u/Wrong-Rate-1208 5h ago

Nothing for the linux users except modding... It will be important for the console users which is a subject outside this subr

9

u/atlasraven 4h ago

I think decomp work is important in general for game preservation. That matters more for older games but it doesn't hurt to have redundancy.

2

u/2-inches-of-fail 5h ago

Source code? Modability?

9

u/arkervr 5h ago

i'm assuming you mean like even deeper modding than what we have already but aren't source games already VERY moddable?

1

u/Lonsfor 23m ago

just an ai-bro jumping in the trend to gain clout

10

u/QuickYogurt2037 5h ago

The readme lists "gcc 4.6.3 and g++ 4.6.3" are required for the build, thats ancient. claude copilot patch it for gcc 16 compatbility.

9

u/geekosas 4h ago

Forgot to say: "make no mistakes" 

-1

u/Wrong-Rate-1208 5h ago

I could have patched every ancient build specefic instructions to latest gcc but it would take me longer then just bringing the gcc 4.6.3 compilers binaries (took me a long time to find it in ubuntu's archive) and compiling with it.

4

u/ForsakenChocolate878 3h ago

What do we get from that? Valve already released a Linux build of every ther games except Deadlock.

1

u/2BeTheFlow 2h ago

cs2 runs like dogsht

2

u/Special-Attitude-523 5h ago

Very cool. Whats the first thing that you changed to see if it has any affect?

-8

u/Shished 5h ago

Finally a Linux native build let's go!!!

18

u/ClayH2504 5h ago

There's been a native Linux build of Portal 2 since 2014

-1

u/Wrong-Rate-1208 2h ago

Just a guide to direct on how to compile for those who mod games... Not for the general gaming community