Building OpenJDK 7 on OSX Leopard PPC fails
Lussier, Denis
denisl at openscg.com
Mon Dec 27 10:36:50 PST 2010
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 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=/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/ft2build.h
>> /usr/X11/include/ft2build.h
>>
>> Do you have any idea?
>>
>> Cheers,
>>
>> Thomas
>>
>>
>>
>
More information about the bsd-port-dev
mailing list