|
![]() |
#1 |
Rookie
Join Date: Aug 2020
Posts: 5
![]() |
FrogComposband: configure save files location, libraries
Hello.
On Debian 9, I have compiled frogcompostband with the following configuration: Configuration: Install path: /tmp/frog binary path: /tmp/frog/games config path: /tmp/frog/etc/frogcomposband/ lib path: /tmp/frog/share/frogcomposband/ doc path: /tmp/frog/share/doc/frogcomposband/ var path: (not used) (with private save and score files in ~/.angband/FrogComposband/) This results in a working game, but save files are saved in the wrong location - /tmp/frog/var/games/frogcomposband/save , not ~/.angband/FrogComposband/ Which configure option enables private save files? I'd like to link the game against static curses and X11 libraries. Is this possible with configure options? |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Nov 2008
Posts: 882
![]() |
I'll try to look into this in more detail later, don't have much time (or energy) right now, sorry. --with-private-dirs is the configure option for using private paths; but it should be implicitly assumed to be on. I don't think there's any more specific configure option for save directories specifically, but "./frogcomposband -ds=<path>" should at least in theory run the game with a custom save path of your choice (this might not work on every platform).
It's likely that configure is simply lying about the savefile path, so don't worry too much about that. If a high-energy Debian user can weigh in, that would be great ![]()
__________________
The Complainer worries about the lack of activity here these days. |
![]() |
![]() |
![]() |
#3 |
Swordsman
Join Date: Aug 2019
Posts: 349
![]() |
Debian 10 and 7.1.salmiak have similar behavior to what's in the original post,
Code:
./configure --with-private-paths --prefix=/tmp ; make ; make install As a bit of a hack, you can use Code:
./configure --prefix=/tmp CFLAGS=-DPRIVATE_USER_PATH=\\\"~/.angband\\\" For the static libraries (I'll trust you have a good reason for wanting to bother), I don't see an option. You can use Code:
./configure <other_config_options_here> LDFLAGS=-static Code:
./configure <your_config_options_here> make LIBS="/usr/lib/x86_64-linux-gnu/libncursesw.a -ltinfo -ldl -lSM -lICE /usr/lib/x86_64-linux-gnu/libX11.a -lxcb -lm" make install For Sideways or whomever else might be interested in getting configure to set PRIVATE_USER_PATH appropriately on Debian (and perhaps elsewhere, I'm not sure if the above issues are Debian-specific): The part for setting PRIVATE_USER_PATH in z-config.h is commented out so one would have to edit z-config.h or set it manually via -D. The --with-private-paths option for configure causes USE_PRIVATE_PATHS to be set, but it doesn't appear anywhere else besides autoconf.h so it doesn't do anything. Last edited by backwardsEric; August 19, 2020 at 23:02. Reason: PRIVATE_USER_PATH commented out in z-config.h; duh |
![]() |
![]() |
![]() |
#4 |
Rookie
Join Date: Aug 2020
Posts: 5
![]() |
Thanks for the help guys.
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sil save files | quarague | Sil | 7 | June 17, 2013 17:08 |
question about ubuntu location of edit files | bill4935 | Development | 3 | December 30, 2011 13:57 |
[3.3.0] Corrupted save files | Andros | Vanilla | 5 | August 29, 2011 16:54 |
Nightly Builds and Save Files | timtek | Vanilla | 2 | June 13, 2010 00:28 |
Question about save files | Fendell Orcbane | Vanilla | 5 | May 21, 2010 17:35 |