Print

Print


Hi Jacek,

you need to add couple of things to site_scons/state.py in
_initVariables() method:

- together with bunch of other _DIR variables:
PathVariable('LOG_DIR', 'log install dir', os.getenv("LOG_DIR"), PathVariable.PathIsDir)

then below that where you see all _INC and _LIB add 
something like

(PathVariable('LOG_INC', 'log include path', os.path.join(env['LOG_DIR'], "include"), PathVariable.PathIsDir)),
(PathVariable('LOG_LIB', 'log libraries path', os.path.join(env['LOG_DIR'], "lib"), PathVariable.PathIsDir)),

(this is assuming that includes are in $LOG_DIR/include and libs are 
in $LOG_DIR/lib).

The rest should happen automatically.

os.getenv("LOG_DIR") above should probably be replaced with 
some smarter function (like all other functions there) which
can work without eups setting $LOG_DIR (or take it from 
custom.py).


Cheers,
Andy


Jacek Becla wrote on 2014-08-05:
> quick question: how do I force qserv to find includes
> from the new log package? The includes are correctly
> installed in:
> 
> <myStack>/Linux64/log/1.0.0/include/lsst/log/Log.h
> 
> and the log package is correctly setup:
> 
> eups list log
>     1.0.0      	current setup
> but I guess I need to tweak one of our custom SCons scripts.
> Any quick hints where to look would be appreciated.
> 
> thanks,
> Jacek
> 
> ########################################################################
> Use REPLY-ALL to reply to list
> 
> To unsubscribe from the QSERV-L list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1




########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1