You are not logged in.

#1 2005-12-08 15:58:32

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Mplayerplug-in with Opera issues

I am sorry to come up with this again, but I really don't like mozplugger in Opera.
I have used the existent PKGBUILD to mplayer-plugin, and I have modified it a bit. It looks like this:

# $Id: PKGBUILD,v 1.20 2005/12/07 05:54:24 alexander Exp $
# Mantainer: Roberto Carvajal <roberto@archlinux.org>
pkgname=mplayer-plugin
pkgver=3.16
pkgrel=1
pkgdesc="mplayerplug-in is a browser plugin that uses mplayer to play videos from websites."
url="http://mplayerplug-in.sourceforge.net/"
depends=('mplayer' 'nspr' 'gtk2' 'mozilla-common')
source=(http://mesh.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-3.17.tar.gz)

build() {
[ "MOZ_PLUGIN_PATH" = "" ] && . /etc/profile.d/mozilla-common.sh
  cd $startdir/src/mplayerplug-in
  export CFLAGS="${CFLAGS} -DMOZILLA_STRICT_API"
  ./configure --prefix=/opt/$pkgname --with-faad --enable-wmp 
    --enable-qt --enable-rm --enable-gmp --enable-x --with-gecko-sdk=/opt/mozilla 
  make || return 1
  mkdir -p $startdir/pkg/opt/mozilla-plugins
  install -D -m0755 mplayerplug-in*so $startdir/pkg/opt/mozilla-plugins
  install -D -m0755 mplayerplug-in*xpt $startdir/pkg/opt/mozilla-plugins
}
#md5sums=('0a584af137d807a04bb564f023376147')

When doing that I get a lot of errors:

==> Starting build()...
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /bin/install -c
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
Using new (v1.7+) gecko-sdk
checking how to run the C preprocessor... gcc -E
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
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 stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking X11/Xlib.h usability... yes
checking X11/Xlib.h presence... yes
checking for X11/Xlib.h... yes
checking X11/Intrinsic.h usability... yes
checking X11/Intrinsic.h presence... yes
checking for X11/Intrinsic.h... yes
checking X11/StringDefs.h usability... yes
checking X11/StringDefs.h presence... yes
checking for X11/StringDefs.h... yes
checking for sys/stat.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for pid_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strrchr... yes
checking for snprintf... yes
checking for mkfifo... yes
checking for dup2... yes
checking for gettimeofday... yes
checking for strerror... yes
checking for strtol... yes
checking for memmem... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking return type of signal handlers... void
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for DPMSQueryExtension in -lXdpms... no
checking for X11/extensions/dpms.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile
config.status: creating install.sh
config.status: creating config.h
**************************************************************
         ARE YOU SURE YOU WANT TO BUILD WITHOUT GTK?
 BECAUSE mplayerplug-in WITHOUT GTK TAKES AWAY FUNCITIONALITY    
**************************************************************
g++ -c -o plugin.o -Wall -march=i686 -O2 -pipe -DMOZILLA_STRICT_API  -I/usr/X11R       6/include  -march=i686 -O2 -pipe  -DXP_UNIX -DMOZ_X11 -I/opt/mozilla -I/opt/mozi       lla/include -Iinclude -fPIC -DXPCOM_GLUE -DMOZILLA_STRICT_API   -DX_ENABLED  Sou       rce/plugin.cpp
In file included from include/pluginbase.h:41,
                 from Source/plugin.h:53,
                 from Source/plugin.cpp:37:
include/npplat.h:41:19: error: npapi.h: No such file or directory
include/npplat.h:42:19: error: npupp.h: No such file or directory
In file included from Source/nsScriptablePeer.h:48,
                 from Source/plugin.h:54,
                 from Source/plugin.cpp:37:
Source/nsIScriptableMplayerPlugin.h:10:25: error: nsISupports.h: No such file or        directory
In file included from Source/plugin.h:54,
                 from Source/plugin.cpp:37:
Source/nsScriptablePeer.h:49:26: error: nsIClassInfo.h: No such file or director       y
Source/plugin.cpp:38:31: error: nsIServiceManager.h: No such file or directory
Source/plugin.cpp:39:23: error: nsIMemory.h: No such file or directory
Source/plugin.cpp:40:74: error: nsISupportsUtils.h: No such file or directory
include/pluginbase.h:45: error: 'NPP' does not name a type
include/pluginbase.h:46: error: 'NPMIMEType' does not name a type
include/pluginbase.h:47: error: 'uint16' does not name a type
include/pluginbase.h:48: error: 'int16' does not name a type
include/pluginbase.h:51: error: ISO C++ forbids declaration of 'NPSavedData' wit       h no type
include/pluginbase.h:51: error: expected ';' before '*' token
include/pluginbase.h:59: error: 'NPBool' does not name a type
include/pluginbase.h:61: error: 'NPBool' does not name a type
include/pluginbase.h:65: error: 'NPError' does not name a type
include/pluginbase.h:66: error: 'NPError' does not name a type
include/pluginbase.h:68: error: 'NPError' does not name a type
include/pluginbase.h:69: error: 'NPStream' has not been declared
include/pluginbase.h:70: error: 'int32' does not name a type
include/pluginbase.h:71: error: 'int32' does not name a type
include/pluginbase.h:73: error: 'NPPrint' has not been declared
include/pluginbase.h:74: error: 'uint16' does not name a type
include/pluginbase.h:75: error: 'NPReason' has not been declared
include/pluginbase.h:77: error: 'NPError' does not name a type
include/pluginbase.h:78: error: 'NPError' does not name a type
include/pluginbase.h:55: warning: 'class nsPluginInstanceBase' has virtual funct       ions but non-virtual destructor
include/pluginbase.h:88: error: 'NPError' does not name a type
include/pluginbase.h:93: error: 'NPError' does not name a type
Source/nsIScriptableMplayerPlugin.h:25: error: expected class-name before '{' to       ken
Source/nsIScriptableMplayerPlugin.h:28: error: expected identifier before '{' to       ken
Source/nsIScriptableMplayerPlugin.h:28: error: expected ',' or '...' before '{'        token
Source/nsIScriptableMplayerPlugin.h:28: error: ISO C++ forbids declaration of 'N       S_DEFINE_STATIC_IID_ACCESSOR' with no type
Source/nsIScriptableMplayerPlugin.h:31: error: expected ';' before 'NS_IMETHOD'
Source/nsIScriptableMplayerPlugin.h:34: error: 'NS_IMETHOD' does not name a type
Source/nsIScriptableMplayerPlugin.h:37: error: 'NS_IMETHOD' does not name a type
Source/nsIScriptableMplayerPlugin.h:120: error: expected class-name before '{' t       oken
Source/nsIScriptableMplayerPlugin.h:123: error: expected identifier before '{' t       oken
Source/nsIScriptableMplayerPlugin.h:123: error: expected ',' or '...' before '{'        token
Source/nsIScriptableMplayerPlugin.h:123: error: ISO C++ forbids declaration of '       NS_DEFINE_STATIC_IID_ACCESSOR' with no type
Source/nsIScriptableMplayerPlugin.h:126: error: expected ';' before 'NS_IMETHOD'
Source/nsIScriptableMplayerPlugin.h:129: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:132: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:135: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:138: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:141: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:144: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:147: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:150: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:153: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:156: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:159: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:162: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:165: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:168: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:171: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:174: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:177: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:180: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:183: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:186: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:189: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:192: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:195: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:198: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:201: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:204: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:207: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:210: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:213: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:216: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:217: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:220: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:221: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:224: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:225: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:228: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:229: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:232: error: 'NS_IMETHOD' does not name a typ       e
Source/nsIScriptableMplayerPlugin.h:235: error: 'NS_IMETHOD' does not name a typ       e
Source/nsScriptablePeer.h:56: error: expected class-name before '{' token
Source/nsScriptablePeer.h:59: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:62: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:68: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:71: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:75: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:78: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:81: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:84: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:97: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:98: error: 'nsrefcnt' has not been declared
Source/nsScriptablePeer.h:98: error: ISO C++ forbids declaration of 'NS_IMETHOD_       ' with no type
Source/nsScriptablePeer.h:98: error: expected ';' before 'AddRef'
Source/nsScriptablePeer.h:99: error: 'nsrefcnt' has not been declared
Source/nsScriptablePeer.h:99: error: ISO C++ forbids declaration of 'NS_IMETHOD_       ' with no type
Source/nsScriptablePeer.h:99: error: expected ';' before 'Release'
Source/nsScriptablePeer.h:102: error: 'nsrefcnt' does not name a type
Source/nsScriptablePeer.h:106: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:106: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:106: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:120: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:121: error: 'nsrefcnt' has not been declared
Source/nsScriptablePeer.h:121: error: ISO C++ forbids declaration of 'NS_IMETHOD       _' with no type
Source/nsScriptablePeer.h:121: error: expected ';' before 'AddRef'
Source/nsScriptablePeer.h:122: error: 'nsrefcnt' has not been declared
Source/nsScriptablePeer.h:122: error: ISO C++ forbids declaration of 'NS_IMETHOD       _' with no type
Source/nsScriptablePeer.h:122: error: expected ';' before 'Release'
Source/nsScriptablePeer.h:125: error: 'nsrefcnt' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/nsScriptablePeer.h:129: error: 'NS_IMETHOD' does not name a type
Source/plugin-setup.h:161: error: 'NPError' does not name a type
Source/plugin-setup.h:177: error: 'NPP' was not declared in this scope
Source/plugin-setup.h:177: error: expected primary-expression before 'int'
Source/plugin-setup.h:177: error: expected primary-expression before 'int'
Source/plugin-setup.h:177: error: initializer expression list treated as compoun       d expression
Source/plugin.h:69: error: expected `)' before 'aInstance'
Source/plugin.h:72: error: 'NPBool' does not name a type
Source/plugin.h:75: error: 'NPBool' does not name a type
Source/plugin.h:76: error: 'NPError' does not name a type
Source/plugin.h:78: error: 'NPError' does not name a type
Source/plugin.h:79: error: 'NPError' does not name a type
Source/plugin.h:80: error: 'NPReason' has not been declared
Source/plugin.h:81: error: 'int32' does not name a type
Source/plugin.h:82: error: 'int32' does not name a type
Source/plugin.h:93: error: 'PRInt32' has not been declared
Source/plugin.h:99: error: 'PRBool' has not been declared
Source/plugin.h:100: error: 'PRBool' has not been declared
Source/plugin.h:101: error: 'PRBool' has not been declared
Source/plugin.h:102: error: 'PRBool' has not been declared
Source/plugin.h:103: error: 'PRBool' has not been declared
Source/plugin.h:104: error: 'PRBool' has not been declared
Source/plugin.h:105: error: 'PRBool' has not been declared
Source/plugin.h:106: error: 'PRBool' has not been declared
Source/plugin.h:107: error: 'PRBool' has not been declared
Source/plugin.h:108: error: 'PRBool' has not been declared
Source/plugin.h:110: error: 'PRBool' has not been declared
Source/plugin.h:112: error: 'PRBool' has not been declared
Source/plugin.h:118: error: 'NPError' does not name a type
Source/plugin.h:124: error: 'NPP' does not name a type
Source/plugin.h:125: error: 'NPBool' does not name a type
Source/plugin.h:136: error: 'uint16' does not name a type
Source/plugin.h:137: error: 'uint32' does not name a type
Source/plugin.h:138: error: 'uint32' does not name a type
Source/plugin.h:139: error: 'uint32' does not name a type
Source/plugin.h:140: error: 'uint32' does not name a type
Source/plugin.h:141: error: 'uint32' does not name a type
Source/plugin.h:142: error: 'uint32' does not name a type
Source/plugin.h:170: error: 'uint32' does not name a type
Source/plugin.cpp:54: error: 'int32' does not name a type
Source/plugin.cpp:58: error: expected constructor, destructor, or type conversio       n before '*' token
Source/plugin.cpp:69: error: 'NPError' does not name a type
Source/plugin.cpp:79: error: 'NPError' does not name a type
Source/plugin.cpp: In function 'void NS_PluginShutdown()':
Source/plugin.cpp:103: error: 'gServiceManager' was not declared in this scope
Source/plugin.cpp:103: error: 'NS_IF_RELEASE' was not declared in this scope
Source/plugin.cpp: In function 'nsPluginInstanceBase* NS_NewPluginInstance(nsPlu       ginCreateData*)':
Source/plugin.cpp:118: error: 'struct nsPluginCreateData' has no member named 'i       nstance'
Source/plugin.cpp: At global scope:
Source/plugin.cpp:134: error: expected `)' before 'aInstance'
Source/plugin.cpp: In destructor 'virtual nsPluginInstance::~nsPluginInstance()'       :
Source/plugin.cpp:324: error: 'mInstance' was not declared in this scope
Source/plugin.cpp:325: error: 'mInitialized' was not declared in this scope
Source/plugin.cpp:328: error: 'class nsControlsScriptablePeer' has no member nam       ed 'Release'
Source/plugin.cpp:329: error: 'NS_IF_RELEASE' was not declared in this scope
Source/plugin.cpp:335: error: 'NS_IF_RELEASE' was not declared in this scope
Source/plugin.cpp: At global scope:
Source/plugin.cpp:340: error: 'NPBool' does not name a type
Source/plugin.cpp: In member function 'virtual void nsPluginInstance::shut()':
Source/plugin.cpp:357: error: 'mInstance' was not declared in this scope
Source/plugin.cpp:357: error: 'NPN_GetURL' was not declared in this scope
Source/plugin.cpp: In member function 'void nsPluginInstance::shutdown()':
Source/plugin.cpp:416: error: 'mInitialized' was not declared in this scope
Source/plugin.cpp:485: error: 'free' was not declared in this scope
Source/plugin.cpp:490: error: 'free' was not declared in this scope
Source/plugin.cpp:495: error: 'free' was not declared in this scope
Source/plugin.cpp:500: error: 'free' was not declared in this scope
Source/plugin.cpp:505: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:510: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:515: error: 'free' was not declared in this scope
Source/plugin.cpp:520: error: 'free' was not declared in this scope
Source/plugin.cpp:525: error: 'free' was not declared in this scope
Source/plugin.cpp:530: error: 'free' was not declared in this scope
Source/plugin.cpp:535: error: 'free' was not declared in this scope
Source/plugin.cpp:539: error: 'nQtNext' was not declared in this scope
Source/plugin.cpp:542: error: 'free' was not declared in this scope
Source/plugin.cpp:547: error: 'free' was not declared in this scope
Source/plugin.cpp:561: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:566: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:571: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:576: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:581: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp:586: error: 'NPN_MemFree' was not declared in this scope
Source/plugin.cpp: At global scope:
Source/plugin.cpp:626: error: 'NPBool' does not name a type
Source/plugin.cpp:631: error: 'NPError' does not name a type
Source/plugin.cpp:1204: error: 'NPError' does not name a type
Source/plugin.cpp:1234: error: 'NPError' does not name a type
Source/plugin.cpp:1491: error: 'NPReason' has not been declared
Source/plugin.cpp:1540: error: 'int32' does not name a type
Source/plugin.cpp:1676: error: 'int32' does not name a type
Source/plugin.cpp:2160: error: variable or field 'GetPlayState' declared void
Source/plugin.cpp:2160: error: 'int nsPluginInstance::GetPlayState' is not a sta       tic member of 'class nsPluginInstance'
Source/plugin.cpp:2160: error: 'PRInt32' was not declared in this scope
Source/plugin.cpp:2160: error: 'playstate' was not declared in this scope
Source/plugin.cpp:2161: error: expected ',' or ';' before '{' token
Source/plugin.cpp: In member function 'void nsPluginInstance::SetFilename(const        char*)':
Source/plugin.cpp:2240: error: 'free' was not declared in this scope
Source/plugin.cpp:2244: error: 'free' was not declared in this scope
Source/plugin.cpp:2257: error: 'free' was not declared in this scope
Source/plugin.cpp:2262: error: 'free' was not declared in this scope
Source/plugin.cpp:2267: error: 'free' was not declared in this scope
Source/plugin.cpp:2278: error: 'mInstance' was not declared in this scope
Source/plugin.cpp:2278: error: 'NPN_GetURL' was not declared in this scope
Source/plugin.cpp: At global scope:
Source/plugin.cpp:2286: error: variable or field 'GetShowControls' declared void
Source/plugin.cpp:2286: error: 'int nsPluginInstance::GetShowControls' is not a        static member of 'class nsPluginInstance'
Source/plugin.cpp:2286: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2286: error: '_retval' was not declared in this scope
Source/plugin.cpp:2287: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2292: error: variable or field 'SetShowControls' declared void
Source/plugin.cpp:2292: error: 'int nsPluginInstance::SetShowControls' is not a        static member of 'class nsPluginInstance'
Source/plugin.cpp:2292: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2293: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2347: error: variable or field 'GetFullscreen' declared void
Source/plugin.cpp:2347: error: 'int nsPluginInstance::GetFullscreen' is not a st       atic member of 'class nsPluginInstance'
Source/plugin.cpp:2347: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2347: error: '_retval' was not declared in this scope
Source/plugin.cpp:2348: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2353: error: variable or field 'SetFullscreen' declared void
Source/plugin.cpp:2353: error: 'int nsPluginInstance::SetFullscreen' is not a st       atic member of 'class nsPluginInstance'
Source/plugin.cpp:2353: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2354: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2830: error: variable or field 'GetShowlogo' declared void
Source/plugin.cpp:2830: error: 'int nsPluginInstance::GetShowlogo' is not a stat       ic member of 'class nsPluginInstance'
Source/plugin.cpp:2830: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2830: error: '_retval' was not declared in this scope
Source/plugin.cpp:2831: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2836: error: variable or field 'SetShowlogo' declared void
Source/plugin.cpp:2836: error: 'int nsPluginInstance::SetShowlogo' is not a stat       ic member of 'class nsPluginInstance'
Source/plugin.cpp:2836: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2837: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2849: error: variable or field 'GetPlaying' declared void
Source/plugin.cpp:2849: error: 'int nsPluginInstance::GetPlaying' is not a stati       c member of 'class nsPluginInstance'
Source/plugin.cpp:2849: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2849: error: '_retval' was not declared in this scope
Source/plugin.cpp:2850: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2863: error: variable or field 'GetAutoPlay' declared void
Source/plugin.cpp:2863: error: 'int nsPluginInstance::GetAutoPlay' is not a stat       ic member of 'class nsPluginInstance'
Source/plugin.cpp:2863: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2863: error: '_retval' was not declared in this scope
Source/plugin.cpp:2864: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2869: error: variable or field 'SetAutoPlay' declared void
Source/plugin.cpp:2869: error: 'int nsPluginInstance::SetAutoPlay' is not a stat       ic member of 'class nsPluginInstance'
Source/plugin.cpp:2869: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2870: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2874: error: variable or field 'GetLoop' declared void
Source/plugin.cpp:2874: error: 'int nsPluginInstance::GetLoop' is not a static m       ember of 'class nsPluginInstance'
Source/plugin.cpp:2874: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2874: error: '_retval' was not declared in this scope
Source/plugin.cpp:2875: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2880: error: variable or field 'SetLoop' declared void
Source/plugin.cpp:2880: error: 'int nsPluginInstance::SetLoop' is not a static m       ember of 'class nsPluginInstance'
Source/plugin.cpp:2880: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2881: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2906: error: variable or field 'PlaylistClear' declared void
Source/plugin.cpp:2906: error: 'int nsPluginInstance::PlaylistClear' is not a st       atic member of 'class nsPluginInstance'
Source/plugin.cpp:2906: error: 'PRBool' was not declared in this scope
Source/plugin.cpp:2906: error: '_retval' was not declared in this scope
Source/plugin.cpp:2907: error: expected ',' or ';' before '{' token
Source/plugin.cpp:2928: error: 'NPError' does not name a type
Source/plugin.cpp: In member function 'nsScriptablePeer* nsPluginInstance::getSc       riptablePeer()':
Source/plugin.cpp:2982: error: 'NS_ADDREF' was not declared in this scope
Source/plugin.cpp:2985: error: 'NS_ADDREF' was not declared in this scope
Source/plugin.cpp: In member function 'nsControlsScriptablePeer* nsPluginInstanc       e::getControlsScriptablePeer()':
Source/plugin.cpp:2996: error: 'NS_ADDREF' was not declared in this scope
Source/plugin.cpp:2999: error: 'NS_ADDREF' was not declared in this scope
make: *** [plugin.o] Error 1
==> ERROR: Build Failed.  Aborting...

What am I doing wrong here?


Arch - It's something refreshing

Offline

#2 2005-12-08 22:44:25

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Mplayerplug-in with Opera issues

EDITED:

It can't find  include files. You'll need to install gecko-sdk  to compile the plugin. If it still doesn't compile with gecko-sdk installed, try to replace:
export CFLAGS="${CFLAGS} -DMOZILLA_STRICT_API"
by
export CFLAGS="${CFLAGS} -DMOZILLA_STRICT_API -I/opt/mozilla/include/gecko-sdk"

Offline

#3 2005-12-14 18:55:55

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Mplayerplug-in with Opera issues


Arch - It's something refreshing

Offline

Board footer

Powered by FluxBB