This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Installation Issues: MacOSX 10.6.4, MacPro, MacPorts install from source - kdenlive 0.7.8

Tags: None
(comma "," separated)
SechyMonkey
Registered Member
Posts
10
Karma
0
Hello,

The software looks very promising, and I'm very happy you folks took the time to put this together. So a very big thank you to all who contribute to this project before I even begin. I'm very excited that there are going to be some candidates for open source video editing to compare to the "big boys".

Been looking over the forums and doing some searching, and haven't quite found anything that really matches what I'm getting - so I'm starting a new topic. I just discovered and started trying to install Kdenlive about two days ago. I'm having a problem with the installation that I haven't quite been able to figure out.

As background information: I just installed macports from scratch the other day, version 1.9.1 base. I did an immediate selfupdate to make sure I had the latest codebase. Then I started the kdenlive install. Using MacOSX 10.6.4 (Snow Leopard), MacPro 2x3GHz Dual-Core Xeon (Intel), 6GB Memory, up-to-date Xcode (3.2.4) developer tools, and Java SDK (fresh updated when I started this process as well). Running XQuartz for X11 (XQuartz up-to-date and freshly reinstalled, 2.5.3 - X11 up-to-date also, 2.3.5).

Issue I have is that when I run the port install command for kdenlive, it runs through and installs all the dependencies (expected), then when it gets to the actual kdenlive package I get an error stating that it cannot find an active phonon install. It suggests that I install qt4-mac with support for it. Looking at the installed dependences, it appears that phonon is installed, as is qt4-mac.

I've tried uninstalling/reinstalling both ports (phonon and qt4-mac) as well as starting the dbus-session items using launchctl. I unload these items before any updates/reinstalls, then re-load them after. I've set the appropriate permissions on the ~/Library/Preferences/KDE directory (ownership for my user, recursive) as indicated in the text that comes up during install as well. I've tried doing more selfupdates and cleaning then upgrading the ports that were outdated. I've tried completely removing macports and all associated files from my system and starting the process from scratch a couple times too.

Each time, everything goes very smoothly until the same point - where I get the same error about phonon not being installed/available. Several of the dependencies have been updated a few times over the past three days (some of the KDE base library stuff too), but obviously this is a very common thing to have the files updated. None of the updates seem to have made anything any better or any worse. The error is as follows (dependencies already installed at the time of this attempt, but always the same error):

$ sudo port install kdenlive
---> Computing dependencies for kdenlive
---> Fetching kdenlive
---> Verifying checksum(s) for kdenlive
---> Extracting kdenlive
---> Applying patches to kdenlive
Error: ######################################################
Error: A copy of phonon could not be found. Please install
Error: qt4-mac to provide this. If you have already done this
Error: your Qt installation is missing the phonon backend.
Error: Please reinstall Qt4 with phonon support.
Error: ######################################################
---> Configuring kdenlive
Error: Target org.macports.configure returned: configure failure: shell command failed
Log for kdenlive is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/main.log
Error: Status 1 encountered during processing.
To report a bug, see

Here's the relevant section of the logfile (really no errors or other oddities prior to this section):
:debug:main Executing org.macports.main (kdenlive)
:msg:main ---> Fetching kdenlive
:debug:fetch fetch phase started at Thu Nov 4 23:59:59 PDT 2010
:debug:fetch Executing org.macports.fetch (kdenlive)
:msg:fetch ---> Verifying checksum(s) for kdenlive
:debug:checksum checksum phase started at Thu Nov 4 23:59:59 PDT 2010
:debug:checksum Executing org.macports.checksum (kdenlive)
:info:checksum ---> Checksumming kdenlive-0.7.8.tar.gz
:debug:checksum Correct (sha1) checksum for kdenlive-0.7.8.tar.gz
:debug:checksum Correct (rmd160) checksum for kdenlive-0.7.8.tar.gz
:msg:checksum ---> Extracting kdenlive
:debug:extract extract phase started at Thu Nov 4 23:59:59 PDT 2010
:debug:extract Executing org.macports.extract (kdenlive)
: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 Fri Nov 5 00:00:00 PDT 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 Fri Nov 5 00:00:00 PDT 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:1249 (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
:debug:configure Backtrace: configure failure: shell command failed
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

And here's qmake and my shell's path variable:
$ which qmake
/opt/local/bin/qmake
$ echo $PATH
/opt/local/bin:/opt/local/sbin:/Applications/Aqsis.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin

Note that the PHONON_INCLUDE_DIR, PHONON_LIBRARY and QT_MAKE_EXECUTABLE variables are not pointing to anywhere that the files they expect exist... the only place I even see a qt4-mac directory under the /opt filesystem is in /opt/local/var/macports/software/qt4-mac. Not quite what the configure is looking for.

Any suggestions for me to look towards? Anything I'm missing here? I'm hoping I'm just being dense due to being tired. I can see why it's not working... just not sure how to fix it currently.

On a separate note, I see from other posts there are not necessarily a lot of Mac systems available to you folks for testing on or trying to debug with. Please feel free to contact me if I can be of any help for that aspect of your projects.


Thanks for any info,

Sechy
SechyMonkey
Registered Member
Posts
10
Karma
0
Hello again,

Looks like I missed someone with the same issue. Must have been tired the first day I started playing around too since I found it pretty easily today. Same issue as posts 121 and 122 in this thread: http://www.kdenlive.org/forum/feedback-about-kdenlive-mac-os-x?page=2

I seem to remember doing a search for qmake and not finding that anywhere else on my system last night, but didn't find anything. I will have to take a look when I get home to determine whether my /opt/local/bin/qmake is symlinked, and if so to what. Maybe then I can manually set the build variables and get it to finish compiling/installing.

Any other help or suggestions are of course still more than welcome. I'd love to start playing around and see how this software works.


Thanks,

Sechy
SechyMonkey
Registered Member
Posts
10
Karma
0
Hello again,

Just took a look in my directories to find where the files that aren't being found actually live. From what I can tell, the include files being looked for exist in /opt/local/include in their own subdirectories (see attached file for the specific Qt and phonon directories listed there).

I double checked /opt/local/bin/qmake - it isn't a symlink - that's the binary. So, it appears the paths being looked for in the kdenlive build that's in macports right now are incorrect (unless I'm misunderstanding something, which is certainly possible as I'm not a developer).

As before, any assistance/information is greatly appreciated.

Thanks,

SechyImage
markszymanski
Registered Member
Posts
21
Karma
0
I am hitting pretty the same brick wall as you, SechyMonkey. Friday I received a copy of Snow Leopard and performed a clean install on one of my volumes. Of course the very first thing after updating all of that was to go after kdenlive, since I've been trying to accomplish the same thing on OSX 10.5.8. The only difference I ran into was when I installed Scribus using MacPorts. It wanted to install version 1.3.3.11 which required qt3. That was not the version I wanted, but I let it go and installed qt3, which I had to force activate since qt4-mac was already there. Well, that didn't play nice, so got rid of that and used binary package for my Scribus, and went back to kdenlive. I get the same, in effect, results. Complaints about phonon and qmake not found. Looking in /opt/local/bin shows qmake.mp_1289062031. Can't rename it. Don't know where to go next. No amount of uninstalling/port cleaning/re-installing helps. I end up in the same place each time. I'm willing to do anything to get this thing going, even to the point of erasing the volume and starting over. Just need some guidance.

Any assistance/ideas/information is much appreciated.

Thanks,

Mark
SechyMonkey
Registered Member
Posts
10
Karma
0
Since I'm not as familiar with the macports file structure, I'm having a difficult time determining which files live where, etc... I wasn't able to easily find which script, etc... is running the checks and determining the incorrect paths, but I decided to try and play "port whack-a-mole".

I've done the following to allow the system to use the paths it wants, yet look at the right place:

cd /opt/local/libexec
sudo mkdir qt4-mac qt4-mac/bin qt4-mac/lib qt4-mac/lib/phonon.framework
sudo ln -s /opt/local/include/phonon qt4-mac/include
sudo ln -s /opt/local/bin/qmake qt4-mac/bin/qmake
sudo ln -s /opt/local/lib qt4-mac/lib/phonon.framework/phonon

I did this because best I could tell, these are the correct values for where the files the build was looking for existed. I then tried to install kdenlive again (sudo port clean kdenlive && sudo port -v install kdenlive) with the verbose flag. Got further this time, different errors. I'll of course be looking into these new errors to see which new items need to be whacked with a mallet. For the record, I've been periodically doing "sudo port -v selfupdate" followed by either a "sudo port upgrade outdated" or wiping it and re-installing/compiling from scratch with "sudo port -f uninstall installed && sudo port -v install kdenlive". The current version of macports I'm using is now 1.9.2

I've attached the log from the install. This time it was a "keep the dependencies installed and clean/fresh install kdenlive" attempt.

Most of it is routine "is this here? yep, move on" type stuff. When you get to the actual kdenlive part after the dependency checks that's where we begin to have issues.

First error message found about 90% into the log is from the FindPhonon.cmake script... it is looking for phononnamespace.h and it didn't find it. Which makes sense, because using the find command I didn't either. So, I'm not sure why the header isn't here - maybe missing a package from the dependencies? It keeps going after that.

Next it notes that the QT_QT_INCLUDE_DIR variable isn't set (set to NOTFOUND). So, since that var depends on QT_INCLUDE_DIR being set, I'm gonna have to set that (to I believe /opt/local/include) and it should be good.

Finally, the one that confuses me the most since this is all being done via port... error stating that Qt is compiled without support for -fvisibility=hidden. Says to fix Qt install.

Any suggestions from anyone? I'm gonna keep digging at it and going to read the macports documentation so I can maybe determine where I need to be editing the build files in the first place (to set appropriate vars, build flags, etc...).

Thanks,

SechyImage
markszymanski
Registered Member
Posts
21
Karma
0
I've been trying your steps to see if anything has changed. Getting the same error, I think. Am pasting output from sudo port -v kdenlive:

---> Computing dependencies for kdenlive.
---> Configuring kdenlive
-- Found Qt-Version 4.7.0 (using /opt/local/libexec/qt4-mac/bin/qmake)
CMake Error at /opt/local/share/apps/cmake/modules/FindPhonon.cmake:19 (file):
file Internal CMake error when trying to open file:
/opt/local/libexec/qt4-mac/include/phonon/phononnamespace.h for reading.
Call Stack (most recent call first):
/opt/local/share/apps/cmake/modules/FindPhonon.cmake:31 (_phonon_find_version)
/opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:672 (find_package)
/opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
CMakeLists.txt:10 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/work/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error at /opt/local/share/apps/cmake/modules/FindKDE4Internal.cmake:1271 (message):
Qt compiled without support for -fvisibility=hidden. This will break
plugins and linking of some applications. Please fix your Qt installation.
Call Stack (most recent call first):
/opt/local/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
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: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Warning: the following items did not execute (for kdenlive): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for kdenlive is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_multimedia_kdenlive/main.log
Error: Status 1 encountered during processing.

I also have no idea how to fix Qt installation. Be glad to try anything.
SechyMonkey
Registered Member
Posts
10
Karma
0
It appears this isn't the only port not building due to something like this:

https://trac.macports.org/ticket/27178
https://trac.macports.org/ticket/27221

I'm not sure what's actually broken here, but it doesn't appear to be the kdenlive port itself. Based off of what scripts I have been able to determine are running to try and find phonon/qt4 (noted in the logfiles), I would suspect it is either cmake (it's the cmake "find" scripts that are failing to locate the appropriate items), the qt4/phonon ports (since some files and/or compile options seem to be missing), or a little of both.

Based on other apps/ports/software getting the same configuration errors, I'm going to go ahead and see if any of the noted softwares get updated any time in the relatively near future.

I'd still like to hear/see any suggestions or corrections if I'm mistaken here - again, new to MacPorts specifically, so I am not 100% confident in my investigative abilities just yet.

Thanks,

Sechy
markszymanski
Registered Member
Posts
21
Karma
0
Excellent! Perfect! That was the final piece in the puzzle. Through all this I had ended up with a new Macbook running Snow Leopard, fully updated of course. But no matter which avenue I tried to install kdenlive (mac package, source, or subversion), I got either the "Qt qmake not found!" error, or the "mismatched checksums on atlas" error which was solved on the macports guide (you have to put in the proper wording on Google to find it). But by changing the pemissions on the folder and the file itself, then running the install again it finally completed the configuration and installed.

Following the final instructions with setting permissions, etc..., it was able to launch. Now, to get it up to the same stage as my Linux installs which allow changing themes on the editor itself, how does one install a different theme on a Mac Os that will be recognized by kdenlive? After going through the tortuous process of finally getting the program to work, it should be easy enough to install and choose a different theme other than the default. Right? Kde-look.org does not seem very helpful in this regard, or I just don't seem to get the process right. Which is hard when you get either a text file with no direction on where to put it, or a ziipped file with no installation procedure. If this final hurdle can be overcome, I will be a happy camper.

Thanks to all, and especially to Jancha with this last post.

Mark
SechyMonkey
Registered Member
Posts
10
Karma
0
Finished trying the reported fix above this morning - works great, installs fine, launches fine - now to play with the software :)

Thanks much to Jancha (and by proxy Romans) for the information - much much appreciated.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]