Freetype version check failure - copy of DLL failed
Pete Brunet
pete at a11ysoft.com
Mon Sep 28 20:54:08 UTC 2009
Thanks Tim, It must be something else. Here are my two environment
variables:
ALT_FREETYPE_HEADERS_PATH=C:/Progra~1/GnuWin32/include
ALT_FREETYPE_LIB_PATH=C:/Progra~1/GnuWin32/lib
At a minimum I have to edit
C:\OpenJDK\jdk7\jdk\make\tools\freetypecheck\Makefile as follows:
# change freetype.dll to freetype6.dll
FREETYPE_DLL = $(FREETYPE_LIB_PATH)/freetype6.dll
because there is no freetype.dll in C:\Program Files\GnuWin32, just
freetype6.dll.
Here is my "make sanity" output:
ERROR: FreeType version 2.3.0 or higher is required.
make[2]: Entering directory
`/cygdrive/c/OpenJDK/jdk7/jdk/make/tools/freetypecheck'
c:/OpenJDK/jdk7/build/windows-i586/btbins/freetype_versioncheck.exe
make[2]: Leaving directory
`/cygdrive/c/OpenJDK/jdk7/jdk/make/tools/freetypecheck'
Failed to build freetypecheck.
BTW, How do I put prints in the make file to see the values of the
variables?
Pete
---
Tim Bell wrote:
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20090928/cc4c4209/attachment.htm>
More information about the build-dev
mailing list