mplayerplugin: compilation failure
Hi all,
I got a problem on compiling mplayerplugin for firefox 1.0.6. When I type 'make' after 'configure', tons of these error come out and never give me a binary executable. I know that these error comes from the parser. However, I suspect the source code is 'contaminated' and thus apply the same method on the earlier version of mplayerplugin. Still, no success. I wonder the way of getting rid of such annoying compliation problem. Thanks. ------------------------------------------------------------------ Source/plugin.cpp:2684: error: syntax error before `{' token Source/plugin.cpp:2689: error: syntax error before `)' token Source/plugin.cpp:2694: error: `PRBool' was not declared in this scope Source/plugin.cpp:2694: error: `_retval' was not declared in this scope Source/plugin.cpp:2695: error: variable or field `GetLoop' declared void Source/plugin.cpp:2695: error: `int nsPluginInstance::GetLoop' is not a static member of `class nsPluginInstance' Source/plugin.cpp:2695: error: syntax error before `{' token Source/plugin.cpp:2700: error: syntax error before `)' token Source/plugin.cpp:2720: error: syntax error before `::' token Source/plugin.cpp:2738: error: syntax error before `*' token Source/plugin.cpp:2741: error: syntax error before `*' token Source/plugin.cpp: In member function `nsScriptablePeer* nsPluginInstance::getScriptablePeer()': Source/plugin.cpp:2766: error: `NS_ADDREF' undeclared (first use this function) Source/plugin.cpp: In member function `nsControlsScriptablePeer* nsPluginInstance::getControlsScriptablePeer()': Source/plugin.cpp:2780: error: `NS_ADDREF' undeclared (first use this function) make: *** [plugin.o] Error 1 |
You haven't told which version you're trying to compile. I checked the wesite, apparently version 3.05 has been released a few hours ago. I downloaded and compiled. No errors of the sort you got. It couldn't find the command msgfmt, but I found a workround by symlinking msgfmt to msgfmt.py.
By the way, mplayerplug-in requires mozilla devel libraries or gecko-sdk to compile. If you have mozilla installed then it should be OK, if not, you need gecko-sdk. |
i couldn't get the new version to compile....i ended up using 2.85(?) which works great for me...
|
To Ilgar,
I want to compile 3.0.5, but I dun know what is the exact problem. May I know what u did on the configure parameter? P.S. I compiled against gecko-sdk 1.6, which is suggested by the author, but no luck. Thanks. |
I remember needing gecko-sdk to compile before, even if I had mozilla installed. I was passing the gecko-sdk dir as a configure parameter. This time (with 3.05) ./configure with no parameters worked. I suppose it compiled against mozilla libraries. And I got no errors.
You should be using gecko-sdk 1.7 I believe... as Firefox 1.0 came out when mozilla 1.7 was around. And here's a note from the plugin page: Quote:
|
Still no luck. No matter what parameter I passed it on (even none), I still face the same error.
Anyone can compile it and make a tgz packages? I think this plugin should be useful for every slackers :) |
i got it to compile perfectly fine, and i am currently making a package.
however i've got no reliable place to host it. |
Quote:
|
Quote:
All the tgz packages for slackware goes there. Or we can just host it in somewhere like yahoo, geocities? |
Quote:
I have been trying to compile using almost all versions of gecko and mplayerplugin. I wonder what makes us the difference on the compilation. |
Personally, I have been able to compile it, but it has not ever loaded in firefox for me! (anyone give some hints for this? do you move anything around after making it?)
Anyways, if you want to avoid the whole geck stuff, just download it from the ftp on mozilla, and do ./configure --with-gecko-sdk=/home/you/gecko-sdk or whereever you extract it. |
To abrouwers:
You move the .so files to the /plugins subdirectory of firefox, and the .xpt files to the /components directory. To kaon: I really have no idea. Could it be the gcc version? Mine is 3.3.6 from current. My mozilla packages are also from current. Does the part you posted contain all error messages (or at least the first one)? Looks like a usual compile error; but since other people can compile, it must be either the compiler or the library versions causing the problem (I think). |
>Could it be the gcc version? Mine is 3.3.6 from current.
Same as you. current-stock. >My mozilla packages are also from current. I use FF +TB, but no mozilla suite installed, so I grab a gecko-sdk 1.7 from moz illa ftp site. >Does the part you posted contain all error messages (or at least the first one) ? it is just part of the error message. It gives tons of the same kind of warning. I just compile in this way: ./configure --prefix=/usr --with-gecko-sdk=~/gecko-sdk ==> FINE! make ==> Warnings * 10000000! |
Here is the system i used to compile it.
Gcc 3.3.6 Mozilla 1.7.5(the default one in slack 10.1, not the updated one in /patches/) linuxpackages.net won't accept my package because i use Dropline Gnome(i don't think it really matters though, but it might because dropline provides Firefox). All i did was run ./configure && make su make install |
When I install mplayerplug-in in Slackware, I just download an RPM for Fedora Core 2, then rpm2tgz, and then explodepkg in the created tgz-package.
That will extract the files from the tgz, and you can copy the files to the correct locations. No need for compilation. |
All times are GMT -5. The time now is 08:03 PM. |