Bug #846
Fix linux build when sources aren't in $HOME
Status: | Closed | Start date: | 05/07/2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | vl | % Done: | 100% |
|
Category: | Build | |||
Target version: | Version 0.8.0 |
Description
scripts, Makefile ... all refers to $HOME/code or ~/code.
Instead, use a variable $RYZOM_HOME that points to your Sources.
e.g: export RYZOM_HOME=/home/mathieu/Sources/ryzom/
so it could be used in scripts, Makefiles ....
History
#1 Updated by guepe about 5 years ago
- File buildtools.patch added
mfc_alpha wrote:
scripts, Makefile ... all refers to $HOME/code or ~/code.
Instead, use a variable $RYZOM_HOME that points to your Sources.
e.g: export RYZOM_HOME=/home/mathieu/Sources/ryzom/
so it could be used in scripts, Makefiles ....
I did the same, plus added creation of log directory when it does not exist. THis patch also allows for compiling outside ryzom code directory, with the creation of logs inside the current working directory.
I propose it also, as two different solutions may increase the overall quality ;-)
#2 Updated by agoln about 5 years ago
Revert Rules.mk, I don't think it's necessary.
#3 Updated by vl about 5 years ago
- Category set to Build
- Status changed from New to Assigned
- Assignee set to vl
#4 Updated by kerozcak about 5 years ago
PACK_SHEETS_FLAGS = -A$(RYZOM_PATH)/code/ryzom/server -L$(RYZOM_PATH)/code/ryzom/server -C$(RYZOM_PATH)/code/ryzom/server/sheet_pack_cfg -Q --nons
That doesn't work. Did you guys at least tried to build it with these patches?
It's used in update_pached_sheets.sh file in this way:
PACK_SHEETS_FLAGS=$(grep PACK_SHEETS_FLAGS ../../../Variables.mk|cut -f2 -d=)
and value of PACK_SHEETS_FLAGS in Variables.mk is used implicit without evaluating variables in it.
It makes update_packed_sheets.sh script run something like this:
/bin/sh ../update_packed_sheets.sh ./gpm_service continents.packed_sheets
./gpm_service -A$(RYZOM_PATH)/code/ryzom/server -L$(RYZOM_PATH)/code/ryzom/server -C$(RYZOM_PATH)/code/ryzom/server/sheet_pack_cfg -Q --nons
and the service tries to load config from wrong directory
ERR 403bbc80 service.cpp 633 main GPMS : SERVICE: Neither the config file '/home/nevrax/code/ryzom/server/src/gpm_service/$(RYZOM_PATH)/code/ryzom/server/sheet_pack_cfg/gpm_service.cfg' nor the default one can be found, can't launch the service
I think update_packed_sheets.sh should be changed to inherit PACK_SHEETS_FLAGS in some other way.
#5 Updated by vl about 5 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
All path are now relative to $RYZOM_PATH It should be easier to compile :
#6 Updated by vl about 5 years ago
- Target version set to Version 0.8.0
#7 Updated by vl about 5 years ago
- Status changed from Resolved to Closed