Building OpenJDK 7 on OSX Leopard PPC fails

Gary Meyer gary.meyer at apple.com
Tue Dec 28 14:28:29 PST 2010


You've got the file in freetype2/freetype/config ... and the compiler is looking for it in freetype/config.
Gary.

On Dec 27, 2010, at 11:59 PM, Thomas Winkler wrote:

> Hi, I compiled freetype from source and now I get a different error but also related to freetype. Here is my build.sh:
> 
> make \
> CC=gcc-4.0 \
> CXX=g++-4.0 \
> ALT_BOOTDIR=/usr/local/openjdk7-macppc-2009-12-16-b4
> ANT_HOME=/usr/share/ant \
> ALT_FREETYPE_HEADERS_PATH=/usr/local/include \
> ALT_FREETYPE_LIB_PATH=/usr/local/lib \
> ALT_CUPS_HEADERS_PATH=/usr/include \
> ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts \
> LIBFFI_CFLAGS="-I/usr/include/ffi" \
> NO_DOCS=true \
> ZERO_BUILD=true \
> ZERO_ENDIANNESS=big \
> ZERO_LIBARCH=ppc \
> ZERO_ARCHDEF=PPC \
> ZERO_ARCHFLAG=-m32
> 
> And here the error I get:
> 
> In file included from freetypecheck.c:32:
> /usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
> freetypecheck.c:33:10: error: #include expects "FILENAME" or <FILENAME>
> freetypecheck.c: In function 'main':
> freetypecheck.c:79: error: 'FT_Int' undeclared (first use in this function)
> freetypecheckc:79: error: (Each undeclared identifier is reported only once
> freetypecheck.c:79: error: for each function it appears in.)
> freetypecheck.c:79: error: syntax error before 'major'
> freetypecheck.c:80: error: 'FT_Library' undeclared (first use in this function)
> freetypecheck.c:81: error: 'FREETYPE_MAJOR' undeclared (first use in this function)
> freetypecheck.c:81: error: 'FREETYPE_MINOR' undeclared (first use in this function)
> freetypecheck.c:81: error: 'FREETYPE_PATCH' undeclared (first use in this function)
> freetypecheck.c:91: warning: implicit declaration of function 'FT_Init_FreeType'
> freetypecheck.c:91: error: 'library' undeclared (first use in this function)
> freetypecheck.c:92: warning: implicit declaration of function 'FT_Library_Version'
> freetypecheck.c:92: error: 'major' undeclared (first use in this function)
> freetypecheck.c:92: error: 'minor' undeclared (first use in this function)
> freetypecheck.c:92: error: 'patch' undeclared (first use in this function)
> make[2]: *** [/Users/thwinkle/bsd-port/build/bsd-ppc/btbins/freetype_versioncheck] Error 1
> 
> But the file is is there as you can see here:
> 
> G467:config thwinkle$ pwd
> /usr/local/include/freetype2/freetype/config
> G467:config thwinkle$ ls -la
> total 208
> drwxr-xr-x   7 root  wheel    238 Dec 28 08:52 .
> drwxr-xr-x  44 root  wheel   1496 Dec 28 08:52 ..
> -rw-r--r--   1 root  wheel  16277 Dec 28 08:52 ftconfig.h
> -rw-r--r--@  1 root  wheel  24761 Dec 28 08:52 ftheader.h
> -rw-r--r--   1 root  wheel   1056 Dec 28 08:52 ftmodule.h
> -rw-r--r--@  1 root  wheel  45739 Dec 28 08:52 ftoption.h
> -rw-r--r--@  1 root  wheel   7275 Dec 28 08:52 ftstdlib.h
> G467:config thwinkle$ 
> 
> 
> Do you have any idea what is still wrong?
> 
> Cheers,
> 
> Thomas
> 
> 
> 
> 
> 
> Am 27. Dez 2010 um 19:36 schrieb "Lussier, Denis" <denisl at openscg.com>:
> 
>> Try linking in with a Freetype built from the command line outside
>> side of the Macports infrastructure. I am struggling with various
>> linker issues when trying to build OpenJDK with MacPorts and this
>> technique works for me in some cases.
>> 
>> On 12/27/10, Lussier, Denis <denisl at openscg.com> wrote:
>> > Windoze OpenJDK6 builds are also very finnicky about Freetype. I
>> > struggled with the same sanity check error for quite a while using
>> > various pre-built freetype libraries. In the end I discovered it was
>> > quite easy to build the latest Freetype from source (freetype.org)
>> > with the same compiler and linker being used with OpenJDK. In Linux
>> > like environments Freetype is often as simple as a
>> > configure-make-makeInstall. I've also seen support for Freetype in
>> > Macports (on Intel 10.5 & 10.6 OSX at least)
>> >
>> > There were also huge benefits (in Windoze anyway) to compiling
>> > Freetype with Font Hinting turned on. I hope this helps you in OSX
>> > PPC, if not, you are free to ignore. :-)
>> >
>> > --Luss
>> > http://openscg.org
>> >
>> > On 12/27/10, Thomas Winkler <tom.winkler at mac.com> wrote:
>> >> Hi all,
>> >>
>> >> I want to build openjdk 7 on osx PPC using the instructions from Landon
>> >> Fuller posted here: http://landonf.bikemonkey.org/2009/12/index.html but
>> >> always get the same error:
>> >>
>> >> freetypecheck.c:32:22: error: ft2build.h: No such file or directory
>> >> freetypecheck.c:33:10: error: #include expects "FILENAME" or <FILENAME>
>> >> freetypecheck.c: In function 'main':
>> >> freetypecheck.c:79: error: 'FT_Int' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:79: error: (Each undeclared identifier is reported only
>> >> once
>> >> freetypecheck.c:79: error: for each function it appears in.)
>> >> freetypecheck.c:79: error: syntax error before 'major'
>> >> freetypecheck.c:80: error: 'FT_Library' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:81: error: 'FREETYPE_MAJOR' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:81: error: 'FREETYPE_MINOR' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:81: error: 'FREETYPE_PATCH' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:91: warning: implicit declaration of function
>> >> 'FT_Init_FreeType'
>> >> freetypecheck.c:91: error: 'library' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:92: warning: implicit declaration of function
>> >> 'FT_Library_Version'
>> >> freetypecheck.c:92: error: 'major' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:92: error: 'minor' undeclared (first use in this
>> >> function)
>> >> freetypecheck.c:92: error: 'patch' undeclared (first use in this
>> >> function)
>> >> make[2]: ***
>> >> [/Users/thwinkle/bsd-port/build/bsd-ppc/btbins/freetype_versioncheck]
>> >> Error
>> >> 1
>> >>
>> >> I installed new version of X11 and freetypecheck and adapted the
>> >> ALT_FREETYPE_HEADERS_PATH and ALT_FREETYPE_LIB_PATH but without success.
>> >> I
>> >> always get the same error. Here is my exact buildsh:
>> >>
>> >> make \
>> >> CC=gcc-4.0 \
>> >> CXX=g++-4.0 \
>> >> ALT_BOOTDIR=/usr/local/openjdk7-macppc-2009-12-16-b4
>> >> ANT_HOME=/usr/share/ant \
>> >> ALT_FREETYPE_HEADERS_PATH=/opt/local/var/macports/software/freetype/2.4.3_0/opt/local/include
>> >> \
>> >> ALT_FREETYPE_LIB_PATH=/opt/local/var/macports/software/freetype/2.4.3_0/opt/local/lib
>> >> \
>> >> ALT_CUPS_HEADERS_PATH=/usr/include \
>> >> ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts
>> >> \
>> >> LIBFFI_CFLAGS="-I/usr/include/ffi" \
>> >> NO_DOCS=true \
>> >> ZERO_BUILD=true \
>> >> ZERO_ENDIANNESS=big \
>> >> ZERO_LIBARCH=ppc \
>> >> ZERO_ARCHDEF=PPC \
>> >> ZERO_ARCHFLAG=-m32
>> >>
>> >> The ft2build.h should be there as you see here:
>> >> G467:bsd-port thwinkle$ locate ft2build.h
>> >> /Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/ft2build.h
>> >> /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/ft2build.h
>> >> /opt/local/include/ft2build.h
>> >> /opt/local/var/macports/software/freetype/2.4.3_0/opt/local/include/ft2buildh
>> >> /usr/X11/include/ft2build.h
>> >>
>> >> Do you have any idea?
>> >>
>> >> Cheers,
>> >>
>> >> Thomas
>> >>
>> >>
>> >>
>> >
>> 
> 

~~~~~~~~~~~~~~~~~~~
Gary Meyer
gary.meyer at apple.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20101228/c9a8bf4b/attachment.html 


More information about the bsd-port-dev mailing list