LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2004, 06:54 AM   #1
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Rep: Reputation: 15
General MPlayer Question, 1-week newbie


Hello,
This is perhaps too application-specific, but I think that it is too newbie-ish a question to pose to the software board. I have Mandrake 10.0 running KDE on an emachines laptop with AMD 2500 XP-M. I installed MPlayer and MEncoder using the RPM management utility. When I tried to use LAME to encode something with MEncoder it said something like "you don't have lame! recompile MEncoder with LAME installed." OK fair enough. I downloaded LAME source code and compiled it and it said it was fine. So then I remove the RPMs of MPlayer and MEncoder and download source, which is slightly newer. The source wouldn't compile, but it gave a very specific error message which I reported to the MPlayer people. So, I guess I have to use the RPMs, but how do I tell it to use LAME? Re-installing the RPM doesn't work.

P.S. What does one usually do with source code after successfully installing the program?

P.P.S. In general is it preferable to install from source vs. RPM? Is there a big difference?

Thank you very much for your time!
 
Old 07-17-2004, 07:08 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
whats the errors message?


after installing the sources are usually kept until the app it installed works fine (if it didn't work then just retry to compile) .... once your done fully with the sources its safe to delete them,.. most people tho keep the kernel sources on there computer as some apps use it when they install, and plus if you wanna tweak the system, theres no need to download the sources (and configuring the kernel takes hours, plus the time needed to go back and reinstall if you leave something out)


generally RPM is used (as distros that use it tend to be more popular, in gentoo it compiles everything for you thru scripts called ebuilds ... rather easy) ..... tho its most desirable to sue source code to install programs (unless its binary only, like some games ported over from windows so linux people can use them, or vendor drivers that are almost always binary)

its best to install from source as rpm's are binary only, and that leads to a few problems

1) some libs are binary incompatible with other versions of the same lib ... in example: app1 needs lib version 5 to work, but you only have version 4.9, and app1 cant work with version 4.9 if its binary (but if you install from source, then app1 would be made to work with lib version 4.9 (as long as its not different lib,... like gtk+1.* is different from gtk+-2.* ,.. as far as applications are concerned they are different libs, and sources made for gtk+1 cant work with gtk+2 )

2) supposedly installing from source gets the final app more optimized for your system (in reality the difference is almost nothing)

thats pretty much the only differences.. with sources you don't have to have like 10 versions of the same lib, just to get 10 programs to work right ...
 
Old 07-17-2004, 04:54 PM   #3
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
This is the error message I get:

ffv1.c: In function `encode_rgb_frame':
ffv1.c:465: internal compiler error: in find_function_data, at function.c:329
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[1]: *** [ffv1.o] Error 1
make[1]: Leaving directory `/home/johngcarlsson/src/MPlayer-1.0pre5/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2

Can anybody help me with this?
 
Old 07-29-2004, 10:42 AM   #4
Rathann
Member
 
Registered: Jul 2004
Location: Poland
Distribution: RedHat 7.3/8.0/9, Fedora Core 1/2/3/4
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by johngcarlsson
This is the error message I get:

ffv1.c: In function `encode_rgb_frame':
ffv1.c:465: internal compiler error: in find_function_data, at function.c:329
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://qa.mandrakesoft.com/> for instructions.
make[1]: *** [ffv1.o] Error 1
make[1]: Leaving directory `/home/johngcarlsson/src/MPlayer-1.0pre5/libavcodec'
make: *** [libavcodec/libavcodec.a] Error 2

Can anybody help me with this?
This is a compiler bug (as the error message says). MPlayer source code is known to expose them from time to time in various versions of gcc. The solution is to upgrade your gcc.

Why don't you try the latest 1.0pre5 RPMs? There are no specific Mandrake binaries, but you could try Fedora Core 1 or 2 packages. I think they'll work fine.
 
Old 07-29-2004, 10:56 AM   #5
Rathann
Member
 
Registered: Jul 2004
Location: Poland
Distribution: RedHat 7.3/8.0/9, Fedora Core 1/2/3/4
Posts: 35

Rep: Reputation: 15
Quote:
Originally posted by SciYro

its best to install from source as rpm's are binary only, and that leads to a few problems

1) some libs are binary incompatible with other versions of the same lib ... in example: app1 needs lib version 5 to work, but you only have version 4.9, and app1 cant work with version 4.9 if its binary (but if you install from source, then app1 would be made to work with lib version 4.9 (as long as its not different lib,... like gtk+1.* is different from gtk+-2.* ,.. as far as applications are concerned they are different libs, and sources made for gtk+1 cant work with gtk+2 )

2) supposedly installing from source gets the final app more optimized for your system (in reality the difference is almost nothing)

thats pretty much the only differences.. with sources you don't have to have like 10 versions of the same lib, just to get 10 programs to work right ...
I tend to disagree. Well-made RPMs save you the trouble when you want to uninstall or upgrade. And you always know which file belongs to which package. It's easier to maintain order in your filesystem then. There are ways of dealing with this when you compile and install from source, but they are all do more or less what a package manager does. And if you want to compile, there's nothing stopping you, because you can always download a source RPM and rebuild it.

Granted, there are often dependency problems, but this is not a rpm-specific issue. I mean, when you install from source, you have to have appropriate versions of libs installed anyway. And your example isn't very convincing, because version 4.9 and 5.0 of some lib will usually be incompatible.
 
Old 07-29-2004, 11:33 AM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
RPMs aren't designed to mixnmatch anyway, for example if you only use RPMs provided by your distro vendor then it's unlikely that you run into problems. Don't install RPMs not compile for your distro unless you know what you're doing.

As to whether its preferable to install from source or RPM, in my opionion if you have a RPM based distro then go with RPMs, only install from the source if you really have to.

Try getting the Mandrake mplayer source RPM instead then recompile it,
http://distro.ibiblio.org/pub/linux/....13mdk.src.rpm
you are more likely to succeed.
 
  


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
General Newbie question jolphil Linux - Hardware 1 02-19-2005 01:16 PM
General Harddrive Question ... Newbie bwoWarMachine Linux - General 5 01-27-2005 10:54 PM
last sed question of the week sphynx Programming 1 04-28-2004 07:44 PM
FreeBSD 5.1 General Question newbie alkad_mzu *BSD 5 09-29-2003 03:22 AM
General MPlayer question gonniff Linux - Software 7 09-19-2003 03:02 AM


All times are GMT -5. The time now is 04:08 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