On Sat, 2009-06-06 at 10:11 +0200, Bernd Roesch wrote:

> 68k is big endian so i set too the define __Big_Endian.but it doesnt help.

Wherever NetSurf has endian-specific requirements, it consults
__BYTE_ORDER, which is usually defined by <endian.h>

> here are my makefile parts to get it compile ok.i want try out with freetype
> support 

Fine.

> and without Option  -DLIBXML_HTML_ENABLED.

Not at all fine -- NetSurf requires a libxml2 built with HTML support.

> i activate too this lines
> NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB and other for hubbub.

Hubbub has not been optional since before NetSurf 2.0 was released.
Therefore, this has no effect at all.

> but i get then compiler errors.read below what i get.
> 
> ifeq ($(TARGET),framebuffer)
>   #$(eval $(call feature_enabled,MNG,-DWITH_MNG,-lmng,PNG support))
>   $(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng -lz,PNG support))
>   NETSURF_FB_FRONTEND := sdl 

This will break any attempt to build any other framebuffer frontend.
You should create a file called Makefile.config and put the above line
in it.

> 
>   ifeq ($(NETSURF_FB_FRONTEND),sdl)
> #    $(eval $(call pkg_config_find_and_add,RSVG,librsvg-2.0,SVG rendering))
> #    $(eval $(call pkg_config_find_and_add,ROSPRITE,librosprite,RISC OS
> sprite rendering))
> #    $(eval $(call pkg_config_find_and_add,BMP,libnsbmp,NetSurf BMP
> decoder))
> #    $(eval $(call pkg_config_find_and_add,GIF,libnsgif,NetSurf GIF
> decoder))
> #    $(eval $(call pkg_config_find_and_add,SDL,libSDL,SDL Library))
>   NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE
>   #NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB
>   NETSURF_FEATURE_BMP_CFLAGS := -DWITH_BMP
>   NETSURF_FEATURE_GIF_CFLAGS := -DWITH_GIF
>   NETSURF_FEATURE_PNG_CFLAGS := -DWITH_PNG
>   NETSURF_FEATURE_NSSVG_CFLAGS := -DWITH_NS_SVG
> 
>     $(eval $(call feature_enabled,ROSPRITE,-DWITH_NSSPRITE,-lrosprite,RISC
> OS Sprite decoder))
> #    $(eval $(call feature_enabled,HUBBUB,-DWITH_HUBBUB,-lhubbub
> -lparserutils,Hubbub HTML parser))
>     $(eval $(call feature_enabled,BMP,-DWITH_BMP,-lnsbmp,NetSurf BMP
> decoder))
>     $(eval $(call feature_enabled,GIF,-DWITH_GIF,-lnsgif,NetSurf GIF
> decoder))
>     $(eval $(call feature_enabled,PNG,-DWITH_PNG,-lpng,PNG support))
> 
>     CC := m68k-amigaos-gcc

This seems wrong.

> #  some options  -DLIBXML_HTML_ENABLED -DFB_USE_FREETYPE
>     CFLAGS += -std=c99 -g   -D__BIG_ENDIAN  -DLIBXML_HTML_ENABLED

This makes no sense -- LIBXML_HTML_ENABLED is defined (or not) by
libxml's xmlversion.h. You shouldn't be defining it on the compiler
command line at all.

> -DPATH_MAX=255 -I/usr/local/amiga/m68k-amigaos/include -I. $(WARNFLAGS) 
> -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L  -m68040
>     LDFLAGS +=  -Wl,-Map=file.map  -liconv -lsdl -lgl_dummy -lxml2 -lcurl
> -lssl -lcrypto  -lfreetype -lhubbub -lparserutils -ldebug -lz
>     SUBTARGET := -sdl
>   endif
> 
> ----------------------------------------------------------------------------------------------
> 
> when i want use freetype i get this error.(i use libfreetype 2.3.8 from
> 27.2.2009)

How have you told NetSurf that you want the Freetype font support?
You should have NETSURF_FB_FONTLIB := freetype in your Makefile.config.

>  COMPILE: framebuffer/fb_font_internal.c

This file should not be compiled if you've correctly told the
buildsystem that you want Freetype support, instead. All the errors are
a result of this.

> ---------------------------------------------------------------------------------------------------------------
> 
> when i want use hubbub i get that error.
> 
>  COMPILE: render/hubbub_binding.c
> render/hubbub_binding.c:41: error: syntax error before "htmlDocPtr"
> render/hubbub_binding.c:41: warning: no semicolon at end of struct or union
> render/hubbub_binding.c:54: error: syntax error before '}' token
> render/hubbub_binding.c:54: warning: type defaults to `int' in declaration
> of `h
> ubbub_ctx'
> render/hubbub_binding.c:54: warning: data definition has no type or storage
> clas
> s
> render/hubbub_binding.c:59: error: conflicting types for 'namespaces'
> render/hubbub_binding.c:48: error: previous declaration of 'namespaces' was
> here

These are a result of you using a version of libxml that was not built
with HTML support enabled.


J.


Reply via email to