Am 18.03.21 um 11:56 schrieb Kornel Benko:
Am Thu, 18 Mar 2021 11:46:22 +0100
schrieb "'Kay F. Jahnke' via hugin and other free panoramic software"
<[email protected]>:
Am 18.03.21 um 11:34 schrieb Kornel Benko:
Am Thu, 18 Mar 2021 11:01:31 +0100
schrieb Kornel Benko <[email protected]>:
Please explain. What do you mean by 'use'? Is PV_FONTDATADIR an
environment variable? Or something CMake will patch in the source?
Kay
Compilation is called as
clang++ ... -DPV_FONTDATADIR="/usr/local/share/lux/fonts" ...
so that in the source you can use
#if defined(PV_FONTDATADIR)
... do something
#endif
Got it. applied. We had crossed mails, please check if my edit suits you.
Kornel
An alternative is the following
Create a template pv_config.h.cmake (attached)
add to CMakeLists.txt the commands to create pv_config.h (in the build dir)
patch attached
use
#include "pv_config.h"
I opted against this for now and I'm going with the PV_FONTDATADIR read
directly.
Kay
OK. Mark that using defines in a config file may be preferred because the
compile-command-line is shorter.
Yes, if we get more of the sorts we can change to that mode.
BTW, it works.
Hooray! Thanks for checking. Off to lunch...
Kay
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/607ad876-b653-5271-122e-c5c8200650f2%40yahoo.com.