tomas_em
Posts: 12
Joined: Fri Jun 08, 2012 7:52 am

Netsurf Framebuffer

Fri Jun 08, 2012 8:05 am

Hi,

I try to compile Netsurf browser from source with Framebuffer support from the source. I sucessfully compiled the 2.8 version, got nsfb binary, but it does not work. When I run them in verbose mode, then I get some error mesages about framebuffer and then he returns back to commandline.

BTW: I tried the SCUMMVM emulator in framebuffer and it works (just I have to to lower the resolution first to 960*576), so I think, that framebuffer is working correctly.

Any ideas?

m0n0
Posts: 3
Joined: Mon Jun 11, 2012 11:51 am

Re: Netsurf Framebuffer

Mon Jun 11, 2012 11:54 am

Hello,

first - you should build version 2.9 - besides several improvements, the 2.8 has an non-functional linux framebuffer implementation. ( kernel framebuffer )

So, checkout 2.9

If you still have problems, please post the complete verbose log.

Thanks.

lenod
Posts: 21
Joined: Wed May 23, 2012 3:57 pm

Re: Netsurf Framebuffer

Wed Jun 20, 2012 2:33 pm

Did you finally manage to compile it?

I get this compilation error (on 2.9, make TARGET=framebuffer):

In file included from build-Linux-framebuffer/caret_image.c:16:
./framebuffer/fbtk.h:57: error: expected specifier-qualifier-list before ‘nsfb_event_t’
./framebuffer/fbtk.h:92: error: expected ‘)’ before ‘*’ token
./framebuffer/fbtk.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
./framebuffer/fbtk.h:165: error: expected declaration specifiers or ‘...’ before ‘nsfb_event_t’
./framebuffer/fbtk.h:169: error: expected declaration specifiers or ‘...’ before ‘nsfb_event_t’
./framebuffer/fbtk.h:173: error: expected declaration specifiers or ‘...’ before ‘nsfb_event_t’


I also tried $links2 -g with links2 from the debian repos, and I get pink stripes and killing links2 doesn't remove them (need to reboot to get back my screen).

Do you have any clue (for links2 or netsurf?)

m0n0
Posts: 3
Joined: Mon Jun 11, 2012 11:51 am

Re: Netsurf Framebuffer

Wed Jun 20, 2012 9:36 pm

Did you finally manage to compile it?
I never tried to compile it for rasperry pi - I don't even have one. I just compile netsurf for the Atari OS FreeMiNT.

About your errors:

Did you install libnsfb properly? What does pkconfig output for the libnsfb includes?

Please compile and install libnsfb first. It looks like some struct isn't declared - which probably only happens when you did not compiled/installed libnsfb.

Edit:
make sure that you install the libnsfb that comes with release 2.9. There where some significant changes, so maybe some structs have changed or where added.

Please read the document BUILDING-Framebuffer within the docs directory.

lenod
Posts: 21
Joined: Wed May 23, 2012 3:57 pm

Re: Netsurf Framebuffer

Thu Jun 21, 2012 8:40 am

I did "make TARGET=framebuffer' in the root directory, and I see it is intended to compile libnsfb which is included. I also installed the dependencies described in the doc.

Still, i went to the libnsfd directory and tried to compile it and got:

COMPILE: src/plot/api.c
cc1: warnings being treated as errors
src/plot/api.c: In function ‘nsfb_plot_copy’:
src/plot/api.c:151: error: cast increases required alignment of target type
src/plot/api.c:162: error: cast increases required alignment of target type

Why are the warnings treated as errors?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Netsurf Framebuffer

Thu Jun 21, 2012 10:39 am

lenod wrote:Why are the warnings treated as errors?
-Werror ?

lenod
Posts: 21
Joined: Wed May 23, 2012 3:57 pm

Re: Netsurf Framebuffer

Thu Jun 21, 2012 11:58 am

?

m0n0
Posts: 3
Joined: Mon Jun 11, 2012 11:51 am

Re: Netsurf Framebuffer

Thu Jun 21, 2012 7:35 pm

These warnings are platform-specific... they should not happen, but now you have to deal with it.
I think the easiest solution is to remove the -Werror flag from the libnsfb build.

Return to “Arch”