SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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 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:
The gecko-sdk can be obtained from mozilla.org (version 1.6 or higher of the SDK are the only ones that work). Only use gecko-sdk 1.7 for versions of Mozilla and Firefox based on gecko 1.7.
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
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!
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.