rbouqueau / gpac

GPAC mirror from the SourceForge Subversion
GNU Lesser General Public License v2.1
0 stars 1 forks source link

[Bug] Error detecting Xulrunner [sf#211] #211

Closed rbouqueau closed 10 years ago

rbouqueau commented 10 years ago

Reported by wernam on 2010-09-14 11:51 UTC Hi all, When i use ./configure it detects no Xulrunner, but i have it into extra_lib/include directory (source: ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.8b1/gecko- sdk-i686-pc-linux-gnu-gtk2+xft-1.8b1.tar.gz ) So I decided to force it changing config.mak with this values:

CONFIG_XUL=local XUL_CFLAGS=-I/home/wernam/gpac/extra_lib/include/gecko-sdk/include

And it compile fine, so it should be something wrong into configure Wernam

rbouqueau commented 10 years ago

Commented by rbouqueau on 2010-09-16 08:52 UTC Hi Wernam,

I need your help to reproduce this one! Can you edit your configure file, and add this code line 1496 (just before the xul-runner test in fact): echo "" echo " XULRUNNER (system) " echo "" echo "$cc -o $TMPO $TMPCPP -I$xulsdk_path" $cc -o $TMPO $TMPCPP -I$xulsdk_path

echo "" echo " XULRUNNER (local) " echo "" echo "$cc -o $TMPO $TMPCPP $xul_flags -I$local_inc/gecko-sdk/include" $cc -o $TMPO $TMPCPP $xul_flags -I$local_inc/gecko-sdk/include

if $cc -o $TMPO $TMPCPP -I$xulsdk_path 2> /dev/null ; then has_xul="system" xul_flags="-I$xulsdk_path $xul_flags" else if $cc -o $TMPO $TMPCPP $xul_flags -I$local_inc/gecko-sdk/include 2> /dev/null ; then has_xul="local" xul_flags="-I$local_inc/gecko-sdk/include $xul_flags" fi fi

Can you tell me what it prints when you execute configure? Thanks Romain

rbouqueau commented 10 years ago

Commented by wernam on 2010-09-16 10:30 UTC Hi Romain,

The xulrunner version I have into my computer is: xulrunner1.9.2 - dev Here you have the results(I supposed that you only want this, the rest is normal configuration parameters):

XULRUNNER (system)

gcc -o /tmp/gpac-conf--2637-.o /tmp/gpac-conf--2637-.cpp -I/usr/lib/xulrunner/sdk/include /tmp/gpac-conf--2637-.cpp:1:31: error: nsIServiceManager.h: No existe el archivo o directorio

XULRUNNER (local)

gcc -o /tmp/gpac-conf--2637-.o /tmp/gpac-conf--2637-.cpp -I/home/juan/gpac/gpac/extra_lib/include/gecko-sdk/include In file included from /home/juan/gpac/gpac/extra_lib/include/gecko-sdk/include/nsIServiceManager.h:178, from /tmp/gpac-conf--2637-.cpp:1: /home/juan/gpac/gpac/extra_lib/include/gecko-sdk/include/nsServiceManagerUtils.h:42:39: error: nsIServiceManagerObsolete.h: No existe el archivo o directorio

I have also try the last gecko-sdk version (that is xulrunner 1.9.2), the configure don't detec it, and if I force to use it, this is the error:

g++ -fno-strict-aliasing -DGPAC_HAVE_CONFIG_H -I/home/juan/gpac/gpac -I/home/juan/Downloads/xulrunner-sdk/include -I/home/juan/gpac/gpac/include -DXP_UNIX -DMOZ_X11 -DNPBASIC_EXPORTS -DMOZILLA_STRICT_API -DXPCOM_GLUE -c -o osmozilla.o osmozilla.cpp In file included from osmozilla.h:43, from osmozilla.cpp:47: npplat.h:52:19: error: npupp.h: No existe el archivo o directorio ... (an then all crush)

But I think that you already know this :D Hope to help you

Wernam

rbouqueau commented 10 years ago

Commented by rbouqueau on 2010-09-16 13:02 UTC ok first, thanks for helping us :)

we can see that configure fails with both "system" and "local" compilation, which is inconsistent with your modification in config.mak (osmozilla can't compile if configure fails)

I had 1.9 xulrunner installed on Ubuntu 9.04. It worked fine. When I update to xulrunner-1.9.2, libjs and xulrunner are mixed. I'll have a look when I find time.

Romain

rbouqueau commented 10 years ago

Updated by jeanlf on 2012-07-13 15:55 UTC