LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayerplug-in won't compile, Ubuntu 6.06 (https://www.linuxquestions.org/questions/linux-software-2/mplayerplug-in-wont-compile-ubuntu-6-06-a-516725/)

NeXuS_2006 01-05-2007 05:08 PM

mplayerplug-in won't compile, Ubuntu 6.06
 
I am using the instructions Here to try to get mplayer working in Opera 9.10. I realize that page is old so I used the newest packages available. I got as far as running the ./configure script, which worked, then I ran "make". I get this output:

Code:

root@Lithium:/home/downloads/mplayerplug-in# make
g++ -c -Wall -g -O2  -g -O2  -DXP_UNIX -DMOZ_X11 -I/home/downloads/gecko-sdk -I /home/downloads/gecko-sdk/include -Iinclude -fPIC  -DXPCOM_GLUE -DMOZILLA_STRICT_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I /usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGTK2_ENABLED -DGTK_ENABLED Source/plugin.cpp
In file included from Source/plugin.h:50,
                from Source/plugin.cpp:37:
Source/plugin-setup.h:4:27: error: X11/Intrinsic.h: No such file or directory
Source/plugin-setup.h:5:28: error: X11/StringDefs.h: No such file or directoryinclude/pluginbase.h:55: warning: ‘class nsPluginInstanceBase’ has virtual functions but non-virtual destructor
/home/downloads/gecko-sdk/include/nsISupportsBase.h:80: warning: ‘class nsISupports’ has virtual functions but non-virtual destructor
/home/downloads/gecko-sdk/include/nsIProgrammingLanguage.h:32: warning: ‘class nsIProgrammingLanguage’ has virtual functions but non-virtual destructor
/home/downloads/gecko-sdk/include/nsIClassInfo.h:33: warning: ‘class nsIClassInfo’ has virtual functions but non-virtual destructor
Source/nsIScriptableMplayerPlugin.h:25: warning: ‘class nsIScriptableWMPPlugin’has virtual functions but non-virtual destructor
Source/nsIScriptableMplayerPlugin.h:120: warning: ‘class nsIScriptableMplayerPlugin’ has virtual functions but non-virtual destructor
Source/nsScriptablePeer.h:56: warning: ‘class nsClassInfoMixin’ has virtual functions but non-virtual destructor
Source/plugin-setup.h:109: error: ‘Widget’ does not name a type
Source/plugin-setup.h:169: error: variable or field ‘DrawUI’ declared void
Source/plugin-setup.h:169: error: ‘Widget’ was not declared in this scope
Source/plugin-setup.h:169: error: expected primary-expression before ‘*’ tokenSource/plugin-setup.h:169: error: ‘instance’ was not declared in this scope
Source/plugin-setup.h:169: error: expected primary-expression before ‘char’
Source/plugin-setup.h:170: error: expected primary-expression before ‘int’
Source/plugin-setup.h:170: error: expected primary-expression before ‘int’
Source/plugin-setup.h:170: error: initializer expression list treated as compound expression
Source/plugin-setup.h:172: warning: ‘RedrawCB’ initialized and declared ‘extern’Source/plugin-setup.h:172: error: variable or field ‘RedrawCB’ declared void
Source/plugin-setup.h:172: error: ‘Widget’ was not declared in this scope
Source/plugin-setup.h:172: error: ‘XtPointer’ was not declared in this scope
Source/plugin-setup.h:173: error: ‘XtPointer’ was not declared in this scope
Source/plugin-setup.h:173: error: initializer expression list treated as compound expression
Source/plugin.h:141: error: ‘Widget’ does not name a type
/home/downloads/gecko-sdk/include/nsIServiceManager.h:40: warning: ‘class nsIServiceManager’ has virtual functions but non-virtual destructor
/home/downloads/gecko-sdk/include/nsIMemory.h:58: warning: ‘class nsIMemory’ has virtual functions but non-virtual destructor
Source/plugin.cpp: In constructor ‘nsPluginInstance::nsPluginInstance(NPP_t*)’:Source/plugin.cpp:180: error: ‘widget’ was not declared in this scope
Source/plugin.cpp: In member function ‘virtual NPError nsPluginInstance::SetWindow(NPWindow*)’:
Source/plugin.cpp:591: error: ‘widget’ was not declared in this scope
Source/plugin.cpp:593: error: ‘XtWindowToWidget’ was not declared in this scopemake: *** [plugin.o] Error 1
root@Lithium:/home/downloads/mplayerplug-in#

When I installed MPlayer I used the Ubuntu repositories, but it seems to all be there and it works fine. I also found an MPlayer-in-Firefox package in the package manager and installed it, and it works. I copied those plugin files to the Opera directory and it does not recognize them. Anyone have an idea? This output is gibberish to me.

penguiniator 01-05-2007 06:32 PM

I don't know about the errors you are experiencing, but I don't think the mplayerplug-in is designed to work with non-mozilla browsers.

craigevil 01-05-2007 06:58 PM

Opera for Linux - Plug-ins: Installation
http://www.opera.com/linux/docs/plug...stall/#mplayer
Why compile it when it is available in the Ubuntu repos?

NeXuS_2006 01-07-2007 11:38 PM

I was just following the install instructions on the Opera page linked to by craigevil. The plugin in the ubuntu repositories works for me with Firefox, but the same file will not work with Opera. I believe it should, its exactly the same plugin that Opera tells me to compile. Anyway, the repo didn't work so I tried to compile, that didn't work either. I really just want this to work like it should, so if anyone has any more ideas, please share.


All times are GMT -5. The time now is 09:08 AM.