<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Sorry about that, you were right, I was missing the link to phonon.&nbsp;<div><br></div><div>It solved the problem for CMake 2.6 but not for CMake 2.4.</div><div><br></div><div><b>Here is the make VERBOSE=1 using cmake 2.4:</b></div><div><b><br></b></div><div><div>/usr/local/bin/cmake -H/Users/telcentrisholdingsa/Desktop/video_cmake -B/Users/telcentrisholdingsa/Desktop/video_cmake --check-build-system CMakeFiles/Makefile.cmake 0</div><div>Clearing dependencies in "CMakeFiles/video.dir/depend.make".</div><div>Clearing dependencies in "CMakeFiles/video.dir/depend.internal".</div><div>/usr/local/bin/cmake -E cmake_progress_start /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 4</div><div>make -f CMakeFiles/Makefile2 all</div><div>make -f CMakeFiles/video.dir/build.make CMakeFiles/video.dir/depend</div><div>/usr/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 4</div><div>[ 25%] Generating moc_mainwindow.cxx</div><div>/usr/local/Trolltech/Qt-4.4.0/bin/moc -I /usr/local/Trolltech/Qt-4.4.0/include -I /usr/local/Trolltech/Qt-4.4.0/include/QtGui -I /usr/local/Trolltech/Qt-4.4.0/include/QtCore -o /Users/telcentrisholdingsa/Desktop/video_cmake/moc_mainwindow.cxx /Users/telcentrisholdingsa/Desktop/video_cmake/mainwindow.h</div><div>Scanning dependencies of target video</div><div>cd /Users/telcentrisholdingsa/Desktop/video_cmake &amp;&amp; /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" /Users/telcentrisholdingsa/Desktop/video_cmake /Users/telcentrisholdingsa/Desktop/video_cmake /Users/telcentrisholdingsa/Desktop/video_cmake /Users/telcentrisholdingsa/Desktop/video_cmake /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles/video.dir/DependInfo.cmake</div><div>make -f CMakeFiles/video.dir/build.make CMakeFiles/video.dir/build</div><div>/usr/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 1</div><div>[ 50%] Building CXX object CMakeFiles/video.dir/mainwindow.o</div><div>/usr/bin/c++ &nbsp; -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/QtGui -I/usr/local/Trolltech/Qt-4.4.0/include/QtCore &nbsp; -F/usr/local/Trolltech/Qt-4.4.0/lib -L/usr/local/Trolltech/Qt-4.4.0/lib -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -F/usr/local/Trolltech/Qt-4.4.0/lib &nbsp;-o CMakeFiles/video.dir/mainwindow.o -c /Users/telcentrisholdingsa/Desktop/video_cmake/mainwindow.cpp</div><div>/usr/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 2</div><div>[ 75%] Building CXX object CMakeFiles/video.dir/main.o</div><div>/usr/bin/c++ &nbsp; -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/QtGui -I/usr/local/Trolltech/Qt-4.4.0/include/QtCore &nbsp; -F/usr/local/Trolltech/Qt-4.4.0/lib -L/usr/local/Trolltech/Qt-4.4.0/lib -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -F/usr/local/Trolltech/Qt-4.4.0/lib &nbsp;-o CMakeFiles/video.dir/main.o -c /Users/telcentrisholdingsa/Desktop/video_cmake/main.cpp</div><div>/usr/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 3</div><div>[100%] Building CXX object CMakeFiles/video.dir/moc_mainwindow.o</div><div>/usr/bin/c++ &nbsp; -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/QtGui -I/usr/local/Trolltech/Qt-4.4.0/include/QtCore &nbsp; -F/usr/local/Trolltech/Qt-4.4.0/lib -L/usr/local/Trolltech/Qt-4.4.0/lib -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -F/usr/local/Trolltech/Qt-4.4.0/lib &nbsp;-o CMakeFiles/video.dir/moc_mainwindow.o -c /Users/telcentrisholdingsa/Desktop/video_cmake/moc_mainwindow.cxx</div><div>Linking CXX executable video</div><div>/usr/local/bin/cmake -P CMakeFiles/video.dir/cmake_clean_target.cmake</div><div>/usr/bin/c++ &nbsp; &nbsp; -headerpad_max_install_names -fPIC "CMakeFiles/video.dir/mainwindow.o" "CMakeFiles/video.dir/main.o" "CMakeFiles/video.dir/moc_mainwindow.o" &nbsp; -o video &nbsp;-F/usr/local/Trolltech/Qt-4.4.0/lib -framework QtGui -framework Carbon -framework QuickTime -framework QtCore -lz -framework ApplicationServices&nbsp;</div><div>Undefined symbols:</div><div>&nbsp;&nbsp;"Phonon::MediaObject::setCurrentSource(Phonon::MediaSource const&amp;)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::AudioOutput::AudioOutput(Phonon::Category, QObject*)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::VideoWidget::VideoWidget(QWidget*)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::MediaObject::play()", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::MediaSource::MediaSource(QString const&amp;)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::MediaObject::MediaObject(QObject*)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::Path::~Path()", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::createPath(Phonon::MediaNode*, Phonon::MediaNode*)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>&nbsp;&nbsp;"Phonon::MediaObject::setTickInterval(int)", referenced from:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;MainWindow::MainWindow()in mainwindow.o</div><div>ld: symbol(s) not found</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [video] Error 1</div><div>make[1]: *** [CMakeFiles/video.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div></div><br><div><div>On Oct 28, 2008, at 3:08 PM, <a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>It don't see you linking with phonon.<br>Its typically done like this (using phonon support in CMake 2.6)<br><br>find_package(Qt4)<br>set(QT_USE_PHONON 1)<br>include(${QT_USE_FILE})<br>....<br>add_executable(...)<br>target_link_libraries(... ${QT_LIBRARIES})<br><br>Clint<br><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><br><br></div></blockquote></div><br></body></html>