Self-contained Linux application: OCCT does not work on NixOS
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
### Description
I'm trying to run OCCT and the application just crashes.
NixOS isn't an FHS compliant, but it does have tools to work around this.
[CrashReport-20260305172939.log](https://github.com/user-attachments/files/25757121/CrashReport-20260305172939.log)
output of `LD_DEBUG=libs LD_DEBUG_OUTPUT=lib.log ./OCCT`
[lib.log](https://github.com/user-attachments/files/25757133/lib.log)
### Reproduction Steps
1. Install nix or NixOS
2. Install steam-run, a tool designed for running FHS binaries, like games, this simply exposes the FHS shell used to run steam as a standalone app.
3. Download OCCT from [here](https://www.ocbase.com/download)
4. `$ chmod +x OCCT`
5. `$ steam-run ./OCCT`
### Expected behavior
The application runs
### Actual behavior
it quickly crashes, complaining about missing DLLs.
### Other information
These files do exist:
```
l ~/.net/OCCT/uigik4jh.gt2/
total 12M
drwx------ 2 daniel users 0 Mar 5 15:05 .
drwx------ 4 daniel users 0 Mar 5 15:05 ..
-rw-r--r-- 1 daniel users 2.4M Mar 5 15:05 libHarfBuzzSharp.so
-rw-r--r-- 1 daniel users 8.9M Mar 5 15:05 libSkiaSharp.so
```
Despite `RPATH`, `$ORIGIN/netcoredeps` doesn't exist.
I created a copy of OCCT, called `OCCT_mod`, and ran `patchelf` on said application, I have _zero_ clue why LD log has references to `OCCT_mod` in it.
Contributor guide
Assessment
This issue has not been assessed yet.