Kdenlive MacOsX packages

Dear friends,

Using a remote MacOsX computer, I am trying to submit packages to MacPorts. 

There are several depencies missing in MacPorts, so I try to submit them.

I am a complete beginner in MacOsX, so don't blame me.

Here are the first packages:

* kdesdk4 compilation problem related to gcc42: http://trac.macports.org/ticket/18306

* MLT: http://trac.macports.org/ticket/18286

* Kdenlive: in progress.

Done:

* freiOr: https://trac.macports.org/ticket/18248 (published in MacPorts)

* lv2core: superceeds ladspa-sdk, which is not maintained any longer. http://trac.macports.org/ticket/18309 (will be replaced by lv2core)

* gavl: http://trac.macports.org/ticket/18247 (published in MacPorts)

* Libsamplerate: http://trac.macports.org/ticket/18299 (published, new version in MacPorts)

* Sox : http://trac.macports.org/ticket/18285 (published, new version in MacPorts)

* ffmpeg-devel upgraded to latest revision. Cool.

Rejected for normal reasons:

 

* amrnb codecs: http://trac.macports.org/ticket/18311

* amrwb codecs: http://trac.macports.org/ticket/18312

Feel free to test and propose modifications. I will update this post with the required packages ... until we publish MLT and Kdenlive. When over, I would like to hand over maintenance to a MacOsX kdenlive user.

I would also like to thanks the kind help of MacPort team and indivuduals who helped me.

Kind regards,
Jean-Michel

Dear friends,

Here is a first draft of the MLT port file. It compiles fine.

There still are problems when compiling with sox and jackrack. I did not test qimage.
Can anyone help me solve one of these three issues.

******************************************************

# $Id$

PortSystem          1.0.0

name                mlt
version             20090131
categories          multimedia
maintainers         jmpoure \
                    poure.com:jm
description         Open source multimedia framework - core libraries
long_description    MLT is an open source multimedia framework, designed and developed for \
                    television broadcasting. It provides a toolkit for broadcasters, video \
                    editors, media players, transcoders, web streamers and many more types of \
                    applications. The functionality of the system is provided via an assortment \
                    of ready to use tools, xml authoring components, and an extendible plug-in \
                    based API. \
                    \
                    This package contains the files necessary for running applications that use \
                    the MLT multimedia framework.
homepage            http://www.mltframework.org
platforms           darwin

fetch.type          svn
svn.url             http://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt
worksrcdir          mlt

#checksums          md5 1c5caf0a3c03b6fe312b9e5998ae01f8 \
#                   sha1 da673028a731ffbc968726fc19dc284d31c99796 \
#                   rmd160 094f90548c6dd01cc190cc4dea0a471731a9636c 

depends_build       port:pkgconfig \
                    port:subversion

depends_lib         port:atk \
                    port:frei0r-plugins \
                    port:jack \
                    port:ffmpeg-devel \
                    port:gtk2 \
                    port:libdv \
                    port:libquicktime \
                    port:libsamplerate \
                    port:libvorbis \
                    port:sox

configure.args      --enable-gpl --disable-jackrack --disable-sox --avformat-swscale
configure.pkg_config_path   ${prefix}/lib/pkgconfig
configure.pkg_config    ${prefix}/bin/pkg-config

configure.cflags-append "-I${prefix}/include"
configure.ldflags-append "-L${prefix}/lib"
build.env CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}""

 

*****************************************************

When building with sox:

cc -O2 -I/opt/local/include -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I..    -c -o albino.o albino.c
cc -o albino albino.o -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L../miracle -lmiracle -L../valerie -lvalerie -L../miracle -lmiracle -L../framework -lmlt
filter_sox.c:53:17: error: st.h: No such file or directory
filter_sox.c:82:43: error: missing binary operator before token "("
filter_sox.c:138:43: error: missing binary operator before token "("
filter_sox.c:255:43: error: missing binary operator before token "("
filter_sox.c:305:43: error: missing binary operator before token "("
filter_sox.c:312:43: error: missing binary operator before token "("
filter_sox.c:418:43: error: missing binary operator before token "("
make[2]: *** [depend] Error 1
make[1]: *** [depend] Error 1
make: *** [all] Error 1

Warning: the following items did not execute (for mlt): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

**********************************************************************
Wen compiling with jackrack:

cc -o humperdink client.o io.o remote.o -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L../valerie -L../framework -lvalerie -lmlt
cc -O2 -I/opt/local/include -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -Wall -fPIC -DPIC   -O3 -pipe -fomit-frame-pointer -DUSE_MMX -DUSE_SSE -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DARCH_X86_64 -D__DARWIN__ -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -I..    -c -o albino.o albino.c
cc -o albino albino.o -L/opt/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa -L../miracle -lmiracle -L../valerie -lvalerie -L../miracle -lmiracle -L../framework -lmlt
jack_rack.c:32:20: error: ladspa.h: No such file or directory
plugin.c:28:20: error: ladspa.h: No such file or directory
In file included from plugin_desc.c:30:
plugin_desc.h:29:20: error: ladspa.h: No such file or directory
plugin_mgr.c:36:20: error: ladspa.h: No such file or directory
In file included from plugin_settings.c:30:
plugin_settings.h:30:20: error: ladspa.h: No such file or directory
In file included from process.c:35:
process.h:31:20: error: ladspa.h: No such file or directory
In file included from filter_jackrack.c:34:
jack_rack.h:30:20: error: ladspa.h: No such file or directory
In file included from filter_ladspa.c:32:
jack_rack.h:30:20: error: ladspa.h: No such file or directory
make[2]: *** [depend] Error 1
make[1]: *** [depend] Error 1
make: *** [all] Error 1
 

We need a ladspa package but I don't know how to write a port for this package.

The qimage module should compile if you follow whats written in this bug report: 

http://sourceforge.net/tracker/index.php?func=detail&aid=2498600&group_i...

 

I do not know if anyone can bring patches for this problem into mlt directly. The bug report is quite old but there is no response from any developer.

Okay, thanks. qimage4 is found now. But I am trying to build kdelibs4 but I am having problems with automoc, which does not build. Can you upgrade to latest MacPort packages and give more information in this thread?

I created a ticket and could compile automoc. See first message.

I am stuck installing kdesdk4. Any help?

 you need to install apples gcc-42 which is included in the latest xcode. i think i installed xcode31. i cant remember if the gcc-42 is an extra package or not. the problem is that all the kde stuff depends on this compiler but i is not in macports because its an apple thing. most of the kde4 stuff does also compile with the gcc-42 which is included in macports but then one would need to change the configure-compiler option in all kde4 portfiles. one would need to talk with one of the kde4-mac team to check the possibilites. 

 

my solution was to install apples gcc-42 which can be downloaded from the apples developer zone.

I installed apple-gcc42 which is part of MacPorts, but it did not solve anything. Thanks for the input. Bye.

I completely stuck and cannot compile Kde 4.2. I hope this will improve tomorrow.

ok i didn't see the apple-gcc-42 package in macports, but the problem is that the binaries which are created by this package are called gcc-apple-4.2 or so. and when the configure compiler option is set to gcc-42 as in all the kde4 ports it does check for the availability of gcc-4.2 binaries like it is written in the configure error you posted on the macports bug tracker.

 

in the documentation of macports http://guide.macports.org/ only the following configure.compiler options are given as valid:

gcc-3.3 gcc-4.0 gcc-4.2 llvm-gcc-4.2 apple-gcc-3.3 apple-gcc-4.0 macports-gcc-3.3 macports-gcc-3.4 macports-gcc-4.0 macports-gcc-4.1 macports-gcc-4.2 macports-gcc-4.3 macports-gcc-4.4

so i dont know if is possible to use the value apple-gcc-4.2 there. but you should try, I think this would also be a much cleaner way for the kde4 packages (if they build with the apple-gcc-42 compiler from macports ) because one could include apple-gcc-42 as dependency and would not stuck with the error you got.

 

 

Thanks. I could use this patch, which compiles fine.

Index: Portfile
===================================================================
--- Portfile    (revision 46304)
+++ Portfile    (working copy)
@@ -17,7 +17,10 @@
 distname            phonon-${version}
 checksums           md5 f851219ec1fb4eadc7904f053b6b498d
 
-depends_lib-append  port:qt4-mac
+depends_lib-append  port:qt4-mac \
+                    port:gcc42
 
 configure.args-append    -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
                         ../${distname}
+
+configure.compiler  macports-gcc-4.2

I uploaded a series of patches here:
http://trac.macports.org/ticket/18306

Presently building kdelibs4, so are getting closer to a solution.

I am stuck with kdepimlibs4 compilation problem. I added default gcc compiler configuration to kde defaut options. This is the only remaining problem.

JMP,

ffmpeg-devel is not installing for me, there is some linking error, so I am just using ffmpeg now. That let me move on to the mlt Portfile.

Please remove the dependency on libquicktime. Only the kino module uses it, and I disable the kino module within MLT configure on OS X.

Sox is building now, and I will let you know if there is anything goes wrong from there.

Dear Dan,

There are some news: KDE4 relies on apple-gcc-42 which is provided with MacOs 10.5. I am using 10.4 and therefore I have problems building kdesdk4. But this problem was apparently fixed yesterday. So I am now running a huge compile in background while doing some important work. I will be back on this 10.4 issue on wednesday. Bye.

The latest portfile.5 is here: http://trac.macports.org/ticket/18286

If you register on track on MacPorts, you will be able to submit patches, which would be the easiest way to proceed. I am stuck on 10.4 and very slow now. Sorry.

Please remove the dependency on port:kdesdk4 and the lines:

                    --kde-libdir=/opt/local/lib/kde4 \
                    --kde-includedir=/opt/local/include \
 

The qimage MLT module only uses kdelibs on Qt3

I updated the ticket on macports.org with this change and others. The MLT port now installs for me!

Thanks. I saw your post and updated the Portfile on tracs. Did you also check that sox and jack were working. Also, I think you mean "The qimage MLT module only uses kdelibs on Qt4". I am currently testing and I propose to follow discussion here: http://trac.macports.org/ticket/18286

No, Dan was right when saying that QImage uses kdelibs for Qt3 only. It was used to add some extra image formats that are now fully supported in Qt4, so we don't need the kdelibs anymore for the Qt4 QImage producer.