<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>You are correct, for phonon 2.6 works fine, but if I use 2.6 for the main project there are other thinks that get broken during compilation and we are very close to a deadline with not too much time in our hands :(</div><div><br></div><div>Here are some of the warnings I get when running the program with CMake2.6 (maybe they are easy to fix). The problem is that I tried setting the policy but I am kind of loss trying to find the correct CMakeLists.txt file that I should modify.</div><div><br></div><div>1)</div><div>WARNING: you are using the obsolete 'PKGCONFIG' macro use FindPkgConfig</div><div><br></div><div>2)</div><div><div>CMake Warning (dev) at owbuild/owbuild/OWCreateBinary.cmake:53 (add_library):</div><div>&nbsp;&nbsp;Policy CMP0002 is not set: Logical target names must be globally unique.</div><div>&nbsp;&nbsp;Run "cmake --help-policy CMP0002" for policy details. &nbsp;Use the cmake_policy</div><div>&nbsp;&nbsp;command to set the policy and suppress this warning.</div><div>Call Stack (most recent call first):</div><div>&nbsp;&nbsp;wifo/phapi/ilbc/CMakeLists.txt:37 (ow_create_binary)</div><div>This warning is for project developers. &nbsp;Use -Wno-dev to suppress it.</div><div><br></div><div>3)</div><div><div>CMake Warning (dev) at owbuild/owbuild/OWCreateBinary.cmake:112 (add_executable):</div><div>&nbsp;&nbsp;Policy CMP0003 should be set before this line. &nbsp;Add code such as</div><div><br></div><div>&nbsp;&nbsp; &nbsp;if(COMMAND cmake_policy)</div><div>&nbsp;&nbsp; &nbsp; &nbsp;cmake_policy(SET CMP0003 NEW)</div><div>&nbsp;&nbsp; &nbsp;endif(COMMAND cmake_policy)</div><div><br></div><div>&nbsp;&nbsp;as early as possible but after the most recent call to</div><div>&nbsp;&nbsp;cmake_minimum_required or cmake_policy(VERSION). &nbsp;This warning appears</div><div>&nbsp;&nbsp;because target "VoxOx" links to some libraries for which the linker must</div><div>&nbsp;&nbsp;search:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;resolv, gnutls</div><div><br></div><div>&nbsp;&nbsp;and other libraries with known full path:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/cutil/libowcutil.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/util/libowutil.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/serialization/libowserialization.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/thread/libowthread.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/settings/libowsettings.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/system/libowsystem.a</div><div>&nbsp;&nbsp; &nbsp;/usr/lib/libz.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/curl/libcurl.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/http/libowhttp.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/serializer/libowserializer.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/socket/libowsocket.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/libowimwrapper.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/libs/3rdparty/ffmpeg/binary-lib/macosx/libavutil.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owpixertool/libowpixertool.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/sipwrapper/libowsipwrapper.a</div><div>&nbsp;&nbsp; &nbsp;/opt/local/lib/libglib-2.0.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/gaim/libgaim.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/src/gaim/libowgaimwrapper.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/sound/libowsound.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/sVoIP/libsvoip.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/libosip2/libosip2.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/eXosip/libexosip.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/libphapi.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi-util/libphapiutil.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/sipwrapper/src/phapi/libowphapiwrapper.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/src/multiim/libowmultiimwrapper.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/wenbox/libowwenbox.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wengophone/src/libowphone.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owwebcam/libowwebcam.dylib</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/netlib/libnetlib.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/tinyxml/libtinyxml.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/qtutil/libowqtutil.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wengophone/src/buildid/libowbuildid.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/idle/libowidle.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/trayicon/libowtrayicon.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owbrowser/libowbrowser.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/softupdater/libowsoftupdater.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/srtp/libsrtp.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/gsm/libgsm.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/fidlib/libfidlib.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/speexec/libspeexec.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/timer/libwtimer.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/ortp/libortp.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/stun/libstun.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/shlibloader/libowshlibloader.a</div><div>&nbsp;&nbsp; &nbsp;/Users/telcentrisholdingsa/src/VoxOx/build/wifo/httptunnel/libhttptunnel.a</div><div><br></div><div>&nbsp;&nbsp;CMake is adding directories in the second list to the linker search path in</div><div>&nbsp;&nbsp;case they are needed to find libraries from the first list (for backwards</div><div>&nbsp;&nbsp;compatibility with CMake 2.4). &nbsp;Set policy CMP0003 to OLD or NEW to enable</div><div>&nbsp;&nbsp;or disable this behavior explicitly. &nbsp;Run "cmake --help-policy CMP0003" for</div><div>&nbsp;&nbsp;more information.</div><div>Call Stack (most recent call first):</div><div>&nbsp;&nbsp;wengophone/src/presentation/qt/CMakeLists.txt:671 (ow_create_binary)</div><div>This warning is for project developers. &nbsp;Use -Wno-dev to suppress it.</div><div><br></div><div>CMake Warning at owbuild/owbuild/OWCreateBinary.cmake:112 (add_executable):</div><div>&nbsp;&nbsp;Cannot generate a safe linker search path for target VoxOx because files in</div><div>&nbsp;&nbsp;some directories may conflict with libraries in implicit directories:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;link library [libz.dylib] in /usr/lib may be hidden by files in:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;/opt/local/lib</div><div>&nbsp;&nbsp; &nbsp;link library [libiconv.dylib] in /usr/lib may be hidden by files in:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;/opt/local/lib</div><div>&nbsp;&nbsp; &nbsp;link library [libcrypto.dylib] in /usr/lib may be hidden by files in:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;/opt/local/lib</div><div>&nbsp;&nbsp; &nbsp;link library [libssl.dylib] in /usr/lib may be hidden by files in:</div><div>&nbsp;&nbsp; &nbsp; &nbsp;/opt/local/lib</div><div><br></div><div>&nbsp;&nbsp;Some of these libraries may not be found correctly.</div><div>Call Stack (most recent call first):</div><div>&nbsp;&nbsp;wengophone/src/presentation/qt/CMakeLists.txt:671 (ow_create_binary)</div><div><br></div><div><br></div></div></div><div><b>After running the program with CMake2.6 I run make and get the following error:</b></div><div><b><div><span class="Apple-style-span" style="font-weight: normal;">Undefined symbols:</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp;"_inflateEnd", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_decode_frame in libavcodec.a(pngdec.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp;"_inflateInit_", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_decode_frame in libavcodec.a(pngdec.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp;"_xvid_plugin_2pass2", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_ff_xvid_rate_control_init in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp;"_inflate", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;">&nbsp;&nbsp; &nbsp; &nbsp;_decode_frame in libavcodec.a(pngdec.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;">ld: symbol(s) not found</span></div><div><span class="Apple-style-span" style="font-weight: normal;">collect2: ld returned 1 exit status</span></div><div><span class="Apple-style-span" style="font-weight: normal;">make[2]: *** [libs/owwebcam/libowwebcam.dylib] Error 1</span></div><div><span class="Apple-style-span" style="font-weight: normal;">make[1]: *** [libs/owwebcam/CMakeFiles/owwebcam.dir/all] Error 2</span></div><div><span class="Apple-style-span" style="font-weight: normal;">make: *** [all] Error 2</span></div><div><br></div></b></div><div><br></div><div>===========================================================================</div><div><br></div><div><br></div><div><b>Here is the working CMake 2.6 make VERBOSE=1 (the broken 2.4 was sent on a previous mail):</b></div><div><br></div><div><div>/opt/local/bin/cmake -H/Users/telcentrisholdingsa/Desktop/video_cmake -B/Users/telcentrisholdingsa/Desktop/video_cmake --check-build-system CMakeFiles/Makefile.cmake 0</div><div>/opt/local/bin/cmake -E cmake_progress_start /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles/progress.make</div><div>make -f CMakeFiles/Makefile2 all</div><div>make -f CMakeFiles/video.dir/build.make CMakeFiles/video.dir/depend</div><div>/opt/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/phonon -I/usr/local/Trolltech/Qt-4.4.0/include/QtGui -I/usr/local/Trolltech/Qt-4.4.0/include/QtCore -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -o /Users/telcentrisholdingsa/Desktop/video_cmake/moc_mainwindow.cxx /Users/telcentrisholdingsa/Desktop/video_cmake/mainwindow.h</div><div>cd /Users/telcentrisholdingsa/Desktop/video_cmake &amp;&amp; /opt/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 --color=</div><div>Dependee "/Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles/video.dir/DependInfo.cmake" is newer than depender "/Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles/video.dir/depend.internal".</div><div>Scanning dependencies of target video</div><div>make -f CMakeFiles/video.dir/build.make CMakeFiles/video.dir/build</div><div>/opt/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; -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/phonon -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 &nbsp;-o CMakeFiles/video.dir/mainwindow.o -c /Users/telcentrisholdingsa/Desktop/video_cmake/mainwindow.cpp</div><div>/opt/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; -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/phonon -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 &nbsp;-o CMakeFiles/video.dir/main.o -c /Users/telcentrisholdingsa/Desktop/video_cmake/main.cpp</div><div>/opt/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; -DQT_DLL -DQT_PHONON_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NO_DEBUG -I/usr/local/Trolltech/Qt-4.4.0/include -I/usr/local/Trolltech/Qt-4.4.0/include/phonon -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 &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>/opt/local/bin/cmake -E cmake_link_script CMakeFiles/video.dir/link.txt --verbose=1</div><div>/usr/bin/c++ &nbsp; &nbsp;-Wl,-search_paths_first -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 phonon -framework QtGui -framework Carbon -framework AppKit -framework QtDBus -framework QtXml -framework QtCore /usr/lib/libz.dylib -framework ApplicationServices&nbsp;</div><div>/opt/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles &nbsp;1 2 3 4</div><div>[100%] Built target video</div><div>/opt/local/bin/cmake -E cmake_progress_start /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 0</div><div><br></div></div><div><br></div><br><div><div>On Oct 28, 2008, at 4:01 PM, Bill Hoffman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Alexander Solis wrote:<br><blockquote type="cite">Sorry about that, you were right, I was missing the link to phonon. It solved the problem for CMake 2.6 but not for CMake 2.4.<br></blockquote><blockquote type="cite">*Here is the make VERBOSE=1 using cmake 2.4:*<br></blockquote><blockquote type="cite">*<br></blockquote><blockquote type="cite">*<br></blockquote><br>So, can we get a make VERBOSE=1 comparison with the working 2.6 and the broken 2.4?<br><br><br>Although if 2.6 works, why can't you use that? &nbsp;&nbsp;You said you picked 2.4 &nbsp;because 2.6 had errors, seems to be the opposite is true... &nbsp;:)<br><br><br>-Bill<br><br></div></blockquote></div><br></body></html>