Opened 10 years ago

Closed 10 years ago

#27622 closed defect (fixed)

kdenlive configure halts (missing phonon and Qt qmake?)

Reported by: mrtoftrash@… Owned by: ddennedy (Dan Dennedy)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: kdenlive

Description

When applying patches to kdenlive and configuring kdenlive, I receive the following errors:

:info:extract --->  Extracting kdenlive-0.7.8.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/kdenlive/kdenlive-0.7.8.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/kdenlive/kdenlive-0.7.8.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing proc-post-org.macports.extract-extract-0
:debug:patch patch phase started at Thu Dec  9 11:58:54 EST 2010
:debug:patch Executing org.macports.patch (kdenlive)
:msg:patch --->  Applying patches to kdenlive
:info:patch --->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/kdenlive/files/patch-src-colorcorrection-vectorscopegenerator.h.diff
:debug:patch Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:patch Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/build" && /usr/bin/patch -p0'
:info:patch patching file ../kdenlive-0.7.8/src/colorcorrection/vectorscopegenerator.h
:debug:patch Executing proc-post-org.macports.patch-patch-0
:error:patch ######################################################
:error:patch A copy of phonon could not be found. Please install  
:error:patch qt4-mac to provide this. If you have already done this 
:error:patch your Qt installation is missing the phonon backend.  
:error:patch Please reinstall Qt4 with phonon support.            
:error:patch ######################################################
:msg:patch --->  Configuring kdenlive
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Thu Dec  9 11:58:54 EST 2010
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure Executing org.macports.configure (kdenlive)
:debug:configure Environment: CPATH='/opt/local/include' CFLAGS='-pipe -O2 -arch x86_64' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-pipe -O2 -arch x86_64' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.6' CXX='/usr/bin/g++-4.2' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/.CC_PRINT_OPTIONS' F90FLAGS='-pipe -O2 -m64' LDFLAGS='-L/opt/local/lib -arch x86_64' OBJC='/usr/bin/gcc-4.2' FCFLAGS='-pipe -O2 -m64' INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -O2 -arch x86_64' FFLAGS='-pipe -O2 -m64' CC_PRINT_OPTIONS='YES' CC='/usr/bin/gcc-4.2'
:debug:configure Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/build" && cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -Wno-dev -DBUILD_doc=OFF -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KDE4 -DPHONON_INCLUDE_DIR=/opt/local/libexec/qt4-mac/include -DPHONON_LIBRARY=/opt/local/libexec/qt4-mac/lib/phonon.framework/phonon -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" ../kdenlive-0.7.8 -DNO_JOGSHUTTLE=1 -DCMAKE_OSX_ARCHITECTURES="x86_64"'
:info:configure -- The C compiler identification is GNU
:info:configure -- The CXX compiler identification is GNU
:info:configure -- Checking whether C compiler has -isysroot
:info:configure -- Checking whether C compiler has -isysroot - yes
:info:configure -- Checking whether C compiler supports OSX deployment target flag
:info:configure -- Checking whether C compiler supports OSX deployment target flag - yes
:info:configure -- Check for working C compiler: /usr/bin/gcc-4.2
:info:configure -- Check for working C compiler: /usr/bin/gcc-4.2 -- works
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - done
:info:configure -- Checking whether CXX compiler has -isysroot
:info:configure -- Checking whether CXX compiler has -isysroot - yes
:info:configure -- Checking whether CXX compiler supports OSX deployment target flag
:info:configure -- Checking whether CXX compiler supports OSX deployment target flag - yes
:info:configure -- Check for working CXX compiler: /usr/bin/g++-4.2
:info:configure -- Check for working CXX compiler: /usr/bin/g++-4.2 -- works
:info:configure -- Detecting CXX compiler ABI info
:info:configure -- Detecting CXX compiler ABI info - done
:info:configure CMake Error at /opt/local/share/apps/cmake/modules/FindQt4.cmake:1256 (MESSAGE):
:info:configure   Qt qmake not found!
:info:configure Call Stack (most recent call first):
:info:configure   /opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:399 (find_package)
:info:configure   /opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
:info:configure   CMakeLists.txt:10 (find_package)
:info:configure 
:info:configure 
:info:configure -- Configuring incomplete, errors occurred!
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/build" && cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_MODULE_PATH=/opt/local/share/cmake/modules -Wno-dev -DBUILD_doc=OFF -DBUILD_SHARED_LIBS=ON -DBUNDLE_INSTALL_DIR=/Applications/MacPorts/KDE4 -DPHONON_INCLUDE_DIR=/opt/local/libexec/qt4-mac/include -DPHONON_LIBRARY=/opt/local/libexec/qt4-mac/lib/phonon.framework/phonon -DQT_QMAKE_EXECUTABLE=/opt/local/libexec/qt4-mac/bin/qmake -DKDE_DISTRIBUTION_TEXT="MacPorts/Mac OS X" ../kdenlive-0.7.8 -DNO_JOGSHUTTLE=1 -DCMAKE_OSX_ARCHITECTURES="x86_64" " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for kdenlive): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for kdenlive is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/main.log

Attachments (1)

kdenlive_Portfile.diff (1.0 KB) - added by michaelld (Michael Dickens) 10 years ago.
"svn diff" in 'kdenlive' dports directory; upgrade kdenlive to use KDE 1.1 PortGroup.

Download all attachments as: .zip

Change History (29)

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: mrtoftrash@… removed
Owner: changed from macports-tickets@… to dan@…

comment:2 Changed 10 years ago by ddennedy (Dan Dennedy)

Does the following work?
Open:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/multimedia/kdenlive/Portfile

Change:

PortGroup kde4 1.0

to

PortGroup kde4 1.1

Changed 10 years ago by michaelld (Michael Dickens)

Attachment: kdenlive_Portfile.diff added

"svn diff" in 'kdenlive' dports directory; upgrade kdenlive to use KDE 1.1 PortGroup.

comment:3 Changed 10 years ago by michaelld (Michael Dickens)

I just attached a Portfile diff that does the upgrade to KDE 1.1 PortGroup fully. Please give it a go & see if it works for you -- it does for me on 10.6.5, x86_64 native, XCode 3.2.3.

comment:4 Changed 10 years ago by michaelld (Michael Dickens)

Looking through the destroot directory, it looks like the .apps are installed into ${prefix}/bin, not ${applications_dir}/KDE4. When you do this update, you might want to do a post-destroot and correct this issue (or, patch the CMake build files to do it for you if you're brave :)

comment:5 Changed 10 years ago by graphicman21@…

My problem is this. I am still learning to compile applications, including kdenlive. How do you modify the Portfile to the desired parameters listed in this forum topic so the build will continue to work?

comment:6 Changed 10 years ago by michaelld (Michael Dickens)

To apply the patch, download it (I'll assume the download file is in ~/Downloads/kdenlive_Portfile.diff), then:

cd `port dir kdenlive`
patch -p0 < ~/Downloads/kdenlive_Portfile.diff
sudo port install kdenlive

and, if that doesn't work then you'll have a logfile to post. To remove the patch, do:

cd `port dir kdenlive`
patch -R -p0 < ~/Downloads/kdenlive_Portfile.diff

comment:7 in reply to:  6 Changed 10 years ago by graphicman21@…

Replying to michaelld@…:

To apply the patch, download it (I'll assume the download file is in ~/Downloads/kdenlive_Portfile.diff), then:

cd `port dir kdenlive`
patch -p0 < ~/Downloads/kdenlive_Portfile.diff
sudo port install kdenlive

and, if that doesn't work then you'll have a logfile to post. To remove the patch, do:

cd `port dir kdenlive`
patch -R -p0 < ~/Downloads/kdenlive_Portfile.diff

Thanks. I never knew that before. I appreciate it. Still a newbie :)

comment:8 Changed 10 years ago by michaelld (Michael Dickens)

No problem; it's how we all learn to do these things ;)

comment:9 Changed 10 years ago by graphicman21@…

OK. It looks like kdenlive is built, but I cannot start it up. The app doesn't respond. What lack I yet?

comment:10 Changed 10 years ago by ddennedy (Dan Dennedy)

graphicman21, did you follow the directions on kdenlive.org?

http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/pre-compiled-packages/mac-os-x-packages-macports

A manual post-install procedure is required (see messages from dbus and kde packages displayed during port install as evidence), and most people still seem to need to reboot after performing them to get them to work.

comment:11 Changed 10 years ago by graphicman21@…

I followed the instructions on the kdenlive.org website to a T. At least, as far as I know. But, the program is still being stubborn. It almost starts up, so I know that I am getting close. It gets to the setup wizard, and then it conks out. So, I am curious. I wonder what's going on. Any ideas?

comment:12 Changed 10 years ago by ddennedy (Dan Dennedy)

Is a kded4 process running? If not, then it will not work. It is started by kdeinit4. Technically, getting that to run is outside the scope of kdenlive, and I tried to help with the directions on kdenlive.org, but any improvements to the instructions must wait until I next get around to a completely fresh install of MacPorts.

comment:13 Changed 10 years ago by graphicman21@…

That might be the issue. The Launch Daemons and Agents are already loaded. I am wondering if it is because I did not understand the instructions correctly. When I type 'sudo chown -R $USER ~/Library/Preferences/KDE' replacing $USER with your username, do I keep the dollar sign in my user name? Also, I notice that the word "user" is capitalized. Do I need to capitalize my user name as well? Also, do I need to do everything in the post-install in the exact order that is exemplified in the instructions on the web site? Sorry. Newbie questions. :) Thanks for your help.

comment:14 in reply to:  13 Changed 10 years ago by ryandesign (Ryan Schmidt)

Replying to graphicman21@…:

When I type 'sudo chown -R $USER ~/Library/Preferences/KDE' replacing $USER with your username, do I keep the dollar sign in my user name?

No, omit the dollar sign.

Also, I notice that the word "user" is capitalized. Do I need to capitalize my user name as well?

No, type it in lowercase.

Also, do I need to do everything in the post-install in the exact order that is exemplified in the instructions on the web site?

I'm not sure!

comment:15 Changed 10 years ago by ddennedy (Dan Dennedy)

You do not actually need to replace $USER - that is a valid environment variable that the terminal will substitute with your username.

As for the order, the answer is yes and no. In general, no except that

sudo chown -R $USER ~/Library/Preferences/KDE

must precede

open -a kdeinit4

and

sudo chown $USER /Library/LaunchAgents/org.freedesktop.dbus-session.plist

must precede

launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

comment:16 Changed 10 years ago by ddennedy (Dan Dennedy)

Also, dbus must be loaded prior to kdeninit4 and kdeinit4 opened prior to kdenlive.

comment:17 Changed 10 years ago by graphicman21@…

Thanks for the info. I will put it into practice.

comment:18 Changed 10 years ago by graphicman21@…

There is an element of the application kdenlive that never loads correctly when I get to the wizard called "melt". It sputters every time and kdenlive fails to load. I am sure that everything has been loaded correctly for launchd to load the KDE environment for kdenlive to work correctly. Could there be an issue with this element of the program and Mac OS X 10.6.5 Snow Leopard? I am running that on my system right now, 64-bit native. Again, thanks. :)

comment:19 Changed 10 years ago by ddennedy (Dan Dennedy)

Please describe _exactly_ what happens - error messages and such. What exactly does "never loads correctly" and "sputter" mean? For example, I do not know if it failed to procede through the wizard or crashed.

It sounds like the program 'melt' (required) is not in your path. Open a Terminal and enter 'melt' Did it print some melt usage help or say "command not found?" If not found, send the result of 'echo $PATH'

comment:20 Changed 10 years ago by graphicman21@…

This is what I get using the 'echo $PATH melt' command:

/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin melt

So, the Terminal recognizes that the executable file "melt" is in that particular folder. It does list the usage help when I type "melt" in the Terminal window. It also says that I should look at www.mltframework.org (must be the "Media Lovin' Toolkit", pronounced "melt" obviously). So, when I try to run kdenlive, the first-run wizard shows up on my Desktop. Then, "melt" tries to show up during the kdenlive loading process. "melt" will show up on the Dock for a moment, then kdenlive and melt both crash suddenly. I am sure that everything else is loaded correctly. I have checked multiple amounts of times for any things that I have skipped. I have gone over everything, including launching melt on the Terminal. So, I am not so sure at this moment what to do.

comment:21 in reply to:  20 Changed 10 years ago by ryandesign (Ryan Schmidt)

Replying to graphicman21@…:

This is what I get using the 'echo $PATH melt' command:

/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/X11R6/bin melt

So, the Terminal recognizes that the executable file "melt" is in that particular folder.

Actually, "echo $PATH melt" only prints out (echoes) the value of the variable $PATH and then the string "melt"; it says nothing about whether the melt program is available anywhere.

It does list the usage help when I type "melt" in the Terminal window.

Ok, that shows that the melt program is indeed available in your PATH.

I see /sw in your PATH above. That's where Fink is traditionally installed. Do you also have Fink installed, in addition to MacPorts? If so, that can easily cause all sorts of problems and is therefore not supported. Pick one package manager to use (MacPorts or Fink) and uninstall the other.

comment:22 Changed 10 years ago by ddennedy (Dan Dennedy)

It is normal for a few icons to quickly appear and disappear in the Dock when the Kdenlive config wizard runs. It is testing for helper utilities, melt included, but does not need to keep them running. I am beginning to run out of ideas too. Outside of running in the debugger, which is probably beyond your level, the only thing I can think of is to run kdenlive from the Terminal: /opt/local/bin/kdenlive.app/Contents/MacOS/kdenlive. Then copy and paste the result here.

comment:23 Changed 10 years ago by graphicman21@…

This is what I get:

Last login: Tue Dec 14 00:19:02 on ttys000
Geppetto:~ stevenpeck$ /opt/local/bin/kdenlive.app/Contents/MacOS/kdenlive
kdenlive(5915)/kdeui (KIconLoader) KSharedDataCache::Private::mapSharedMemory: Failed to establish shared memory mapping, will fallback to private memory -- memory usage will increase 
File given:  true 
Color mode changed to  0 
File given:  true 
Unable to start Dr. Konqi
Geppetto:~ stevenpeck$ kdeinit4: (klauncher /opt/local/lib/kde4/libexec/klauncher) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: No such file or directory
kdeinit4: (kded4 /Applications/MacPorts/KDE4/kded4.app/Contents/MacOS/kded4) Pipe closed unexpectedlykdeinit4: Pipe closed unexpectedly: No such file or directory
kdeinit4: Communication error with launcher. Exiting!

Someone came up with the idea that Fink and MacPorts were conflicting with each other. That happened when I installed Synfig Studio on Mac. So, I am in the process of uninstalling Fink. I am afraid that if I uninstall Fink, it will accidentally uninstall Synfig. I need both Synfig and kdenlive. So, that might be a dilemma.

comment:24 Changed 10 years ago by ryandesign (Ryan Schmidt)

Don't forget to use WikiFormatting when writing in these tickets.

It looks like synfig.org currently does talk about using Fink to install Synfig. If you did it that way, then yes, uninstalling Fink and all the software installed with Fink will uninstall Synfig.

I don't see a port for Synfig in MacPorts but you could file a port request ticket and perhaps we can make one.

comment:25 Changed 10 years ago by graphicman21@…

Cool! Then that might work. :D Thanx. I would appreciate that because I want to utilize making animation using open source programs. Saves cost. There you go. Again, thanks for the idea.

comment:26 in reply to:  description Changed 10 years ago by in-macosports@…

Replying to mrtoftrash@…:

When applying patches to kdenlive and configuring kdenlive, I receive the following errors:

Just to confirm that I had the same errors and that applying the patch allowed me to conclude the install successfully. I haven't tried to launch the application, though (I'm in the middle of an "update outdated" so I am not particularly interested in kdenlive at this point in time).

comment:27 Changed 10 years ago by ddennedy (Dan Dennedy)

I approve for the patch to be committed.

comment:28 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.