Am Thu, 18 Mar 2021 10:52:54 +0100 schrieb "'Kay F. Jahnke' via hugin and other free panoramic software" <[email protected]>:
> Am 18.03.21 um 10:45 schrieb Kornel Benko: > > Am Thu, 18 Mar 2021 09:56:00 +0100 > > schrieb "'Kay F. Jahnke' via hugin and other free panoramic software" > > <[email protected]>: > > > >> Am 17.03.21 um 19:11 schrieb Kornel Benko: > >>> Am Wed, 17 Mar 2021 17:52:10 +0100 > >>> schrieb "'Kay F. Jahnke' via hugin and other free panoramic software" > >> > >>>> @Kornel: Maybe cmake can produce something like a pv_config.h header > >>>> which has such platform-specific information? That should not be too > >>>> hard - and it might be nice to maybe have a bit more platform-specific > >>>> info at hand, like the user's home directory, to put stuff in which > >>>> persists from session to session, and the location of the binary... > >>>> > >>>> I wouldn't be surprised if cmake does that all the time - I'm just not > >>>> very good at it. > >>>> > >>> > >>> I can do that. I have to know the variable-names and their value. > >>> And of course the desired name of the header file. > >> > >> Sorry, @Kornel, I think this was yet another one of my quick shots. I > >> have doubts now after sleeping over it. If you were to generate a C++ > >> header file which is compiled into the program, the resulting binary > >> contains a hard-coded path - even if this is only the third option if > >> the other two options fail. Can we be sure that such a binary will not > >> be produced/used on another platform/distro where it's bound to fail? > > > > Sure we can. Because the installed ttf is exactly there, where it is > > expected. > > In CMakeLists we specify the destination. You have to use 'PV_FONTDATADIR' > > in > > pv_no_rendering.cc to find the font. > > 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 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/20210318110131.3d00621f%40admin1-desktop.
pgpQWG3b6c0z0.pgp
Description: Digitale Signatur von OpenPGP
