kakinchan / gecko-mediaplayer

Automatically exported from code.google.com/p/gecko-mediaplayer
GNU General Public License v2.0
0 stars 0 forks source link

Does not build with Firefox 4 #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Trying to build gecko-mediaplayer 0.9.99rc1 with Firefox 4.0 Beta 4
2. ./configure works but make aborts with error
3. Console output:
mv -f .deps/plugin_types_std.Tpo .deps/plugin_types_std.Po
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\" -fshort-wchar 
-I/usr/include/xulrunner-2.0b4 -I/usr/include/nspr4   -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DHAVE_GCONF 
-DMOZILLA_STRICT_API -DXP_UNIX    -g -O2 -MT plugin.o -MD -MP -MF 
.deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from /usr/include/xulrunner-2.0b4/nscore.h:50:0,
                 from /usr/include/xulrunner-2.0b4/nsrootidl.h:11,
                 from /usr/include/xulrunner-2.0b4/nsISupports.h:10,
                 from /usr/include/xulrunner-2.0b4/nsIPrefBranch.h:10,
                 from plugin.cpp:45:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:107:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:111:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:115:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:118:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:122:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:125:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:129:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:132:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:226:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:232:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:238:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:244:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:300:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b4/mozilla/mozalloc.h:306:27: error: ‘moz_malloc’ 
was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObjectControls::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1579:5: error: ‘moz_strdup’ was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObject::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1902:5: error: ‘moz_strdup’ was not declared in this scope
make[3]: *** [plugin.o] Fehler 1
make[3]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/m/Downloads/gecko-mediaplayer-0.9.99.rc1'
make: *** [all] Fehler 2

Original issue reported on code.google.com by mdeissen...@gmail.com on 1 Sep 2010 at 7:09

GoogleCodeExporter commented 8 years ago
Those actually look like mozilla errors to me...

I have not been able to try firefox4 yet so I haven't tested this yet.

Original comment by kdeko...@gmail.com on 1 Sep 2010 at 12:40

GoogleCodeExporter commented 8 years ago
SVN has been patched to compile against xulrunner 2.0beta 5 or something higher 
than beta4. There were some bugs in beta4 that prevented the code from working.

Original comment by kdeko...@gmail.com on 3 Sep 2010 at 12:46

GoogleCodeExporter commented 8 years ago
Apparently the SVN still doesnt work with 2.0beta 5.

Console output:
make[3]: Entering directory `/home/m/gecko-mediaplayer-read-only/src'
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\" -fshort-wchar 
-I/usr/include/xulrunner-2.0b5 -I/usr/include/nspr4   -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -pthread -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DHAVE_GCONF 
-DMOZILLA_STRICT_API -DXP_UNIX    -g -O2 -MT plugin.o -MD -MP -MF 
.deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from /usr/include/xulrunner-2.0b5/nscore.h:50:0,
                 from /usr/include/xulrunner-2.0b5/nsrootidl.h:11,
                 from /usr/include/xulrunner-2.0b5/nsISupports.h:10,
                 from /usr/include/xulrunner-2.0b5/nsIPrefBranch.h:10,
                 from plugin.cpp:45:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:107:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:111:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:115:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:118:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:122:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:125:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:129:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:132:5: error: expected 
initializer before ‘NS_ATTR_MALLOC’
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:226:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:232:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:238:28: error: 
‘moz_xmalloc’ was not declared in this scope
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const std::nothrow_t&)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:244:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new(size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:300:27: error: ‘moz_malloc’ 
was not declared in this scope
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h: In function ‘void* operator 
new [](size_t, const mozilla::fallible_t&)’:
/usr/include/xulrunner-2.0b5/mozilla/mozalloc.h:306:27: error: ‘moz_malloc’ 
was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObjectControls::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1604:5: error: ‘moz_strdup’ was not declared in this scope
plugin.cpp: In member function ‘virtual bool 
ScriptablePluginObject::InvokeDefault(const NPVariant*, uint32_t, 
NPVariant*)’:
plugin.cpp:1927:5: error: ‘moz_strdup’ was not declared in this scope
make[3]: *** [plugin.o] Fehler 1
make[3]: Leaving directory `/home/m/gecko-mediaplayer-read-only/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/m/gecko-mediaplayer-read-only/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/m/gecko-mediaplayer-read-only'
make: *** [all] Fehler 2

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 6:29

GoogleCodeExporter commented 8 years ago
Can you please show you configure command and output. It appears that libxul 
2.0 is not being detected and the -DMOZ_NO_MOZALLOC is not being added. 

If you are using the --with-xulrunner-sdk parameter you need to also have 
--enable-new-libxul 

I also made a slight patch to this code path that may help. SVN r407

Original comment by kdeko...@gmail.com on 8 Sep 2010 at 12:49

GoogleCodeExporter commented 8 years ago
m@linux-n3lx:~/gecko-mediaplayer-read-only> ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib                                                   

checking for sys/types.h... yes                                                 

checking for sys/stat.h... yes                                                  

checking for stdlib.h... yes                                                    

checking for string.h... yes                                                    

checking for memory.h... yes                                                    

checking for strings.h... yes                                                   

checking for inttypes.h... yes                                                  

checking for stdint.h... yes                                                    

checking for unistd.h... yes                                                    

checking locale.h usability... yes                                              

checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de es fr ja it nl pl pt_BR tr
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GECKO... no
configure: libxul >= 2.0.0 not found, trying another
checking for GECKO... no
configure: WARNING: libxul < 1.9.2 not found, trying another
checking for GECKO... yes
configure: Using libxul >= 1.9.2
checking for NSPR... yes
checking for DBUS... yes
checking for GCONF... yes
Using config source xml:merged:/etc/gconf/gconf.xml.schemas for schema 
installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for GIO... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gecko-mediaplayer.spec
config.status: creating src/Makefile
config.status: creating src/libgmlib/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir 
setting
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
m@linux-n3lx:~/gecko-mediaplayer-read-only>

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 2:13

GoogleCodeExporter commented 8 years ago
m@linux-n3lx:~/gecko-mediaplayer-read-only> ./configure --with-xulrunner-sdk 
--enable-new-libxul
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de es fr ja it nl pl pt_BR tr
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for NSPR... yes
checking for DBUS... yes
checking for GCONF... yes
Using config source xml:merged:/etc/gconf/gconf.xml.schemas for schema 
installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for GIO... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gecko-mediaplayer.spec
config.status: creating src/Makefile
config.status: creating src/libgmlib/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir 
setting
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands

m@linux-n3lx:~/gecko-mediaplayer-read-only> make
make  all-recursive
make[1]: Entering directory `/home/matthias/gecko-mediaplayer-read-only'
Making all in src
make[2]: Entering directory `/home/matthias/gecko-mediaplayer-read-only/src'
Making all in libgmlib
make[3]: Entering directory 
`/home/matthias/gecko-mediaplayer-read-only/src/libgmlib'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Leaving directory 
`/home/matthias/gecko-mediaplayer-read-only/src/libgmlib'
make[3]: Entering directory `/home/matthias/gecko-mediaplayer-read-only/src'
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\" -Iyes/include -Iyes/include/plugin 
-Iyes/include/nspr -Iyes/include/xpcom -Iyes/include/string -Iyes/include/java 
-DMOZ_NO_MOZALLOC -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   
-pthread -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DORBIT2=1 -pthread 
-I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 
-I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -DHAVE_GCONF -DMOZILLA_STRICT_API -DXP_UNIX    
-g -O2 -MT plugin.o -MD -MP -MF .deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from plugin.cpp:39:0:
plugin.h:40:19: fatal error: npapi.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[3]: *** [plugin.o] Fehler 1
make[3]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only'
make: *** [all] Fehler 2
m@linux-n3lx:~/gecko-mediaplayer-read-only>

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 2:27

GoogleCodeExporter commented 8 years ago
Can you send the output of the command 

pkg-config libxul --modversion

maybe we need to modify the version detection code to match beta releases.

Original comment by zab...@gmail.com on 8 Sep 2010 at 2:32

GoogleCodeExporter commented 8 years ago
m@linux-n3lx:~> pkg-config libxul --modversion 
2.0b5
m@linux-n3lx:~>

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 2:38

GoogleCodeExporter commented 8 years ago
Based on the configure output

configure: libxul >= 2.0.0 not found, trying another
checking for GECKO... no

It looks like pkg-config is not finding the right .pc file.

Also, your second configure command is incorrect..

Should be 
./configure --with-xulrunner-sdk=[PATH to XULRUNNER SDK] --enable-new-libxul

So something like this
./configure --with-xulrunner-sdk=/home/user/xulrunner-2.0.beta5-sdk/sdk 
--enable-new-libxul

Original comment by kdeko...@gmail.com on 8 Sep 2010 at 2:44

GoogleCodeExporter commented 8 years ago
I have the following rpms installed from Opensuses Mozilla Beta Repository: 
mozilla-xulrunner20 (Mozilla Runtime Environment)
mozilla-xulrunner20-gnome (XULRUnner components depending on gnome-vfs)
mozilla-xulrunner20-devel (XULRunner/Gecko SDK 2.0)
Filelist for the SDK: 
/usr/include/xulrunner-2.0b5
/usr/include/xulrunner-2.0b5/Allocator.h
/usr/include/xulrunner-2.0b5/Assembler.h
/usr/include/xulrunner-2.0b5/BasicLayers.h
/usr/include/xulrunner-2.0b5/CheckedInt.h
/usr/include/xulrunner-2.0b5/CodeAlloc.h
/usr/include/xulrunner-2.0b5/Containers.h
/usr/include/xulrunner-2.0b5/CustomQS_Canvas2D.h
/usr/include/xulrunner-2.0b5/CustomQS_WebGL.h
........alot more

Configure:
m@linux-n3lx:~/gecko-mediaplayer-read-only> ./configure 
--with-xulrunner-sdk=/usr/include/xulrunner-2.0b5/ --enable-new-libxul
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  cs de es fr ja it nl pl pt_BR tr
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for NSPR... yes
checking for DBUS... yes
checking for GCONF... yes
Using config source xml:merged:/etc/gconf/gconf.xml.schemas for schema 
installation
Using $(sysconfdir)/gconf/schemas as install directory for schema files
checking for GIO... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gecko-mediaplayer.spec
config.status: creating src/Makefile
config.status: creating src/libgmlib/Makefile
config.status: creating po/Makefile.in
config.status: WARNING:  'po/Makefile.in.in' seems to ignore the --datarootdir 
setting
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands

m@linux-n3lx:~/gecko-mediaplayer-read-only> make
make  all-recursive
make[1]: Entering directory `/home/matthias/gecko-mediaplayer-read-only'
Making all in src
make[2]: Entering directory `/home/matthias/gecko-mediaplayer-read-only/src'
Making all in libgmlib
make[3]: Entering directory 
`/home/matthias/gecko-mediaplayer-read-only/src/libgmlib'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Leaving directory 
`/home/matthias/gecko-mediaplayer-read-only/src/libgmlib'
make[3]: Entering directory `/home/matthias/gecko-mediaplayer-read-only/src'
g++ -DHAVE_CONFIG_H -I. -I.. -fPIC 
-DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" 
-DPACKAGE_DATA_DIR=\""/usr/local/share"\" 
-I/usr/include/xulrunner-2.0b5//include 
-I/usr/include/xulrunner-2.0b5//include/plugin 
-I/usr/include/xulrunner-2.0b5//include/nspr 
-I/usr/include/xulrunner-2.0b5//include/xpcom 
-I/usr/include/xulrunner-2.0b5//include/string 
-I/usr/include/xulrunner-2.0b5//include/java -DMOZ_NO_MOZALLOC 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -pthread 
-I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gconf/2 
-I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -DHAVE_GCONF 
-DMOZILLA_STRICT_API -DXP_UNIX    -g -O2 -MT plugin.o -MD -MP -MF 
.deps/plugin.Tpo -c -o plugin.o plugin.cpp
In file included from plugin.cpp:39:0:
plugin.h:40:19: fatal error: npapi.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
make[3]: *** [plugin.o] Fehler 1
make[3]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/matthias/gecko-mediaplayer-read-only'
make: *** [all] Fehler 2
m@linux-n3lx:~/gecko-mediaplayer-read-only> 

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 3:07

GoogleCodeExporter commented 8 years ago
Try this as the configure line, and make sure you have updated from SVN

./configure --with-xulrunner-sdk=/usr/include/xulrunner-2.0b5/sdk 
--enable-new-libxul

Original comment by kdeko...@gmail.com on 8 Sep 2010 at 3:37

GoogleCodeExporter commented 8 years ago
I tried it, it does not work. same error. ../xulrunner-2.0b5/sdk doesnt exist. 
I think the xulrunner-2.0b5 folder already contains all the files.
Under firefox 3.6.x I can build it just with ./configure and it works like a 
charm.

From the package management:
mozilla-xulrunner20-devel - XULRunner/Gecko SDK 2.0

/usr/include/xulrunner-2.0b5
/usr/include/xulrunner-2.0b5/Allocator.h
/usr/include/xulrunner-2.0b5/Assembler.h
/usr/include/xulrunner-2.0b5/BasicLayers.h
/usr/include/xulrunner-2.0b5/CheckedInt.h
/usr/include/xulrunner-2.0b5/CodeAlloc.h
/usr/include/xulrunner-2.0b5/Containers.h
/usr/include/xulrunner-2.0b5/CustomQS_Canvas2D.h
...

mozilla-xulrunner20 - Mozilla Runtime Environment 2.0

/etc/gre.d
/etc/gre.d/2.0b5-64bit.system.conf
/usr/bin/xulrunner
/usr/lib64/xulrunner-2.0
/usr/lib64/xulrunner-2.0b5
...

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 4:17

GoogleCodeExporter commented 8 years ago
Can you try to apply the attached patch, run "autoreconf -vfi"  and run the 
usual configure make stuff ?

Original comment by zab...@gmail.com on 8 Sep 2010 at 4:35

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
It builds!!

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 4:55

GoogleCodeExporter commented 8 years ago
....
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GECKO... yes
configure: Using libxul >= 2.0.0 beta5
checking for NSPR... yes
checking for DBUS... yes
....

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 4:56

GoogleCodeExporter commented 8 years ago
Patch applied to SVN r408

Original comment by kdeko...@gmail.com on 8 Sep 2010 at 5:03

GoogleCodeExporter commented 8 years ago
But it crashes when playing a quicktime file. 

Console output:
m@linux-n3lx:~> firefox
*** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to 
enable).
NPP_New called
gecko mediaplayer v0.9.99.rc2
Using player backend of ''
DBUS connection created
Listening to path /control/3284
ARG: scale = tofit
ARG: showlogo = false
ARG: controller = false
ARG: postdomevents = true
ARG: type = video/quicktime
ARG: src = 
http://trailers.apple.com/movies/magnolia_pictures/iamstillhere/iamstillhere-cli
p1_r640s.mov?width=640&height=360
ARG: width = 640
ARG: height = 360
Window resized
Calling GetURLNotify with item = 0x7f3638bbf000 src = 
http://trailers.apple.com/movies/magnolia_pictures/iamstillhere/iamstillhere-cli
p1_r640s.mov?width=640&height=360
Window resized
Error message = Method "GetPluginVideoCacheSize" with signature "" on interface 
"com.gnome.mplayer" doesn't exist

process 6721: arguments to dbus_message_get_args() were incorrect, assertion 
"message != NULL" failed in file dbus-message.c line 1674.
This is normally a bug in some application using the D-Bus library.
  D-Bus not built with -rdynamic so unable to print a backtrace

Original comment by mdeissen...@gmail.com on 8 Sep 2010 at 5:04

GoogleCodeExporter commented 8 years ago
Upgrade gnome-mplayer to SVN... they have to be at the same version

Original comment by kdeko...@gmail.com on 8 Sep 2010 at 6:29