log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: When building GTK Netsurf on Ubuntu
 
  When building GTK Netsurf on Ubuntu
  MikeCarter (20:25 17/8/2007)
  nunfetishist (18:35 18/8/2007)
    MikeCarter (20:15 18/8/2007)
      jmb (20:31 18/8/2007)
        MikeCarter (09:45 19/8/2007)
          jmb (11:33 19/8/2007)
            MikeCarter (14:53 27/8/2007)
              nunfetishist (20:24 27/8/2007)
                andypoole (21:18 27/8/2007)
                MikeCarter (07:52 28/8/2007)
                  nunfetishist (16:01 28/8/2007)
 
Mike Message #104013, posted by MikeCarter at 20:25, 17/8/2007
MikeCarter

Posts: 401
It comes out with this:

make gtk
cd css; lemon parser.y
/bin/sh: lemon: not found
make: [css/parser.c] Error 127 (ignored)
--> modified files
--> updating dependencies
Failed to open css/parser.c: No such file or directory at scandeps line 14.
make: *** [depend] Error 2

Anyone know what the problem is?

Edit: woops, iv worked it out.

Edit Again: wooo! its compiling

Edit Once again: Curses it came out with an error and didnt produce an executable:

collect2: ld returned 1 exit status
make: *** [nsgtk] Error 1

And the problem is fixed thanks to jmb.

[Edited by MikeCarter at 22:31, 17/8/2007]
  ^[ Log in to reply ]
 
Rob Kendrick Message #104022, posted by nunfetishist at 18:35, 18/8/2007, in reply to message #104013
nunfetishist
Today's phish is trout a la creme.

Posts: 524
You didn't read the documentation like I suggested last time you asked, did you?

First thing: Install dependancies mentioned in documentation.
  ^[ Log in to reply ]
 
Mike Message #104023, posted by MikeCarter at 20:15, 18/8/2007, in reply to message #104022
MikeCarter

Posts: 401
I did, I forgot to get lemon and re2c.

Well I got an executable, I think I did this:

"Once you've built NetSurf, you should have an executable called nsgtk. You
can't run this directly without setting up some environment variables so that
NetSurf can find its resources (such as the window definitions, text resources"
[Edited by MikeCarter at 10:45, 19/8/2007]
  ^[ Log in to reply ]
 
JMB Message #104024, posted by jmb at 20:31, 18/8/2007, in reply to message #104023
Member
Posts: 467
"Once you've built NetSurf, you should have an executable called nsgtk. You
can't run this directly without setting up some environment variables so that
NetSurf can find its resources (such as the window definitions, text resources"
Well, the sentence in the documentation immediately subsequent to the above reads:

A small shell script called "netsurf" is provided to make it easy to run NetSurf from the build tree.
So, simply do ./netsurf from within the build tree to run it.

[Edited by jmb at 23:58, 18/8/2007]
  ^[ Log in to reply ]
 
Mike Message #104030, posted by MikeCarter at 09:45, 19/8/2007, in reply to message #104024
MikeCarter

Posts: 401
I can run it, but as soon as it starts to load a page it closes.
  ^[ Log in to reply ]
 
JMB Message #104031, posted by jmb at 11:33, 19/8/2007, in reply to message #104030
Member
Posts: 467
I can run it, but as soon as it starts to load a page it closes.
Make sure that the gtk/res directory contains the following (specifically the symlinks):


lrwxrwxrwx 1 jmb jmb 36 2007-08-19 12:36 adblock.css -> ../../!NetSurf/Resources/AdBlock,f79
lrwxrwxrwx 1 jmb jmb 34 2007-08-19 12:36 ca-bundle.txt -> ../../!NetSurf/Resources/ca-bundle
lrwxrwxrwx 1 jmb jmb 32 2007-08-19 12:36 default.css -> ../../!NetSurf/Resources/CSS,f79
drwxr-xr-x 2 jmb jmb 160 2007-08-14 19:40 docs
lrwxrwxrwx 1 jmb jmb 36 2007-08-19 12:36 messages -> ../../!NetSurf/Resources/en/Messages
-rw-r--r-- 1 jmb jmb 225494 2007-08-12 00:33 netsurf.glade
-rw-r--r-- 1 jmb jmb 13926 2007-05-17 21:02 netsurf-logo.png
-rw-r--r-- 1 jmb jmb 39102 2007-02-10 01:56 netsurf.xpm
-rw-r--r-- 1 jmb jmb 5175 2006-08-24 18:24 throbber.gif



These are present in the 1.1 source tarball and if you check the sources out from SVN.
  ^[ Log in to reply ]
 
Mike Message #104152, posted by MikeCarter at 14:53, 27/8/2007, in reply to message #104031
MikeCarter

Posts: 401
Woo! I finally did it.
nsgtkscreen.png 1280x1024 835.4KB
nsgtkscreen....
1280x1024
835.4KB

  ^[ Log in to reply ]
 
Rob Kendrick Message #104159, posted by nunfetishist at 20:24, 27/8/2007, in reply to message #104152
nunfetishist
Today's phish is trout a la creme.

Posts: 524
What took you so long? Was the documentation not clear enough?
  ^[ Log in to reply ]
 
Andrew Poole Message #104160, posted by andypoole at 21:18, 27/8/2007, in reply to message #104159
andypoole
Mouse enthusiast
Web
Twitter

Posts: 5558
What took you so long? Was the documentation not clear enough?
I rather thought the documentation was clear enough. Only took me a couple of minutes to get a working NetSurf on my Ubuntu machine, and that included the time to make the cup of tea smile
  ^[ Log in to reply ]
 
Mike Message #104164, posted by MikeCarter at 07:52, 28/8/2007, in reply to message #104159
MikeCarter

Posts: 401
What took you so long? Was the documentation not clear enough?
Nope the documentation was fine, the first time i attempted I forgot to get Lemon and Re2c but when I it still didnt work. Anyway after mucking around with ubuntu a bit more dad did something what stopped x from loading, so we did a fresh installation then I followed the documentation properly and it complied properly first time.
  ^[ Log in to reply ]
 
Rob Kendrick Message #104174, posted by nunfetishist at 16:01, 28/8/2007, in reply to message #104164
nunfetishist
Today's phish is trout a la creme.

Posts: 524
Nope the documentation was fine, the first time i attempted I forgot to get Lemon and Re2c but when I it still didnt work.
The documentation tells you how to install these in such a way that the NetSurf build system will use them perfectly (ie, apt-get install re2c lemon). What was the issue?
Anyway after mucking around with ubuntu a bit more dad did something what stopped x from loading, so we did a fresh installation
wtf? Do not let numpties do rootly things. smile
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: When building GTK Netsurf on Ubuntu