![]() |
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 ? |
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.
|
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. |
Quote:
Seems like the answer to me. |
Quote:
Code:
|
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.logEric |
Try linuxpokernut's idea. The worst that can happen is it still doesn't work.
|
Quote:
Quote:
|
yes i have Blue-1.7.tar.bz2 .
|
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 |
Nevermind.
|
Quote:
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=mplayerP.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. |
Quote:
Eric |
Seems easier to just install libdvdcss [1] than to rebuild mplayer...
[1] http://slackbuilds.org/repository/13...ies/libdvdcss/ |
Quote:
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:
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 |
| All times are GMT -5. The time now is 12:19 AM. |