Hello 

i download yesterday the netsurf source from your svn and compile it for
framebuffer sdl for m68k-amigaos.the amiga build i cant use because it use
some closed source GUI classes that 68k amiga os not have.So i build to make
it easy the sdl
Version. 
 
The SDL binary work, it load pages and it is possible to click on a link and
new content is load from inet,but no correct text or graphic is see.i see in
logging for filesystem action no font want load.

I use netsurf on a 32 bit screen.see screenshot how it look.

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

mng support i have deactivate.

here are my makefile parts to get it compile ok.i want try out with freetype
support and without Option  -DLIBXML_HTML_ENABLED.i activate too this lines
NETSURF_FEATURE_HUBBUB_CFLAGS := -DWITH_HUBBUB and other for hubbub.

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 


  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
#  some options  -DLIBXML_HTML_ENABLED -DFB_USE_FREETYPE
    CFLAGS += -std=c99 -g   -D__BIG_ENDIAN  -DLIBXML_HTML_ENABLED
-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)

 COMPILE: framebuffer/fb_font_internal.c
framebuffer/fb_font_internal.c:38: warning: no previous prototype for
'fb_get_fo
nt'
framebuffer/fb_font_internal.c: In function `fb_get_font':
framebuffer/fb_font_internal.c:39: error: `font_vga_8x16' undeclared (first
use
in this function)
framebuffer/fb_font_internal.c:39: error: (Each undeclared identifier is
reporte
d only once
framebuffer/fb_font_internal.c:39: error: for each function it appears in.)
framebuffer/fb_font_internal.c: At top level:
framebuffer/fb_font_internal.c:46: warning: no previous prototype for
'utf8_to_f
ont_encoding'
framebuffer/fb_font_internal.c: In function `utf8_to_font_encoding':
framebuffer/fb_font_internal.c:47: error: dereferencing pointer to
incomplete ty
pe
framebuffer/fb_font_internal.c: In function `nsfont_width':
framebuffer/fb_font_internal.c:64: error: dereferencing pointer to
incomplete ty
pe
framebuffer/fb_font_internal.c: In function `nsfont_position_in_string':
framebuffer/fb_font_internal.c:86: error: dereferencing pointer to
incomplete ty
pe
framebuffer/fb_font_internal.c:89: error: dereferencing pointer to
incomplete ty
pe
framebuffer/fb_font_internal.c: In function `nsfont_split':
framebuffer/fb_font_internal.c:117: error: dereferencing pointer to
incomplete t
ype
framebuffer/fb_font_internal.c:127: error: dereferencing pointer to
incomplete t
ype
make: ***
[build-CYGWIN_NT-5.1-framebuffer-sdl/framebuffer_fb_font_internal.o] E
rror 1

---------------------------------------------------------------------------------------------------------------

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

----------------------------------------------------

my makefile parts are then this.

  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
#  some options  -DLIBXML_HTML_ENABLED -DFB_USE_FREETYPE
    CFLAGS += -std=c99 -g   -D__BIG_ENDIAN  -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

please help, how can i get netsurf sdl working ok ?

Regards

<<attachment: netsurf_fb_sdl.png>>

Reply via email to