LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mplayerplugin: compilation failure (https://www.linuxquestions.org/questions/slackware-14/mplayerplugin-compilation-failure-350851/)

kaon 08-07-2005 11:29 AM

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

Ilgar 08-07-2005 01:26 PM

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.

detpenguin 08-08-2005 01:14 AM

i couldn't get the new version to compile....i ended up using 2.85(?) which works great for me...

kaon 08-08-2005 09:11 AM

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.

Ilgar 08-09-2005 01:38 AM

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.

kaon 08-10-2005 10:50 AM

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 :)

liquidtenmilion 08-10-2005 12:09 PM

i got it to compile perfectly fine, and i am currently making a package.

however i've got no reliable place to host it.

Ilgar 08-10-2005 01:30 PM

Quote:

Originally posted by kaon
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 :)

But did you try gecko-sdk 1.7?

kaon 08-11-2005 09:41 AM

Quote:

Originally posted by liquidtenmilion
i got it to compile perfectly fine, and i am currently making a package.

however i've got no reliable place to host it.

How about linuxpackages.net?

All the tgz packages for slackware goes there.


Or we can just host it in somewhere like yahoo, geocities?

kaon 08-11-2005 09:47 AM

Quote:

Originally posted by Ilgar
But did you try gecko-sdk 1.7?
yes....
I have been trying to compile using almost all versions of gecko and mplayerplugin.

I wonder what makes us the difference on the compilation.

abrouwers 08-11-2005 10:49 AM

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.

Ilgar 08-11-2005 08:25 PM

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).

kaon 08-15-2005 09:31 AM

>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!

liquidtenmilion 08-15-2005 10:23 AM

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

objorkum 08-15-2005 11:41 AM

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.