harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [classlib][linux/x86_32] classlib doesn't buid if X11 is not present
Date Fri, 17 Nov 2006 13:00:30 GMT
Here's the instructions I had ready for the website, but got clobbered 
with one of the many doco patches.  I'll put on website today in terms 
of requirement, and then point to a wiki for details for this platform.

1) Install subversion, gcc, g++ and make:

geir@jack:~$ sudo apt-get install subversion
geir@jack:~$ sudo apt-get install gcc
geir@jack:~$ sudo apt-get install g++
geir@jack:~$ sudo apt-get install make

3) Install java : (1.5.0_9 from sun)

4) Install ant (1.6.x)

4) Get junit and drop the junit-X.jar into ant/lib

4) Install AWT/Swing deps

    apt-get install liblcms1-dev
    apt-get install libpng12-dev
    apt-get install libjpeg62-dev
    apt-get install libx11-dev
    apt-get install libxft-dev
    apt-get install binutils-dev

5) Get harmony tree :

geir@jack:~/dev/apache/harmony/enhanced/trunk$ svn co 

6) populate source subtrees :

$ cd trunk
$ ant populate_source

7) build classlib

   $ cd working_classlib
   $ ant fetch-depends
   $ ant

Stefano Mazzocchi wrote:
>     [copy] Copying 1 file to /home/stefano/src/classlib/deploy/jdk/jre/bin
>      [exec] cc -O1 -march=pentium3 -DLINUX -D_REENTRANT
> -I/home/stefano/src/classlib/deploy/include
> -I/home/stefano/src/classlib/deploy/jdk/include -I. -I../shared/ -fpic
> -Icommon -I/usr/X11R6/include -I/usr/include/freetype2 -Iinclude    -c
> -o LinuxNativeFont.o LinuxNativeFont.c
>      [exec] LinuxNativeFont.c:22:25: error: X11/Xft/Xft.h: No such file
> or directory
>      [exec] LinuxNativeFont.c:23:31: error: freetype/tttables.h: No such
> file or directory
>      [exec] LinuxNativeFont.c:24:31: error: freetype/t1tables.h: No such
> file or directory
>      [exec] LinuxNativeFont.c:39:39: error: freetype/internal/tttypes.h:
> No such file or directory
>      [exec] LinuxNativeFont.c:43:31: error: freetype/ftsnames.h: No such
> file or directory
>      [exec] In file included from LinuxNativeFont.c:56:
>      [exec] LinuxNativeFont.h:61: error: expected
> specifier-qualifier-list before ‘FT_Int’
>      [exec] LinuxNativeFont.c: In function
>      ....
> I'm trying to compile classlib on a x86_32 debian server I have access
> to but it doesn't have X installed, can i compile without it? if not,
> what is the minimum set of packages I need?

View raw message