Netsurf for Arm-linux
Dear All; Here is my latest point for arm-linux: http://pastebin.com/dS6XsMTY What is the meaning of that error? BR Sertac
Re: Building Netsurf on arm-linux framebuffer
> On Tue, Apr 19, 2011 at 12:18:09PM +0300, Sertac TULLUK wrote: > Result is : http://pastebin.com/W5z2Uett >This looks like you don't have libpng in your cross built environment. >Either add libpng to the cross-env, or put: >override NETSURF_USE_PNG := NO >In your Makefile.config >D. Dear All; Sorry for late reply... Some of your e-mails does not arrive directly, I can only see them from digest.. I have cross compiled zlib, libpng and openssl for my arm crosstool. Hopefully, it does not complain about png.h anymore, but this time it complain about openssl. I tried CFLAGS, LDFLAGSetc but no result.. Here is my latest point: http://pastebin.com/8RDgKDmR I can't understand why my cross compiler can find zlib, libpng but can't find openssl ? Waiting for your further instructions to continue... Best Regards..
Re: Building Netsurf on arm-linux framebuffer
Ok, below is the summary of what I do (For cross-compiling NetSurf web browser for ARM926-EJs running under embedded linux): 1) Download latest snapshot of netsurf 2.7 2) cd netsurf, export CC=arm-linux-gcc 3) mkdir libs, cd libs 4) read /docs/BUILDING-Framebuffer.txt file, and use svn co, and checkout all 8 dependencies required by framebuffer build. 5) go to libnsfb folder, modify makefile for #-Wno-overlength-strings; go to /src/plot, and modify 16bbp and 32bbp files with void * 6) make install all 7 dependencies with arm-linux-gcc except libcss. They will compile&install fine. 7) cd to libcss, and use make HOST_CC=gcc install; and it will compile&install succesfully too. 8) Finally, go to top dir of netsurf, and make TARGET=framebuffer. Result is : http://pastebin.com/W5z2Uett Waiting for further instructions, thank you very much for all your helps&time...
Re: Building Netsurf on arm-linux framebuffer
Ok. Can you also pastebin the output of "make Q=" in libcss? Here is make -Q result with GCC: http://pastebin.com/STZ3Uiah And here is make -Q result with ARM-LINUX-GCC: http://pastebin.com/aVQFdPgm You probably want CC=arm-linux-gcc and leave HOST_CC alone. John. Here is my current point with arm-linux-gcc: http://pastebin.com/Vrqx6B9E Waiting for further instructions... Again, many thanks...
Re: Building Netsurf on arm-linux framebuffer
Please avoid top-posting on this list. Thanks! Sorry for this, I will do my best to avoid... OK. Thanks for that; that'll be fixed in SVN soon. Thank you, I hope I can make some contribution to netsurf project positively.. This sounds very much like you've used the cross compiler to build the gen_parser tool, which needs to run on the build host. How is your environment configured? In most cross-compilation set ups, the cross compiler is named ---gcc and the host compiler is simply gcc. If, in fact, your cross-compiler is named gcc and the host compiler is named something else, you'll need to tell make the name of your host compiler, thus: make HOST_CC= install Here is my printenv: http://pastebin.com/6KsRz5uF Here is my host compiler: http://pastebin.com/5VibhLjF Here is my cross_compiler: http://pastebin.com/tU7GaX8Q 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. Sure, that's normal. I also tested compiling for Framebuffer for my kubuntu over vmware, and it compiled succesfully and generate nsfb executable succesfully too.. Here is my latest point with arm-linux-gcc: http://pastebin.com/B42u2xb4 I tried make clean, but it still give link error as above. I will continue with your further instructions. Again, many many thanks for all your helps and interest. Best Regards
Re: Building Netsurf on arm-linux framebuffer
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" To: "Sertac TULLUK" Cc: 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.
Building Netsurf on arm-linux framebuffer
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