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

Guix Port #16

Open
phodina opened this issue Jan 11, 2022 · 2 comments
Open

Guix Port #16

phodina opened this issue Jan 11, 2022 · 2 comments

Comments

@phodina
Copy link

phodina commented Jan 11, 2022

Hi,

I'm porting the game to GNU Guix. The game builds but then segfaults probably due to missing files.

Could you please help me with locating them in the source code? I'll then change their location in the package definition.

$ /gnu/store/n6b9fia22n7060xm8mgdvrz6bqwqxlca-pekka-kana-2-1.4.2/bin/pekka-kana-2/pekka-kana-2
[DEBUG]	PFile	- Find ./data/redirect.txt
[INFO]	PFile	- ./data/redirect.txt not found, trying different cAsE
[WARN]	PFile	- Couldn't scan on "./data"
[INFO]	PFile	- ./data/redirect.txt not found
[ERR]	PFile	- Can't get RW from file "./data/log.txt"
[DEBUG]	PK2	- Pekka Kana 2 started!
[DEBUG]	PK2	- Game version: Pekka Kana 2 Definitive Edition 1.4.2 (Linux) (no-zip) (portable)
[DEBUG]	PK2	- Number: 0x402
[DEBUG]	PK2	- Data path - ./data/
[ERR]	PFile	- Can't get RW from file "./data/settings.ini"
Segmentation fault
@phodina
Copy link
Author

phodina commented Dec 1, 2022

@danilolc any tips how to fix the error?

@danilolc
Copy link
Owner

danilolc commented Dec 2, 2022

I don't know how GNU Guix works. Maybe it's a problem with the cwd. It sets the working directory here:

pk2/src/main.cpp

Lines 239 to 240 in c8ea766

if(!path_set)
PUtils::Setcwd();

You can change it in command line, just start with ./pk2 path [directory].

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

No branches or pull requests

2 participants