I love a good virtual beer.

Since the arm typically shares the same endianness as x86, I build them 
on the x86 native.


David Rusling wrote:

> Michael,
> 
>     thanks - I've now got something that works.  Any time we're
> co-located in a bar, I'll buy you a beer.  Another question, how do
> you build the .pcf (font) files?
> 
> Dave 

Thanks, I love a good virtual beer.

As for fonts, truetype (via Xft) is going to be the one-true-way I hope.
The font quality on digital lcd displays has to be seen to be believed.

See the handhelds.org project for Xft patches to common X utils like 
rxvt...

But the old X fonts are going to be with us for a long time.
Since the arm typically shares the same endianness as x86, I build them 
on the x86 native.

I hope to be working out of current XFree86 cvs this week.

> 
> Michael Taht wrote:
> 
>> Attached are some patches that make TinyX 4.1.0 compile on just about 
>> everything.
>> 
>> There will be "%whatevers" in here that point to the specific 
>> compiler and directory targets for Hard Hat linux.
>> Just replace those with the locations required for your toolchain.
>> 
>> host.def looks like this for me:
>> 
>> #define KDriveXServer YES
>> #define KdriveServerExtraDefines -DITSY -DMAXSCREENS=3
>> #define TinyXServer YES
>> #define CrossCompiling YES
>> #define TouchScreen YES
>> #define ItsyCompilerBug NO
>> #define BuildXinerama YES
>> #define ProjectRoot /usr/X11R6
>> #undef i386Architecture
>> #define BuildType1      YES
>> #define BuildXInputExt NO
>> #define BuildSpeedo YES
>> #define XVirtualFramebufferServer       YES
>> #define XprtServer NO
>> #define XnestServer YES
>> #define BuildFonts NO
>> #define Freetype2Dir %{_hhl_cross_target_dir}/usr
>> #define Freetype2LibDir %{_hhl_cross_target_dir}/usr/lib
>> #include "cross.def"
>> 
>> cross.def looks like this for me:
>> 
>> #define Arm32Architecture
>> #undef OptimizedCDebugFlags
>> #define OptimizedCDebugFlags    -O2 -g
>> #define ServerCDebugFlags       -O2 -g
>> #undef StandardDefines
>> %if "%{_hhl_target_cpu_type}" == "mips"
>> #define StandardDefines         -Dlinux -D__MIPS__ -D_POSIX_SOURCE \\
>>                                -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
>> %else
>> %if "%{_hhl_target_cpu_type}" == "ppc"
>> #define StandardDefines         -Dlinux -D__%{_hhl_target_cpu_type}__ 
>> -D__powerpc__ -D_POSIX_SOURCE \\
>>                                -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
>> %else
>> #define StandardDefines         -Dlinux -D__%{_hhl_target_cpu_type}__ 
>> -D_POSIX_SOURCE \\
>>                                -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE
>> %endif
>> %endif
>> 
>> #undef CcCmd
>> #define StdIncDir %{_hhl_cross_target_dir}/%{_hhl_target_include_dir}
>> #define PreIncDir
>> #undef PostIncDir
>> #define PostIncDir 
>> %{_hhl_cross_dir}/lib/gcc-lib/%{_hhl_target_config}/2.95.3/include
>> #define CcCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}gcc -pipe
>> #define DoRanlibCmd YES
>> #define RanlibCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}ranlib
>> #undef CplusplusCmd
>> #define HasCplusplus YES
>> #define CplusplusCmd 
>> %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}g++ -pipe
>> #undef ExtraLoadFlags
>> #define ExtraLoadFlags
>> #define FbNoPixelAddrCode
>> #undef TermcapLibrary
>> #define TermcapLibrary -lncurses
>> #undef LdPostLib
>> #define LdPostLib       -L%{_hhl_cross_target_dir}/usr/lib
>> #undef ExtensionOSDefines
>> #define ExtensionOSDefines
>> #define ServerXdmcpDefines      /**/
>> #define ModuleArCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}ar
>> #define ModuleAsCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}as
>> #define ModuleLdCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}ld
>> #define LdCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}ld
>> #define CppCmd %{_hhl_cross_bin_dir}/%{_hhl_target_toolprefix}cpp
>> #include "cross.rules"
>> 
>> 
>> 
>> 
>> 
>> David Rusling wrote:
>> 
>>> Me too - I've been in hand to hand combat with it for the last
>>> two days...
>>> 
>>> Dave
>>> 
>>> 
>>> ps I'm trying to build kdrive/TinyX for a standard framebuffer
>>> device (aka Neon 250 PCI video card on the Integrator)...
>>> 
>>> [EMAIL PROTECTED] wrote:
>>> 
>>>> if somebody is out there managed to (cross)compile XFree version 4....
>>>> 
>>>> I need some hints, especially about the cf-files and the parameters 
>>>> for the
>>>> configure
>>>> 
>>>> Heinz
>>>> 
>>>> 
>>>> _______________________________________________
>>>> http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
>>>> Please visit the above address for information on this list.
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> --- xc/config/cf/cross.rules    Fri Dec  8 19:33:18 2000
>> +++ xc/config/cf/cross.rules.new    Thu May  3 14:47:36 2001
>> @@ -8,6 +8,7 @@
>>  #ifndef ComplexHostProgramTarget
>>  #define    ComplexHostProgramTarget(program)                @@\
>>                CC=cc                            @@\
>> +              LD=ld                            @@\
>>      STD_INCLUDES=                            @@\
>>            CFLAGS=$(TOP_INCLUDES) $(INCLUDES) 
>> $(BOOTSTRAPCFLAGS)        @@\
>>  EXTRA_LOAD_FLAGS=                            @@\
>> @@ -32,6 +33,7 @@
>>             SRCS = program.c                        @@\
>>                                      @@\
>>                CC=cc                            @@\
>> +              LD=ld                            @@\
>>      STD_INCLUDES=                            @@\
>>            CFLAGS=$(TOP_INCLUDES) $(INCLUDES) 
>> $(BOOTSTRAPCFLAGS)        @@\
>>  EXTRA_LOAD_FLAGS=                            @@\
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> --- xc/config/cf/linux.cf    Wed Apr 25 11:18:49 2001
>> +++ xc/config/cf/linux.cf.new    Thu May  3 15:41:45 2001
>> @@ -484,7 +484,9 @@
>>  #   define LdCmd        ld
>>  #  endif
>>  #  define AsmDefines        -D__ELF__
>> +#  ifndef CplusplusCmd
>>  #  define CplusplusCmd        c++
>> +#  endif
>>  #  ifndef LinuxUsesNcurses
>>  #   if LinuxCLibMajorVersion >= 6 || (LinuxDistribution == LinuxSuSE)
>>  #    define LinuxUsesNcurses    YES
>> @@ -588,7 +590,9 @@
>>  #define HasFlex            YES
>>  #define LexLib            -lfl
>>  #define PreProcessCmd        CcCmd -E
>> +#ifndef PostIncDir
>>  #define PostIncDir        DefaultGccIncludeDir
>> +#endif
>>  #define LdCombineFlags        -r
>>  #ifndef LdPostLib
>>  # define LdPostLib        /* Never needed */
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> --- xc/lib/font/bitmap/Imakefile    Tue Apr  3 10:51:59 2001
>> +++ xc/lib/font/bitmap/Imakefile.new    Tue May 15 12:40:13 2001
>> @@ -12,7 +12,6 @@
>>  SUBDIRS = module
>>  #endif
>>  
>> -#ifndef KDriveXServer
>>  BDFSRCS=bdfread.c bdfutils.c
>>  BDFOBJS=bdfread.o bdfutils.o
>>  BDFDEFS=-DBDFFORMAT
>> @@ -20,7 +19,6 @@
>>  SNFSRCS=snfread.c
>>  SNFOBJS=snfread.o
>>  SNFDEFS=-DSNFFORMAT
>> -#endif
>>  
>>  PCFSRCS=pcfread.c pcfwrite.c
>>  PCFOBJS=pcfread.o pcfwrite.o
>> 
>> XFree86.cross.rules.patch
>> 
>> Content-Type:
>> 
>> text/plain
>> Content-Encoding:
>> 
>> 7bit
>> 
>> 
>> ------------------------------------------------------------------------
>> XFree86.linux.cf.patch
>> 
>> Content-Type:
>> 
>> text/plain
>> Content-Encoding:
>> 
>> 7bit
>> 
>> 
>> ------------------------------------------------------------------------
>> bitmap.imakefile.patch
>> 
>> Content-Type:
>> 
>> text/plain
>> Content-Encoding:
>> 
>> 7bit
>> 
>> 
> 
> 
> 



_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to