$ mt-imager
log4cxx: Could not read configuration file [/opt/software/mt-imager/conf/log.properties].
log4cxx: No appender could be found for logger (execution.performance.ImagerStatistics).
log4cxx: Please initialize the log4cxx system properly.
terminate called after throwing an instance of 'GAFW::Tools::CSVWriter::CSVWriterException'
what():
Function called: CSVWriter::CSVWriter()
Reason: Unable to open file for write: /home/daniel/performance.csv
Aborted (core dumped)
$
Two obvious problems here:
it's looking for /opt/software/mt-imager/conf/log.properties when I built it with CMAKE_INSTALL_PREFIX=/usr/local (see below)
it's falling back to /home/daniel/performance.csv which of course it is unable to write to. It would be far more civilized to fall back to something like getenv("HOME")+"mt-imager-performance.csv".
Installation log:
$ make install
# ...lots of bullshit skipped...
-- Install configuration: ""
-- Installing: /usr/local/lib/libgafw-tools.so
-- Set runtime path of "/usr/local/lib/libgafw-tools.so" to "/usr/local/lib:/usr/local/boost-1.55/lib"
-- Installing: /usr/local/lib/libgafw-pil.so
-- Set runtime path of "/usr/local/lib/libgafw-pil.so" to "/usr/local/lib"
-- Installing: /usr/local/lib/libgafw-impl.so
-- Set runtime path of "/usr/local/lib/libgafw-impl.so" to "/usr/local/lib:/usr/local/boost-1.55/lib:/usr/local/cuda-5.5/lib64"
-- Installing: /usr/local/lib/libmt-imager-lib.so
-- Set runtime path of "/usr/local/lib/libmt-imager-lib.so" to "/usr/local/lib:/usr/local/boost-1.55/lib:/usr/local/cuda-5.5/lib64"
-- Installing: /usr/local/bin/mt-imager
-- Set runtime path of "/usr/local/bin/mt-imager" to "/usr/local/lib:/usr/local/cuda-5.5/lib64:/usr/local/boost-1.55/lib"
-- Installing: /usr/local/conf/log.properties
-- Installing: /usr/local/conf/mtimager.properties
Two obvious problems here:
/opt/software/mt-imager/conf/log.properties
when I built it withCMAKE_INSTALL_PREFIX=/usr/local
(see below)/home/daniel/performance.csv
which of course it is unable to write to. It would be far more civilized to fall back to something likegetenv("HOME")+"mt-imager-performance.csv"
.Installation log: