Right... My goal, as the thread title states, is to compile Firefox 4 (I'm running Slackware). However, I've run into a couple of problems. I downloaded the source from
ftp://ftp.mozilla.org/pub/mozilla.or...source.tar.bz2, and untarred it. It then turned out that compiling Firefox is more complicated than I expected, so following
https://developer.mozilla.org/En/Dev...d_Instructions as closely as possible, I created the following .mozconfig file (taken from the same tutorial, and adding the 'webm' option to remove the need to install YASM:
Code:
. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt
ac_add_options --enable-application=browser
ac_add_options --disable-tests
ac_add_options --disable-webm
I run 'make -f client.mk' and get:
Code:
checking for GL/glx.h... no
configure: error: Can't find header GL/glx.h for WebGL (install mesa-common-dev (Ubuntu), mesa-libGL-devel (Fedora), or Mesa (SuSE))
*** Fix above errors and then restart with "make -f client.mk build"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/usr/local/src/mozilla-central'
make: *** [/usr/local/src/mozilla-central/ff-opt/Makefile] Error 2
At this point, I should point out that '/usr/include/GL/glx.h' exists. So I suspect one solution would be to persuade firefox to find this, but I haven't found any options that would allow me to do this ("--includedir=/usr/include" doesn't work). I also couldn't find any mention of Mesa in the firefox dependencies, but nor could I find an option to disable WebGL (my suspected solution number 2).
I then tried to install Mesa... However, I use the nvidia driver, which it doesn't seem to support. I do seem to have some sort of Nvidia equivalent (I don't know exactly what) because if I run glxinfo I get:
Code:
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
... stuff ...
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
... stuff ...
GLX version: 1.4
GLX extensions:
... stuff ...
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 9800 GT/PCI/SSE2
OpenGL version string: 3.3.0 NVIDIA 260.19.36
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL extensions:
... stuff ...
So... I suspect there are two solutions:
(1) Persuade firefox that yes, a satisfactory OpenGL thingy exists on my system
(2) Disable WebGL support.
However, if you have better ideas, fire away
any hints would be appreciated
Thanks,