LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2005, 12:29 PM   #1
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
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
 
Old 08-07-2005, 02:26 PM   #2
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

Rep: Reputation: 113Reputation: 113
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.
 
Old 08-08-2005, 02:14 AM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
i couldn't get the new version to compile....i ended up using 2.85(?) which works great for me...
 
Old 08-08-2005, 10:11 AM   #4
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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.
 
Old 08-09-2005, 02:38 AM   #5
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

Rep: Reputation: 113Reputation: 113
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.
 
Old 08-10-2005, 11:50 AM   #6
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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
 
Old 08-10-2005, 01:09 PM   #7
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 31
i got it to compile perfectly fine, and i am currently making a package.

however i've got no reliable place to host it.
 
Old 08-10-2005, 02:30 PM   #8
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

Rep: Reputation: 113Reputation: 113
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?
 
Old 08-11-2005, 10:41 AM   #9
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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?
 
Old 08-11-2005, 10:47 AM   #10
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
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.
 
Old 08-11-2005, 11:49 AM   #11
abrouwers
Member
 
Registered: May 2005
Location: Michigan
Distribution: Slackware -current
Posts: 98

Rep: Reputation: 37
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.
 
Old 08-11-2005, 09:25 PM   #12
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 14.2, Slackwarearm-current
Posts: 971

Rep: Reputation: 113Reputation: 113
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).
 
Old 08-15-2005, 10:31 AM   #13
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Original Poster
Rep: Reputation: 30
>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!
 
Old 08-15-2005, 11:23 AM   #14
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 31
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
 
Old 08-15-2005, 12:41 PM   #15
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayerplugin ciopi Linux - Software 3 12-28-2005 10:46 PM
kernel compilation -- quiet failure rhoyerboat Linux - Software 1 09-13-2005 04:03 AM
mono compilation failure tamtam Programming 1 04-16-2005 08:33 AM
Compilation Failure success Rate 1500% drache777 Linux - Newbie 8 01-13-2005 07:41 PM
winex compilation failure garfield81 Linux - Software 9 08-27-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration