LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   MPlayer.Slackbuild cant compile. (https://www.linuxquestions.org/questions/slackware-14/mplayer-slackbuild-cant-compile-757310/)

Scuzz 09-23-2009 12:58 PM

MPlayer.Slackbuild cant compile.
 
Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?

tux_dude 09-23-2009 01:24 PM

Was there any error in the /tmp/configure-MPlayer.log file? The skins directory is not being created. You should be able to trace the error in the log file.

Scuzz 09-23-2009 01:56 PM

The /tmp/configure-MPlayer.log doesnt show any errors but the
error.MPlayer.log shows exactley the same thing s as i posted.
MPlayer.SlackBuild FAILED at line 289!.

I tried adding this to the MPlayer.Slackbuild


# Install our default skin:
mkdir -p $PKG/usr/share/mplayer/skins <---
cd $PKG/usr/share/mplayer/skins

and it compiled and made a package but after its installed it wont work.

No icon and it wont even work through command line.

linuxpokernut 09-23-2009 02:02 PM

Quote:

Originally Posted by Scuzz (Post 3694513)
Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?

USE_PATENTS=${USE_PATENTS:-"YES"}

Seems like the answer to me.

Scuzz 09-23-2009 02:06 PM

Quote:

Originally Posted by linuxpokernut (Post 3694600)
USE_PATENTS=${USE_PATENTS:-"YES"}

Seems like the answer to me.

the Bottom of the Slackbuild has this written in it.

Code:


** If you are unaffected by patent concerns because you hold the required
** licenses and permission to use the patented code, or reside in a
** location where this is not a concern, and wish to include the patented
** and restricted code (you take all legal responsibility for doing so),
** then edit this SlackBuild script and change the line:
** USE_PATENTS=${USE_PATENTS:-"NO"}
** to:
** USE_PATENTS="YES"
**


Alien Bob 09-23-2009 02:12 PM

I guess that somewhere earlier the process went off the rails. The difference when setting USE_PATENTS="YES" is that the SlackBuild script will try to checkout the MPlayer sources (the source tarball in Slackware is stripped of patent-encumbered source code). Perhaps this failed on your computer? Then, there could have been compilation issues that you failed to detect but which result in nothing getting installed (so that the directory $PKG/usr/share/mplayer/skins will be absent too).
Compile the package using this command:
Code:

./MPlayer.SlackBuild 2>&1 | tee build.log
which copies every line that gets written to the screen, into the file "build.log". Then, go through the build.log file to find out what went wrong.

Eric

interndan 09-23-2009 02:13 PM

Try linuxpokernut's idea. The worst that can happen is it still doesn't work.

gegechris99 09-23-2009 02:18 PM

Quote:

Originally Posted by Scuzz (Post 3694590)
The /tmp/configure-MPlayer.log doesnt show any errors but the
error.MPlayer.log shows exactley the same thing s as i posted.
MPlayer.SlackBuild FAILED at line 289!.

I tried adding this to the MPlayer.Slackbuild


# Install our default skin:
mkdir -p $PKG/usr/share/mplayer/skins <---
cd $PKG/usr/share/mplayer/skins

and it compiled and made a package but after its installed it wont work.

No icon and it wont even work through command line.

There are these lines in the Slackbuild script:

Quote:

DEFSKIN=${DEFSKIN:-"Blue"} # Download more skins at the following url:
SKINVER=${SKINVER:-"1.7"} # http://www.mplayerhq.hu/design7/dload.html
...
...
# The default skin to use (we need to add at least one)
SOURCE[1]="$SRCDIR/${DEFSKIN}-${SKINVER}.tar.bz2"
SRCURL[1]="http://www.mplayerhq.hu/MPlayer/skins/${DEFSKIN}-${SKINVER}.tar.bz2"
Did you have the default skin source file Blue-1.7.tar.bz2 in your build directory?

Scuzz 09-23-2009 02:21 PM

yes i have Blue-1.7.tar.bz2 .

Alien Bob 09-23-2009 02:53 PM

The problem is with that particular snapshot of MPlayer that you are trying to build.
Apparently, the part that gets stripped when building the Slackware package without patent issues, contains a bit of code which was added recently and which prevents successful compilation.

This has more information about your "error: static declaration of 'log2' follows non-static declaration" issue (look it up in your build log): http://lists.mplayerhq.hu/pipermail/...ly/077259.html

Using the latest SVN snapshot of MPlayer fixes your problem
Look for the VERSION definition in MPlayer.SlackBuild and change the value "r29390" to either one of these: "r29709" or "20090923". Both will checkout today's snapshot. Using this version, the MPlayer.SlackBuild script will compile a package with no errors.

Eric

larryhaja 09-23-2009 02:56 PM

Nevermind.

Chuck56 09-23-2009 03:00 PM

Quote:

Originally Posted by Scuzz (Post 3694513)
Im using Slackware-current and im trying to to enable the Slackbuild to use patented code as stated in the SLackBuild. I edited the script to show

USE_PATENTS=${USE_PATENTS:-"NO"}
to
USE_PATENTS="YES"

and it fails all the time with

MPlayer.SlackBuild: line 289: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
MPlayer.SlackBuild FAILED at line 289!

If i leave the Slackbuild script as is it compiles fine.

Any ideas on how to fix this ?

Scuzz, I had the same issue when I tried to use Eric's script. I must have tried it a half dozen times with different settings. I really wanted it to work for me but no joy.

I ended up using the 12.2 SlackBuild - mplayer (svn_20090413) with the latest player sources - mplayer-export-2009-09-11.tar.bz2. I changed the mplayer.SlackBuild as follows:

Code:

PRGNAM=mplayer
#VERSION=${VERSION:-svn_20090413}
VERSION=${VERSION:-export-2009-09-11}

Maybe not the best solution but my MPlayer seems to be working just fine. Hope that helps.

P.S. I noticed Eric has replied while I was typing and it looks like he already identified what was happening. I might have to give those new instructions a test drive when I get a chance.

Alien Bob 09-23-2009 03:09 PM

Quote:

Originally Posted by larryhaja (Post 3694659)
Nevermind.

Hey! You did not have to remove your post - you have independently come to the same conclusion I made, that a current SVN snapshot works fine. We both posted around the same time... always better to get confirmation from two sources.

Eric

rworkman 09-23-2009 03:43 PM

Seems easier to just install libdvdcss [1] than to rebuild mplayer...
[1] http://slackbuilds.org/repository/13...ies/libdvdcss/

Scuzz 09-23-2009 04:41 PM

Quote:

Originally Posted by rworkman (Post 3694717)
Seems easier to just install libdvdcss [1] than to rebuild mplayer...
[1] http://slackbuilds.org/repository/13...ies/libdvdcss/

And you would be correct.

I have to build MPlayer anyway with the --enable-lirc option so i thought this would be a better option. Turns out i was wrong again.

Quote:

Originally Posted by Alien Bob (Post 3694655)
Using the latest SVN snapshot of MPlayer fixes your problem
Look for the VERSION definition in MPlayer.SlackBuild and change the value "r29390" to either one of these: "r29709" or "20090923". Both will checkout today's snapshot. Using this version, the MPlayer.SlackBuild script will compile a package with no errors.


I tried to compile as you posted above and it compiled fine, But when i try starting MPlayer it just crashes with like 5 different errors on startup before dieing.

Thanks for all your help though.

Im going to just compile the basic source thats on my disk with lirc support and download libdvdcss

Daedra 09-23-2009 04:49 PM

I also compiled MPlayer to see if it could fix my problem with gecko-mediaplayer plugin and I have the same problem. It compiles fine but crashes on startup. I'm looking into it right now. So far this is all I have to go on

MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

Scuzz 09-23-2009 04:57 PM

Quote:

Originally Posted by Daedra (Post 3694783)
MPlayer interrupted by signal 11 in module: unknown
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

That is 100% the exact response i got.

larryhaja 09-23-2009 05:46 PM

Quote:

Originally Posted by Daedra (Post 3694783)
I also compiled MPlayer to see if it could fix my problem with gecko-mediaplayer plugin and I have the same problem. It compiles fine but crashes on startup. I'm looking into it right now. So far this is all I have to go on

I'm using svn snapshot 29633 and I'm not having any issues with programs that use mplayer. I have Gnome player as well as the gecko-mediaplayer plugin installed and haven't seen any issues. Do you have a test case for the gecko-mediaplayer-plugin?

Mark Pettit 09-24-2009 01:09 AM

I just did EXACTLY what alien-bob suggested (ie update build script). It pulled down the latest code, into a directory and then failed, saying it could not find the tarball. So I simply did a 'tar -jcvf MPlayer-r29709.tar.bz2 MPlayer-r29709/'
and re-ran the build - and it built fine.

Then I did a manual test of a simple avi (divx) and it worked fine. I don't do gecko-* stuff - can't comment on that.

Daedra 09-24-2009 03:40 AM

Quote:

Originally Posted by larryhaja (Post 3694825)
I'm using svn snapshot 29633 and I'm not having any issues with programs that use mplayer. I have Gnome player as well as the gecko-mediaplayer plugin installed and haven't seen any issues. Do you have a test case for the gecko-mediaplayer-plugin?

Actually gecko works fine on 32bit for me, but is unstable to the point of unusable on 64bit. Are you running 64?

larryhaja 09-24-2009 09:32 AM

Quote:

Originally Posted by Daedra (Post 3695229)
Are you running 64?

Nope. Running 32 bit here.

Daedra 09-24-2009 04:39 PM

We'll I got it to work with a band-aid fix. The reason I recompile mplayer is to get vdpau support since I have a nvidia card, that above error only seems to affect gui mplayer, if I run from mplayer from command line it works fine. So I just run gnome-mplayer now and it works fine. Still looking into fixes up as of now it works with gnome-mplayer and I have vdpau support :).

andrew.46 09-24-2009 05:46 PM

Hi Daedra,

Quote:

Originally Posted by Daedra (Post 3696065)
...above error only seems to affect gui mplayer, if I run from mplayer from command line it works fine.

I believe the default gui has been effectively abandoned by the MPlayer developers.

Andrew

ponce 09-25-2009 02:34 AM

this revision looks like has a working-for-me gui, don't know if it's last revision in which gui works (surely not).
if you checkout that mplayer svn revision now it will checkout also a newer libswscale (in integrated-ffmpeg), so also after exporting that mplayer revision (29587) it won't build (that's why I linked the .tar.xz with the checkout I've done on 30th of august, it has the correct ffmpeg svn revision).

i choose to just not build the default gui anymore, but this is a personal decision.
looks like it will be probably removed from mplayer code.

Daedra 09-25-2009 01:16 PM

Quote:

Originally Posted by poncez (Post 3696489)
this revision looks like has a working-for-me gui, don't know if it's last revision in which gui works (surely not).
if you checkout that mplayer svn revision now it will checkout also a newer libswscale (in integrated-ffmpeg), so also after exporting that mplayer revision (29587) it won't build (that's why I linked the .tar.xz with the checkout I've done on 30th of august, it has the correct ffmpeg svn revision).

i choose to just not build the default gui anymore, but this is a personal decision.
looks like it will be probably removed from mplayer code.


Thanks for the heads up on the gui thing. I'm just using gnome-mplayer GUI frontend now with gecko-media plugins. I also finally got vdpau working. I can't believe I had just heard about this. Before a 1080p trailer would generally eat around 30-40% of my CPU now its less than 3%. Anyone with a newer nvidia card should check it out, it's a definite improvement.

Scuzz 09-26-2009 12:16 PM

Quote:

Originally Posted by Daedra (Post 3697011)
I can't believe I had just heard about this. Before a 1080p trailer would generally eat around 30-40% of my CPU now its less than 3%. Anyone with a newer nvidia card should check it out, it's a definite improvement.

There is also a xine-vdpau you can checkout also.

Daedra 09-26-2009 03:54 PM

BTW, I got gecko-mediaplayer plugins working under 64bit. Turns out the I had caching disabled, it now working.


All times are GMT -5. The time now is 01:41 AM.