Building Netsurf on arm-linux framebuffer

2011-04-18 Thread Sertac TULLUK
Dear Netsurf developers,

Firstly, I want to thank you for making such modular web browser.

I have an embedded device with arm926EJ-s chipset, which is using simple linux 
framebuffer. And I want to port Netsurf to my device.

I passed many sequences, but I finally stuck on compiling libnsfb with 
arm-linux-gcc.  When I compile it with my GCC, it compiles perfectly. but when 
I compile it with my cross-tool: arm-linux gcc, I get following error:

root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
 COMPILE: src/libnsfb.c
cc1: error: unrecognized command line option -Wno-overlength-strings
make: *** [build-Linux-Linux-release-lib-static/src_libnsfb.o] Error 1
root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb#


And then, I disable with #-Wno-overlength-strings, but this time I get another 
error as below:


root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
 COMPILE: src/libnsfb.c
 COMPILE: src/cursor.c
 COMPILE: src/plot/api.c
 COMPILE: src/plot/util.c
 COMPILE: src/plot/generic.c
 COMPILE: src/plot/32bpp.c
src/plot/32bpp.c: In function `get_xy_loc':
src/plot/32bpp.c:26: warning: cast increases required alignment of target type
make: *** [build-Linux-Linux-release-lib-static/src_plot_32bpp.o] Error 1
root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# cd ..

My feeling is that my crosstool need some modifications to compile netsurf...

Can you help me about how to compile netsurf correctly?

Best Regards

Sertac

Re: Building Netsurf on arm-linux framebuffer

2011-04-18 Thread Martin Bazley
The following bytes were arranged on 18 Apr 2011 by Sertac TULLUK:

 Dear Netsurf developers,

 Firstly, I want to thank you for making such modular web browser.

 I have an embedded device with arm926EJ-s chipset, which is using simple 
 linux framebuffer. And I want to port Netsurf to my device.

[snip]

The correct place for such discussion is the developers' mailing list,
which is detailed in the same place you got the address for this one
from.

-- 
  __^__   Start off every day with a smile and get it over with.
 / _   _ \  - W.C. Fields
( ( |_| ) )
 \_   _/  === Martin Bazley ==



Re: Building Netsurf on arm-linux framebuffer

2011-04-18 Thread John-Mark Bell
On Mon, Apr 18, 2011 at 10:56:11AM +0300, Sertac TULLUK wrote:
 Dear Netsurf developers,
 
 Firstly, I want to thank you for making such modular web browser.
 
 I have an embedded device with arm926EJ-s chipset, which is using 
 simple linux framebuffer. And I want to port Netsurf to my device.
 
 I passed many sequences, but I finally stuck on compiling libnsfb 
 with arm-linux-gcc.  When I compile it with my GCC, it compiles 
 perfectly. but when I compile it with my cross-tool: arm-linux gcc, I 
 get following error:
 
 root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
  COMPILE: src/libnsfb.c
 cc1: error: unrecognized command line option -Wno-overlength-strings
 make: *** [build-Linux-Linux-release-lib-static/src_libnsfb.o] Error 1
 root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb#

Which version of GCC are you using?

 And then, I disable with #-Wno-overlength-strings, but this time I 
 get another error as below:
 
 
 root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
  COMPILE: src/libnsfb.c
  COMPILE: src/cursor.c
  COMPILE: src/plot/api.c
  COMPILE: src/plot/util.c
  COMPILE: src/plot/generic.c
  COMPILE: src/plot/32bpp.c
 src/plot/32bpp.c: In function `get_xy_loc':
 src/plot/32bpp.c:26: warning: cast increases required alignment of target type
 make: *** [build-Linux-Linux-release-lib-static/src_plot_32bpp.o] Error 1

Replacing the (uint32_t *) with (void *) on line 26 of src/plot/32bpp.c 
should prevent that warning being generated. If that is the case, let us 
know and we'll fix that in SVN.

HTH,


John.



Re: Building Netsurf on arm-linux framebuffer

2011-04-18 Thread Sertac TULLUK

Dear John;

Thank you for your answer.

When I make this change, I got following error:

COMPILE: src/plot/16bpp.c
src/plot/16bpp.c: In function `fill':
src/plot/16bpp.c:72: warning: cast increases required alignment of target 
type

make: *** [build-Linux-Linux-release-lib-static/src_plot_16bpp.o] Hata 1
root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb#

This time, I modified 16bbp.c line 72, and modified as void *, and it 
compiled with my arm-linux-gcc perfectly..


And then, I compiled libparserutils with arm-linux-gcc, and it compiled 
succesfully.


And then, I compiled hubbub with arm-linux-gcc, and it compiled succesfully 
too.


And then, I tried to compile libcss.. But this time, I got tons of syntax 
error with arm-linux-gcc as follows:


root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libcss/0.1.0# make 
install

PREPARE: build-Linux-Linux-release-lib-static/gen_parser
GENERATE: src/parse/properties/autogenerated_z_index.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_word_spacing.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_width.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_widows.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_white_space.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_volume.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_visibility.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_vertical_align.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))

GENERATE: src/parse/properties/autogenerated_unicode_bidi.c
build-Linux-Linux-release-lib-static/gen_parser: 1: Syntax error: word 
unexpected (expecting ))



and it continues...

I tried to compile libcss with my gcc, and I compiled all libraries with 
gcc, and finally I get working netsurf on GTK for my kubuntu. And it has 
worked succesfully. I didn't try to compile for TARGET=framebuffer because I 
am running my kubuntu over vmware.


Can you help me to compile libcss with arm-linux-gcc please?

Best Regards

Sertac


- Original Message - 
From: John-Mark Bell j...@netsurf-browser.org

To: Sertac TULLUK ser...@merihvideo.com.tr
Cc: netsurf-users@netsurf-browser.org
Sent: Monday, April 18, 2011 4:13 PM
Subject: Re: Building Netsurf on arm-linux framebuffer



On Mon, Apr 18, 2011 at 10:56:11AM +0300, Sertac TULLUK wrote:

Dear Netsurf developers,

Firstly, I want to thank you for making such modular web browser.

I have an embedded device with arm926EJ-s chipset, which is using
simple linux framebuffer. And I want to port Netsurf to my device.

I passed many sequences, but I finally stuck on compiling libnsfb
with arm-linux-gcc.  When I compile it with my GCC, it compiles
perfectly. but when I compile it with my cross-tool: arm-linux gcc, I
get following error:

root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
 COMPILE: src/libnsfb.c
cc1: error: unrecognized command line option -Wno-overlength-strings
make: *** [build-Linux-Linux-release-lib-static/src_libnsfb.o] Error 1
root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb#


Which version of GCC are you using?


And then, I disable with #-Wno-overlength-strings, but this time I
get another error as below:


root@ubuntu:/home/stulluk/dev/MRH-1202/MRH-1201/netsurf/libnsfb# make
 COMPILE: src/libnsfb.c
 COMPILE: src/cursor.c
 COMPILE: src/plot/api.c
 COMPILE: src/plot/util.c
 COMPILE: src/plot/generic.c
 COMPILE: src/plot/32bpp.c
src/plot/32bpp.c: In function `get_xy_loc':
src/plot/32bpp.c:26: warning: cast increases required alignment of target 
type

make: *** [build-Linux-Linux-release-lib-static/src_plot_32bpp.o] Error 1


Replacing the (uint32_t *) with (void *) on line 26 of src/plot/32bpp.c
should prevent that warning being generated. If that is the case, let us
know and we'll fix that in SVN.

HTH,


John.