Are you even linking with the phonon library? Having CMake find them is one thing. Linking with them is another.
Clint On Tuesday 28 October 2008 1:03:49 pm Alexander Solis wrote: > Hi, > > I tried CMake 2.6 a long time ago and don't remember the errors/ > warning, since it is a large project it was decided to use CMake 2.4 > instead. > > Using 2.4 cmake runs fine but when compiling (with make) I get the > following error: > Undefined symbols: > "Phonon::Path::~Path()", referenced from: > QtWizardList::load() in QtWizardList.o > QtWizardList::load() in QtWizardList.o > "Phonon::createPath(Phonon::MediaNode*, Phonon::MediaNode*)", > referenced from: > QtWizardList::load() in QtWizardList.o > QtWizardList::load() in QtWizardList.o > "Phonon::AudioOutput::AudioOutput(Phonon::Category, QObject*)", > referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::MediaObject::setTickInterval(int)", referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::MediaObject::MediaObject(QObject*)", referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::MediaObject::play()", referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::MediaObject::setCurrentSource(Phonon::MediaSource > const&)", referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::MediaSource::MediaSource(QString const&)", referenced from: > QtWizardList::load() in QtWizardList.o > "Phonon::VideoWidget::VideoWidget(QWidget*)", referenced from: > QtWizardList::load() in QtWizardList.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > > On Oct 28, 2008, at 12:21 PM, Bill Hoffman wrote: > > Alexander Solis wrote: > >> Hi, > >> I am trying to compile an application that uses Qt4.4 Phonon's > >> libraries with CMake 2.4 patch 6. I am using Mac OS X 10.5 > >> I know that the version of CMake I am using doesn't include in the > >> modules a way to find Phonon, so I added the necessary lines to > >> find Phonon from CMake 2.6.2 file FindQt4.cmake. > >> The problem is that CMake is still not finding the Phonon libraries > >> after the change. > >> I am not sure if that is the only change I need to do to get Phonon > >> working with my version of CMake or if there is something else I > >> must do? > >> Note: I cannot use CMake 2.6 since I get a lot of errors trying to > >> run it, so that is why I need to use the older CMake version. > > > > Are they errors or warnings when you run 2.6? What are some of the > > errors you get? > > > > -Bill > > _______________________________________________ > CMake mailing list > [email protected] > http://www.cmake.org/mailman/listinfo/cmake _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
