flareteam / flare-game

Fantasy action RPG using the FLARE engine
http://flarerpg.org/
Other
1.12k stars 237 forks source link

cannot "make install" in Fedora #685

Open sujiniku opened 6 years ago

sujiniku commented 6 years ago

In Fedora, I can not install with option 1 method (Install the game system-wide) . in the usual test play, I am using only option 2.

When I start up at option 1 with icon click, v0.19 ( which is downloaded from Fedora's repository) starts up. So I cannot test Option 1 with fedora.

The following display will be displayed on the command terminal.

[sujiniku@localhost ~]$ flare Could not open text file: /usr/share/flare//default/engine/combat_text.txt engine/equip_flags.txt: Could not open text file: No such file or directory! Could not open text file: /usr/share/flare//default/engine/classes.txt 1 joystick was found: Joy 0) MOSIC USB 2A8K GamePad
Using joystick #0. cutscenes/intro.txt: Could not open text file: No such file or directory! Mix_LoadMUS: Couldn't open '/usr/share/flare//default/music/title_theme.ogg' Unable to open basic translation files located in languages/data.ja.po engine/equip_flags.txt: Could not open text file: No such file or directory! Could not open text file: /usr/share/flare//default/engine/classes.txt Mix_LoadMUS: Couldn't open '/usr/share/flare//default/music/title_theme.ogg' engine/equip_flags.txt: Could not open text file: No such file or directory! Could not open text file: /usr/share/flare//default/engine/classes.txt Mix_LoadMUS: Couldn't open '/usr/share/flare//default/music/title_theme.ogg' [sujiniku@localhost ~]$

dorkster commented 6 years ago

The default cmake install prefix is /usr/local/. The engine binary is installed at /usr/local/games/flare and the game data is installed to /usr/local/share/games/flare/. As evident from the log, Fedora's engine package expects the game data to be in /usr/share/flare/.

The icon is part of flare-engine, so unless you also make install the engine, you'll be using the icon provided in the Fedora package. Similar situation for running from the command line. If you run which flare, it will likely print /usr/bin/flare, which is where I think the Fedora engine package puts the binary.

If you installed the game data with make install, yet didn't do the same for the engine, you can launch the correct engine with ./flare.

Honestly, it is best to not have the Fedora packages installed at all if you're using the development versions. Doing so will help avoid confusion.