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
- Archive Edition 27:2 reviewed (News:)
- RISC OS 5.30 arrives (News:12)
- Rougol Talk May 2024 - Andy Vawer (News:)
- Rougol May 2024 meeting on monday with Andy Vawer (News:1)
- WROCC May 2024 meeting - Gerph talks games (News:)
- Drag'n'Drop 13i3 edition reviewed (News:1)
- Wakefield Show 2024 in Pictures (News:5)
- April 2024 News Summary (News:2)
- Upgrading your RISC OS system to 5.30 (News:2)
- WROCC May 2024 meeting on wednesday - Gerph talks games (News:)
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
The Icon Bar: Programming: When building GTK Netsurf on Ubuntu
 
  When building GTK Netsurf on Ubuntu
  MikeCarter (21:25 17/8/2007)
  nunfetishist (19:35 18/8/2007)
    MikeCarter (21:15 18/8/2007)
      jmb (21:31 18/8/2007)
        MikeCarter (10:45 19/8/2007)
          jmb (12:33 19/8/2007)
            MikeCarter (15:53 27/8/2007)
              nunfetishist (21:24 27/8/2007)
                andypoole (22:18 27/8/2007)
                MikeCarter (08:52 28/8/2007)
                  nunfetishist (17:01 28/8/2007)
 
Mike Message #104013, posted by MikeCarter at 21: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 19:35, 18/8/2007, in reply to message #104013
nunfetishist
Today's phish is trout a la creme.

Posts: 522
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 21: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 21: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 10: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 12: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 15: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 21:24, 27/8/2007, in reply to message #104152
nunfetishist
Today's phish is trout a la creme.

Posts: 522
What took you so long? Was the documentation not clear enough?
  ^[ Log in to reply ]
 
Andrew Poole Message #104160, posted by andypoole at 22: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 08: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 17:01, 28/8/2007, in reply to message #104164
nunfetishist
Today's phish is trout a la creme.

Posts: 522
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 ]
 

The Icon Bar: Programming: When building GTK Netsurf on Ubuntu