To clarify, the issues arise not in building freetype but in building the 
freetype plugin. The OSG FindFreetype.cmake module has two issues:

1. The debug library is named freetyped.lib (not freetype.lib) and the NAMES 
variable doesn't have freetyped so it isn't found in a debug build. (This is 
also a flaw in CMake's FindFreetype module and I have submitted a patch.)

2. The include directory structure in freetype 2.6.3 is different than what 
FindFreetype.cmake expects.

If you are getting the freetype plugin built with freetype 2.6.3 or in a debug 
build using the stock OSG FindFreetype.cmake then that is a mystery. You could 
work around the first issue by setting the library variable externally I guess.

I have not looked at Björn's scripts -- I developed my own that handle the 
whole build also.

Stuart

On 6/6/2016 4:33 AM, Carl-Gustaf Kung wrote:
I don't know if I missunderstand your original post somehow, but I did build 
freetype twice in last few days with no issues whatsoever. I am on windows 10 
64-bit and I have built it with VS2015 Community Edition, both debug and 
release libs.

If you use cmake file that comes with freetype from git, just comment out check 
for mingw and shared libs:


#if (WIN32 AND NOT MINGW AND BUILD_SHARED_LIBS)
#  message(FATAL_ERROR "Building shared libraries on Windows needs MinGW")
#endif ()

If you use Björn's cmake scripts, you have to do nothing.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67437#67437





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to