[osg-users] freetype build support on Windows

Robert Osfield robert.osfield at gmail.com
Thu Jun 9 06:15:11 PDT 2016


Hi Stuart,

On 9 June 2016 at 12:39, Stuart Mentzer <Stuart_Mentzer at objexx.com> wrote:
> Robert, it occurs to me that you could just do a find_library for PNG and
> then, if found, add the PNG lib to the freetype plugin libraries, even if
> freetype didn't actually depend on PNG. Maybe that isn't super rigorous but
> linking in a library that isn't needed should be harmless. This simpler task
> I can do for the freetype plugin CMakeLists.txt file if you want.

I don't feel this is appropriate.  If someone cherry picked plugins
for release then could end up with problems if they didn't copy across
png as well even though it shouldn't be needed.

With CMake you can run build tests to test if certain capabilities
work or not and then toggle settings accordingly, perhaps this might
be useful on the FreeType front.  If not then have a CMake option for
the FreeType where you can add additional libraries or toggle on the
requirement for linking to PNG.  The later is the route I'd suggest
for now.

Robert.



More information about the osg-users mailing list