LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   General MPlayer Question, 1-week newbie (https://www.linuxquestions.org/questions/linux-newbie-8/general-mplayer-question-1-week-newbie-206184/)

johngcarlsson 07-17-2004 05:54 AM

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!

SciYro 07-17-2004 06:08 AM

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 ...

johngcarlsson 07-17-2004 03:54 PM

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?

Rathann 07-29-2004 09:42 AM

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.

Rathann 07-29-2004 09:56 AM

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.

Demonbane 07-29-2004 10:33 AM

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.


All times are GMT -5. The time now is 04:03 AM.