<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Robert,</p>
<p>I have asked the CMake community about updating their
FindFreetype.cmake to support Windows debug library naming and I
will follow up to try and get that fixed in upcoming releases. I
was pointed to how they do it correctly for zlib so I could make a
variant of their FindFreetype.cmake for OSG to use until their fix
is released. This would retain their support for the old and new
include structure. If you'd like me to submit that let me know.<br>
</p>
<p>Wrt the PNG on/off issue, I now understand the approach they use.
The upshot is that as long as you refresh the freetype source tree
you are building with from the original code before each build you
can switch PNG support on or off in the cmake command with
-DWITH_PNG=ON or OFF and without manually editing ftoption.h.
(Same holds for ZLIB support.) The reason is that the build goes
in and modifies ftoption.h in the source tree (as well as making a
copy in the build tree) and the modification only uncomments those
defines, so you can't build with PNG enabled and then PNG disabled
without refreshing the source first. This is an unfortunate
approach but that is what we are stuck with. Most builders don't
switch the PNG or ZLIB support on and off so this probably doesn't
often trip people up. The best we can probably do is add a note on
an appropriate wiki page. I added this refresh step to my build
scripts.<br>
</p>
<p>Stuart<br>
</p>
<div class="moz-cite-prefix">On 6/4/2016 3:36 PM, Robert Osfield
wrote:<br>
</div>
<blockquote
cite="mid:CAFN7Y+WE45CsnotpWKkwKAxUDhFnS_MOHfx3H9mK+y4zzJH91A@mail.gmail.com"
type="cite">
<p dir="ltr">Hi Stuart,</p>
<p dir="ltr">It sounds like the version of Freestyle is broken or
it requires a tweak to configuration. Have you approached the
freetype community about these issues.</p>
<p dir="ltr">The debug vs release issue is something that would be
worth raising with the cake community as it sounds like a
revision to their Findfreetype.cmake.</p>
<p dir="ltr">Robert </p>
<div class="gmail_quote">On 3 Jun 2016 11:24 p.m., "Stuart
Mentzer" <<a moz-do-not-send="true"
href="mailto:osgforum@tevs.eu">osgforum@tevs.eu</a>> wrote:<br
type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Robert,<br>
<br>
Here's what I found doing release and debug builds from
yersterday's git master code with Visual C++ 2015:<br>
<br>
freetype even using -DWITH_PNG=OFF will still try to include
png.h and for some reason requires ftoption.h (both copies) to
be modified (or overridden) to comment out the line:<br>
#define FT_CONFIG_OPTION_USE_PNG<br>
This is unfortunate and actually makes it easier to build
freetype with PNG support. With the freetype mods OSG builds
including the freetype plugin. Configuring freetype with or
without PNG support is up to the builder but it would be good
if the CMakeLists.txt could handle both situations without
needing changes like I made.<br>
<br>
The freetype build headers under include\freetype2\freetype
even though freetype doesn't use that freetype2 layer anymore.
Not a big deal since OSG doesn't really need to ship with
freetype or other 3rd party lib headers.<br>
<br>
The debug build is able to build freetype with the same mods
but the OSG build doesn't find it:<br>
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY) (found
version "2.6.3")<br>
which I assume is due to not looking for the name freetyped,
as I found with my OSG 3.4.0 build. So the OSG build can
complete but it won't build the freetype plugin.<br>
<br>
The debug build fails at "Installing the project..." because
it appears something is wrong with the new pdb installation
support:<br>
-- Installing: C:/OSG.VC.xd/bin/osgd.dll<br>
CMake Error at src/osg/cmake_install.cmake:39 (file):<br>
file INSTALL cannot find<br>
"C:/Projects/OSG/VC.xd/OSG/src/osg/PREFIX-NOTFOUNDosgd.pdb".<br>
Call Stack (most recent call first):<br>
src/cmake_install.cmake:33 (include)<br>
cmake_install.cmake:100 (include)<br>
The osgd.pdb file is present and next to osgd.dll as expected.<br>
<br>
I see that others are reporting success with the Visual C++
2015 build but I don't know how they are addressing the
freetype PNG issues or if they tried the debug build yet. It
looks like there are still some issues but maybe they will
offer some input here. I'm happy to make another pass if that
helps.<br>
<br>
Stuart<br>
<br>
------------------<br>
Read this topic online here:<br>
<a moz-do-not-send="true"
href="http://forum.openscenegraph.org/viewtopic.php?p=67406#67406"
rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=67406#67406</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a moz-do-not-send="true"
href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org"
rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
</body>
</html>