<br><br><div class="gmail_quote">On Mon, Feb 28, 2011 at 19:06, Dan Dennedy <span dir="ltr"><<a href="mailto:dan@dennedy.org">dan@dennedy.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Mon, Feb 28, 2011 at 8:23 AM, Simon A. Eugster <<a href="mailto:granjow@gmail.com">granjow@gmail.com</a>> wrote:<br>
> On 28 February 2011 01:26, Dan Dennedy <<a href="mailto:dan@dennedy.org">dan@dennedy.org</a>> wrote:<br>
>> On Sun, Feb 27, 2011 at 1:47 PM, Simon A. Eugster <<a href="mailto:granjow@gmail.com">granjow@gmail.com</a>> wrote:<br>
>>> On 27 February 2011 22:40, Dan Dennedy <<a href="mailto:dan@dennedy.org">dan@dennedy.org</a>> wrote:<br>
>>>> On Sun, Feb 27, 2011 at 1:01 PM, Simon A. Eugster <<a href="mailto:granjow@gmail.com">granjow@gmail.com</a>> wrote:<br>
>>>>> Hey Dan,<br>
>>>>><br>
>>>>> Just had someone on IRC who tried to compile MLT. It failed on<br>
>>>>> actually everything, the reason was that libc6-dev was missing. Is it<br>
>>>>> possible to add a check for this when configuring MLT? It's not<br>
>>>>> important, but nice to have :)<br>
>>>><br>
>>>> Not interested personally. IMO, the build does not need to<br>
>>>> idiot-proof. Interested parties are welcome to submit a patch.<br>
>>><br>
>>> Agree. I was too fast anyway, installing libc6-dev did not solve the<br>
>>> problem unfortunately.<br>
>>> <a href="http://pastebin.com/sxUS9A5C" target="_blank">http://pastebin.com/sxUS9A5C</a><br>
>>> This is now beyond my knowledge ;)<br>
>><br>
>> They are using the mlt --avformat-svn option with a whole bunch of<br>
>> ffmpeg --enable options within the mlt --avformat-svn-options but not<br>
>> enough libs specified in --avformat-ldextra. Basically, trying to<br>
>> advanced options described here, but not understanding what to do:<br>
>> <a href="http://www.mltframework.org/twiki/bin/view/MLT/BuildTips" target="_blank">http://www.mltframework.org/twiki/bin/view/MLT/BuildTips</a><br>
><br>
> He was following the instructions on our download page, and<br>
<br>
I was mistaken about his using --avformat-svn. Reviewing the log<br>
again, it appears to be statically linking to<br>
/usr/local/lib/libavcodec.a et al, and obviously it is missing all of<br>
the LDFLAGS that pkg-config normally provides.<br>
<br>
> <a href="http://ubuntuforums.org/showthread.php?t=786095" target="_blank">http://ubuntuforums.org/showthread.php?t=786095</a><br>
> for ubuntu. Which are the bad flags there?<br>
<br>
Ah, here is the reason. That page does not use --enable-shared, which<br>
is probably a good thing because then you do not update libraries of<br>
dependent packages without the management provided by packages. Those<br>
instructions are probably a decent way to get more current versions of<br>
the ffmpeg utilities without overwriting shared libs from packages;<br>
however, as you can see it is still installing the static libs to<br>
/usr/local and causing grief for building other software from source.<br>
I see there are 154 pages on that thread, which tells us that a lot of<br>
people are screwing up their systems. Surely somewhere in there is<br>
advice from someone saying to use --enable-shared and --prefix=/usr -<br>
sigh.<br>
<br>
I consider the approach we suggest on <a href="http://kdenlive.org" target="_blank">kdenlive.org</a> installing-source<br>
irresponsible due to the usage of prefix=/usr for ffmpeg and mlt. Yes,<br>
it will get it onto a person's system so they can check it out but in<br>
an unmanaged fashion that is hostile to other software sharing the<br>
same dependencies. Still, it would be nice to provide something like<br>
this in addition to the build script because some want to understand<br>
what is going on, and it can help new developers. As for developers, I<br>
do not know how you guys do it, but I use a combination of<br>
--prefix=$HOME and environment variables.<br>
<br>
> Something I noticed, we says that libavformat-dev/libswscale-dev/...<br>
> is required, but the ubuntu page does not. Is this related to this<br>
> problem?<br>
<br>
Heh, yeah, first we guide the user to install ffmpeg from source into<br>
/usr. Then, we have them install libavformat-dev and friends. We could<br>
just drop the ffmpeg from source step and keep the libavformat-dev<br>
dependency on the mlt step. But that still leaves mlt going into /usr.<br>
Perhaps leaving the default /usr/local prefix will suffice and be less<br>
problematic. Can anyone test this in a clean (os installed with its<br>
updates and nothing else manually installed) virtual machine while I<br>
work on documenting the build script?<br>
<br></blockquote><div>I use it this way. I have installed the build-dep stuff needed for
ffmpeg, frei0r and mlt, and have simply replaced /usr with /usr/local in
every command line tool. This has the advantage that it's already in
the PATH of all sorts of things, so that most detection scripts
(configure, cmake) will find the libs there with no change. There is one
lib that will not be detected because the version shipping with Kubuntu
10.04 LTS is too old (I simply dropped the --enable-libx264 flag).<br>
<br>Also, as a beginner step, I would suggest we emphasize the latest
version that is released (i.e. using the version tags for ffmeg, frei0r
and mlt) and that users wander to HEAD only if there are issues. except
for kdenlive, as it is arguably to get the latest greatest that people
compile it anyway.<br>
<br>Note that I got this weird error due to this mix: if the user has
kdenlive installed on his system, then it may well occur that he runs
kdenlive from /usr/local/bin, but the config still uses /usr/bin/melt.
This mismatch is strange, as he will see all effects working in the
editor, but when rendering to file or DVD, some of them will not work.
It took me some digging to find this out. One suggestion would be to
have melt output the version of mlt it is compiled with, and comparing
that to the version kdenlive is using, and warn about discrepancy. <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
>> Probably they should use the kdenlive build script I have posted to<br>
>> the forum - the one from the old kommander wizard that I made to work<br>
>> just in bash.<br>
><br>
> Forwarded.<br>
<br>
I will be putting together an official page on <a href="http://kdenlive.org" target="_blank">kdenlive.org</a> based on a<br>
similar script I made recently for melted:<br>
<a href="http://www.mltframework.org/twiki/bin/view/MLT/BuildScripts" target="_blank">http://www.mltframework.org/twiki/bin/view/MLT/BuildScripts</a><br>
<br>
The advantage of this is that the new script does not default to<br>
/usr/local, but rather a dated subdirectory of ~/kdenlive. All the<br>
dependencies it builds are isolated and resolve perfectly provided you<br>
use the launch script. It would be really cool if we can make a<br>
top-level .desktop file and all generated folders hidden. Then, you<br>
would have something akin to a self-building mac app bundle. Next, if<br>
we can make kdenlive more relocatable, the build folder can be copied<br>
to other machines with the same os but different home directories.<br>
That is possible with melted and OpenShot but not yet Kdenlive.<br>
<br>
--<br>
+-DRD-+<br>
<br>
------------------------------------------------------------------------------<br>
Free Software Download: Index, Search & Analyze Logs and other IT data in<br>
Real-Time with Splunk. Collect, index and harness all the fast moving IT data<br>
generated by your applications, servers and devices whether physical, virtual<br>
or in the cloud. Deliver compliance at lower cost and gain new business<br>
insights. <a href="http://p.sf.net/sfu/splunk-dev2dev" target="_blank">http://p.sf.net/sfu/splunk-dev2dev</a><br>
_______________________________________________<br>
Kdenlive-devel mailing list<br>
<a href="mailto:Kdenlive-devel@lists.sourceforge.net">Kdenlive-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/kdenlive-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/kdenlive-devel</a><br>
<br>
</blockquote></div><br>