LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install latest smplayer (http://www.linuxquestions.org/questions/linux-software-2/how-to-install-latest-smplayer-4175456039/)

mddesai 03-29-2013 12:09 PM

How to install latest smplayer
 
hi all

i'm running CentOS 6.4 x64 and want to install smplayer 0.8.4. the latest smplayer for centos6 is provided by 'nux dextop' and its 'smplayer-0.8.1-1'. in smplayer's official website they have given instruction for ubuntu/suse/arch/mandriva/slackware, but not centos.

i downloaded 'smplayer-0.8.4.tar.bz2', and followed setup instructions (install.txt):
Quote:

2) How to make a rpm package
----------------------------
Run rpmbuild -tb smplayer-0.6.x.tar.bz2
You'll find the rpm pachage under /usr/src/packages/RPMS/i586/

Take a look at this document to know how to create a rpm from the SVN sources:
http://smplayer.berlios.de/forums/viewtopic.php?id=188
1. but i'm getting errors
Code:

[root@srv archives]# rpmbuild -tb smplayer-0.8.4.tar.bz2
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EJwv9Y
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf smplayer-0.8.4
+ /usr/bin/bzip2 -dc /home/madhu/Downloads/archives/smplayer-0.8.4.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd smplayer-0.8.4
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ngnLQc
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd smplayer-0.8.4
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make PREFIX=/usr QMAKE=qmake LRELEASE=lrelease
./get_svn_revision.sh
cd src && qmake  && DATA_PATH=\\\"/usr/share/smplayer\\\" TRANSLATION_PATH=\\\"/usr/share/smplayer/translations\\\" DOC_PATH=\\\"/usr/share/doc/packages/smplayer\\\" THEMES_PATH=\\\"/usr/share/smplayer/themes\\\" SHORTCUTS_PATH=\\\"/usr/share/smplayer/shortcuts\\\" make
/bin/sh: qmake: command not found
make: *** [src/smplayer] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.ngnLQc (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.ngnLQc (%build)

2. and there is no 'packages/RPMS/i586/' directory
Code:

[root@srv src]# pwd
/usr/src
[root@srv src]# ls -lh
total 12K
drwxr-xr-x. 2 root root 4.0K Sep 23  2011 debug
drwxr-xr-x. 4 root root 4.0K Mar 17 02:12 kernels
drwxr-xr-x. 2 root root 4.0K Mar 17 02:22 nvidia-310.40
lrwxrwxrwx. 1 root root  34 Mar 17 13:15 vboxhost-4.2.10 -> /usr/share/virtualbox/src/vboxhost

While installing CentOS 6.4 i had included 'Development Tools'. What i'm doing wrong?

Thanks.

teckk 03-29-2013 02:11 PM

http://wiki.centos.org/AdditionalResources/Repositories
http://pkgs.repoforge.org/smplayer/
http://packages.atrpms.net/dist/el6/
http://packages.atrpms.net/dist/el6/smplayer/

mddesai 03-29-2013 02:36 PM

2 Attachment(s)
...but they are all v0.8.1 or less only. i've already installed v0.8.1-1 from 'Nux Dextop'. i'am hoping to install v0.8.4 for latest fixes.
Quote:

SMPlayer changes

smplayer 0.8.4:

New option to select the fps for external subtitles.
The video equalizer dialog has been rewritten and now it allows to switch on/off the software equalizer from there.
Now smplayer checks for updates automatically and notifies the user if a new version is found.
Support for encoding ISO-8859-16 for subtitles.
The support for MPlayer2 has been improved and now we provide an optional package for Windows which includes MPlayer2. MPlayer2 has interesting new features like support for mkv ordered chapters and precise seeks.
New translations: Thai and Hebrew.
Some bugfixes.

smplayer 0.8.3:

Fix for Youtube playback.

smplayer 0.8.2:

A skinnable interface has been added. Several skins are included.
Support for 6.1 and 7.1 audio output.
A "Privacy" section in the preferences dialog has been added. You can disable saving the recent files or URLs.
The main window can be moved by dragging the video area.
Fix for a freeze that may happen on Windows XP.
(Windows) The font cache is created before showing the GUI.

colucix 03-29-2013 03:56 PM

Just two notes from the output of the rpmbuild command line:
Code:

cd /root/rpmbuild/BUILD
this tells you that the build directory is not in /usr/src anymore. Indeed it changed since CentOS 6.0, whereas prior releases used /usr/src.
Code:

/bin/sh: qmake: command not found
this one tells you that the system misses some dependency. The qmake command is provided by the qt-devel packages. I've never installed smplayer, but most likley it uses the Qt libraries for its graphical user interface and the build process depends on a proper Qt development installation. Try
Code:

yum install qt-devel
to solve this step.

John VV 03-30-2013 12:05 AM

smplayer is a QT4 frontend to mplayer

so qmake and the qt development files needs installing
along with mplayer and it's -devel package

see:
Code:

su -
yum grouplist

for the software groups to be installed

mddesai 03-30-2013 02:45 AM

1 Attachment(s)
Quote:

Originally Posted by colucix (Post 4921272)
Just two notes from the output of the rpmbuild command line:
Code:

cd /root/rpmbuild/BUILD
this tells you that the build directory is not in /usr/src anymore. Indeed it changed since CentOS 6.0, whereas prior releases used /usr/src.
Code:

/bin/sh: qmake: command not found
this one tells you that the system misses some dependency. The qmake command is provided by the qt-devel packages. I've never installed smplayer, but most likley it uses the Qt libraries for its graphical user interface and the build process depends on a proper Qt development installation. Try
Code:

yum install qt-devel
to solve this step.

Great!!! smplayer is up and running. thanks :hattip:

To sum it up, for all who want to install latest smplayer for rhel6/centos6/scientific linux6, these are the steps:
  1. # yum groupinstall "development tools"
  2. # yum install qt-devel
  3. # PATH=$PATH:/usr/lib64/qt4/bin ; export PATH
  4. install audio/video codecs
  5. download smplayer-0.8.4.tar.bz2
  6. # rpmbuild -tb smplayer-0.8.4.tar.bz2
  7. # /root/rpmbuild/BUILD/smplayer-0.8.4/src/smplayer
that's it


All times are GMT -5. The time now is 07:30 AM.