Live data from Hacker News

Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

twitter.com

411–415 of 415 posts

Re: Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

#411
post #305

Earlier quoted context omitted.

You don't even have to do that. When you compile your binary you just need to set the rpath to your own directory of libs and they will be search automatically and fall back to the system if missing.

Last time I looked the rpath is a static absolute path, which is inconvenient if you want to install the libraries elsewhere. The automatic fallback to system libraries can also lead to mysterious problems.

The linker recognizes a variable that expands to the location of the binary so you can use relative paths.

${ORIGIN}/lib will be the relative library path.

Re: Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

#412

Earlier quoted context omitted.

100% this. source: - am a business person - am a developer - am a linux users - am a linux gamer I love the idea of being able to game and work/dev on the same machine. But its not the current reality and its not the reality of the near future. Ive recently settled for macos because even though it doesn't offer optimal solutions for anything, it offers the really nice solutions for everything. I tried linux gaming fo…

Settled on MacOs for gaming? I built a Windows PC (for gaming only) because I was tired of every title I wanted to play being exclusive to Windows. Plus graphics card support is much better on Windows than everything else.

i travel a lot, so unless i want to two laptops, I had to compromise.

Re: Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

#413
post #411

Earlier quoted context omitted.

Last time I looked the rpath is a static absolute path, which is inconvenient if you want to install the libraries elsewhere. The automatic fallback to system libraries can also lead to mysterious problems.

The linker recognizes a variable that expands to the location of the binary so you can use relative paths. ${ORIGIN}/lib will be the relative library path.

Fascinating.

Some useful stack overflow answers on this topic. First, the trick to get GCC to pass the ORIGIN option to the linker: -Wl,-z,origin.

Secondly, how to pass it as the rpath option:

"-Wl,-rpath,'$ORIGIN' -- note that you need quotes around it to avoid having the shell interpret it as a variable, and if you try to do this in a Makefile, you need $$ to avoid having make interpret the $ as well."

https://stackoverflow.com/questions/38058041/correct-usage-o...

The chrpath utility is also fascinating, as it allows you to rewrite the elf headers to change the rpath. Possibly better for installs than passing lots of env variables.

Various warnings on this topic to not use actual relative paths unless you really want that behaviour.

Re: Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

#414

Earlier quoted context omitted.

Self-important idea police?

That is completely ridiculous. Pointing out that statically compiling dependencies or shipping them with a game can solve many so called compatibility problems is directly related to games working on linux.

As you can see, both comments were indeed flagged by one of those stackexchange types that is always marking useful questions as off-topic. Probably the same person who thinks using anything but rpm is bad.

The thread has then been detached for the crime of discussing voting, so only we can see it.

The first rule of HN voting is not to discuss voting.

Re: Game dev: Linux users were only 0.1% of sales but 20% of crashes and tickets

#415
post #62

I work for a small company that produces a DAW and VST plugins. Supporting Linux is a huge amount of work compared to Windows and Mac. The main issue is that 'Linux' is not a thing you can support. You have to pick the distros you want to support, and then once you've picked a distro, what versions you want to support. And you need to use the C++ version that ships with that distro, so if you want to support old vers…

Music Production is one of the last things I keep Windows around for. That sounds like a cool job though.
Post reply on HN