[osg-users] freetype build support on Windows
Stuart Mentzer
Stuart_Mentzer at objexx.com
Tue Jun 7 22:57:27 PDT 2016
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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list