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

cannot make canonical path: No such file or directory #2706

Closed
ztianyang opened this issue Dec 24, 2023 · 5 comments
Closed

cannot make canonical path: No such file or directory #2706

ztianyang opened this issue Dec 24, 2023 · 5 comments

Comments

@ztianyang
Copy link
Contributor

SuperTux version: commit 96682c1
System information: Arch Linux

Expected behavior

The game runs after compiling.

Actual behavior

The game doesn't run at all.

Steps to reproduce actual behavior
  1. Download the latest source code archive from https://download.supertux.org and extract it.
  2. Compile and run the game.
mkdir build
cd build
cmake .. -DENABLE_DISCORD=ON
make -j$(nproc)
./supertux2
Additional debugging information
$ ./supertux2
[FATAL] /home/tianyang/games/supertux/builds/supertux_nightly/src/supertux/main.cpp:746 Unexpected exception: filesystem error: cannot make canonical path: No such file or directory [/home/tianyang/games/supertux/builds/supertux_nightly/build/data]

There is no data directory in the build directory

$ ls
CMakeCache.txt           external            physfs                   supertux2
CMakeFiles               libLibPartioZip.a   physfs_project-prefix    supertux2.desktop
cmake_install.cmake      libLibSavePNG.a     SDL2_ttf                 tinygettext
config.h                 libLibSexp.a        SDL2_ttf_project-prefix  tinygettext_project-prefix
CPackConfig.cmake        libsupertux2_lib.a  squirrel                 version.h
CPackSourceConfig.cmake  Makefile            squirrel_project-prefix
@ztianyang
Copy link
Contributor Author

I have to create the data directory manually for the game to run.

@mrkubax10
Copy link
Member

You are supposed to run game from within directory containing data folder or by specifying it using --datadir command line argument.

@Vankata453
Copy link
Member

You are supposed to run game from within directory containing data folder or by specifying it using --datadir command line argument.

Perhaps the error message could provide this info as a potential solution?

@tobbi
Copy link
Member

tobbi commented Dec 25, 2023

Why bother? We could create a data directory if it doesn't exist

@tobbi tobbi closed this as completed in efb8ccd Dec 25, 2023
@tobbi
Copy link
Member

tobbi commented Dec 25, 2023

Please try again once the next nightly package is built

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

4 participants