Freetype version check failure - copy of DLL failed

Tim Bell Tim.Bell at Sun.COM
Mon Sep 28 17:33:28 UTC 2009


Pete Brunet wrote:
> In the process of getting set up for building the open jdk I ran make
> sanity and was getting freetype version check failures.  My version of
> freetype was installed via the binary installer at 
> http://gnuwin32.sourceforge.net/packages/freetype.htm. 
> 
> To fix the problem I had to copy C:\Program
> Files\GnuWin32\bin\freetype6.dll to
> C:\OpenJDK\jdk7\build\windows-i586\btbins
> 
> This line in C:\OpenJDK\jdk7\jdk\make\tools\freetypecheck\Makefile was
> supposed to do the latter but for whatever reason it didn't:
>   $(CP) $(FREETYPE_DLL) $(@D)/ 

> I did try editing the file to change FREETYPE_DLL from freetype.dll to
> freetype6.dll and also copy the file from C:\Program Files\GnuWin32\bin
> to C:\Program Files\GnuWin32\lib but that didn't fix the problem so
> maybe the $(@D) is incorrect.

The Windows JDK build gets severe heartburn when spaces appear
in any path.  You didn't include the error output, but my first
guess is that the copy command tried to access "C:\Program"

Use the Windows "dir /x" command to look up the mangled (short)
form of the "C:\Program Files" directory, which is usually
something like "PROGRA~1"

Here is what I use on my Windows OpenJDK build machine to
get freetype:

ALT_FREETYPE_HEADERS_PATH=c:/devtools/windows/freetype-i586/include
ALT_FREETYPE_LIB_PATH=c:/devtools/windows/freetype-i586/lib


Note: no spaces in the paths, and no backward slashes: '\'

Hope this helps.  If not, please post the relevant output
from your build log.

Tim



More information about the build-dev mailing list