[osg-users] freetype build support on Windows

Stuart Mentzer Stuart_Mentzer at objexx.com
Thu Jun 9 14:20:13 PDT 2016


On 6/9/2016 9:15 AM, Robert Osfield wrote:
> 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.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Good points, Robert. I'm not the one to do this fancier CMake setup.

Stuart



More information about the osg-users mailing list