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. BTW, it works. Kornel -- 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/20210318115601.5d982dfa%40admin1-desktop.
pgpT7yPCOfipC.pgp
Description: Digitale Signatur von OpenPGP
