On Sat, 2011-12-17 at 16:35 +0100, Karsten Jeppesen wrote:
> Hi there,
> 
> Im new to this project, so bear with me if Im barking up the wrong tree.
> 
> I have made a Fedora based distribution to an ARM9263 processor 
> including using the rpm package system.
> My tool chain includes a full gcc4.4.2 cross.
> 
> Is there any documentation on how to proceed in the porting?

I don't think so, no.

> My first inclination was to export the trunk and then form 2 rpms. 
> NetSurfLib and NetSurf itself.

It's not clear why you'd want to install the libraries, but not the
browser, unless you're building shared libraries, in which case, a
package per library would make more sense.

> However I am hitting a few kinks which I believe is enough to start 
> asking these questions.
> Amongst others I am hit with the problem that gcc in a full cross will 
> refuse dumping the specs which in turn confuses NetSurfs makefile so it 
> wont find the libnsgif simply because it cant figure out what compiler 
> is in play.

This doesn't make much sense to me. NetSurf's buildsystem doesn't use
-dumpspecs to identify the compiler, or determine where libraries are
installed. It does rely on pkg-config, however, and expects that the
environment has been configured to allow pkg-config to find the
libraries you have installed.

The buildsystem used for the libraries does use -dumpspecs, but falls
back to parsing the output of $(CC) --version if that fails (which it
shouldn't, even with a full cross)

If you have successfully built and installed the libraries into a
prefix, then you can build NetSurf as follows:

export PKG_CONFIG_PATH="/path/to/install/prefix/lib/pkgconfig:
$(PKG_CONFIG_PATH)

make TARGET=gtk \
     CC=/path/to/cross/bin/gcc \
     PREFIX=/path/to/install/prefix

> So:
> - where to look for a porting procedure?

See above.

> - what libs and parts from the trunk are needed for the netsurf build?

Read Docs/BUILDING-GTK in the NetSurf source tree. The PACKAGING-GTK
document will probably be of some interest, too.

> - oo - and remember to state that automake > ver 1.1 if you want it to 
> compile. Otherwise you will get some strange errors,

NetSurf's buildsystem does not use autotools at all, so I don't
understand what it is that requires automake.


John-Mark.


Reply via email to