Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md to include Linux #61

Merged
merged 1 commit into from
Jul 3, 2016
Merged

Conversation

yamgent
Copy link

@yamgent yamgent commented Jun 16, 2016

A guide to help people who are interested in compiling the game on Linux.

@comicfans
Copy link

suggest add following comments in linux copy file section:

since application detect the 'realpath' for executable, soft link (ln -s ) main executable will not work.

@icculus
Copy link
Owner

icculus commented Jul 3, 2016

@comicfans, we should probably fix that in the code (I assume the realpath() is there to help find the base directory of the game and we don't really care where the binary is, right?).

@icculus icculus merged commit 54f8c48 into icculus:master Jul 3, 2016
@yamgent yamgent deleted the readme-improv branch July 3, 2016 09:07
@comicfans
Copy link

UnixFileSystem.cpp:80 use SDL_GetBasePath() to detect executable path, and SDL uses
readline (/proc/pid/exe) to get executable path(for linux) . this ignore soft link.

under linux argv[0] may help but not always .

@clort81
Copy link

clort81 commented Aug 3, 2021

Hi, thanks for the work. I'd like to make some suggestions to make it work better under linux.

  1. Player.ecl exists nowhere on the filesystem. When the executeable does not find a required data file such as 1_00.gro, it would be helpful to report the name and path of the not-found data file to stderr. .. Instead of the filename sought in the .gro archive.

  2. It would be helpful to store and read the game-data-path to/from a configuration file. Games under linux commonly store game paths to a configuration file. This would be conventionally located in ~/.config/serious-engine or similar.
    For portability, no spaces are allowed in *nix directory or file names. Best to use alphanumeric ascii.

  3. The build for ssam-tfe fails to build EntitiesMP, but the binary ssam-tfe requires EntitiesMP. It would be helpful to fix the cmake config to build all required libraries for ssam-tfe. I was able to work-around this by building ssam first.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants