<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> Policy CMP0002 is not set: Logical target names must be globally unique.</div><div> Run "cmake --help-policy CMP0002" for policy details. Use the cmake_policy</div><div> command to set the policy and suppress this warning.</div><div>Call Stack (most recent call first):</div><div> wifo/phapi/ilbc/CMakeLists.txt:37 (ow_create_binary)</div><div>This warning is for project developers. 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> Policy CMP0003 should be set before this line. Add code such as</div><div><br></div><div> if(COMMAND cmake_policy)</div><div> cmake_policy(SET CMP0003 NEW)</div><div> endif(COMMAND cmake_policy)</div><div><br></div><div> as early as possible but after the most recent call to</div><div> cmake_minimum_required or cmake_policy(VERSION). This warning appears</div><div> because target "VoxOx" links to some libraries for which the linker must</div><div> search:</div><div><br></div><div> resolv, gnutls</div><div><br></div><div> and other libraries with known full path:</div><div><br></div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/cutil/libowcutil.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/util/libowutil.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/serialization/libowserialization.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/thread/libowthread.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/settings/libowsettings.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/system/libowsystem.a</div><div> /usr/lib/libz.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/curl/libcurl.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/http/libowhttp.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/serializer/libowserializer.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/socket/libowsocket.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/libowimwrapper.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/libs/3rdparty/ffmpeg/binary-lib/macosx/libavutil.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owpixertool/libowpixertool.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/sipwrapper/libowsipwrapper.a</div><div> /opt/local/lib/libglib-2.0.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/gaim/libgaim.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/src/gaim/libowgaimwrapper.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/sound/libowsound.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/sVoIP/libsvoip.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/libosip2/libosip2.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/eXosip/libexosip.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/libphapi.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi-util/libphapiutil.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/sipwrapper/src/phapi/libowphapiwrapper.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/imwrapper/src/multiim/libowmultiimwrapper.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/wenbox/libowwenbox.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wengophone/src/libowphone.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owwebcam/libowwebcam.dylib</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/netlib/libnetlib.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/3rdparty/tinyxml/libtinyxml.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/qtutil/libowqtutil.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wengophone/src/buildid/libowbuildid.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/idle/libowidle.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/trayicon/libowtrayicon.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owbrowser/libowbrowser.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/softupdater/libowsoftupdater.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/srtp/libsrtp.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/gsm/libgsm.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/fidlib/libfidlib.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/speexec/libspeexec.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/timer/libwtimer.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/ortp/libortp.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/phapi/stun/libstun.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/libs/owutil/shlibloader/libowshlibloader.a</div><div> /Users/telcentrisholdingsa/src/VoxOx/build/wifo/httptunnel/libhttptunnel.a</div><div><br></div><div> CMake is adding directories in the second list to the linker search path in</div><div> case they are needed to find libraries from the first list (for backwards</div><div> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable</div><div> or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for</div><div> more information.</div><div>Call Stack (most recent call first):</div><div> wengophone/src/presentation/qt/CMakeLists.txt:671 (ow_create_binary)</div><div>This warning is for project developers. Use -Wno-dev to suppress it.</div><div><br></div><div>CMake Warning at owbuild/owbuild/OWCreateBinary.cmake:112 (add_executable):</div><div> Cannot generate a safe linker search path for target VoxOx because files in</div><div> some directories may conflict with libraries in implicit directories:</div><div><br></div><div> link library [libz.dylib] in /usr/lib may be hidden by files in:</div><div> /opt/local/lib</div><div> link library [libiconv.dylib] in /usr/lib may be hidden by files in:</div><div> /opt/local/lib</div><div> link library [libcrypto.dylib] in /usr/lib may be hidden by files in:</div><div> /opt/local/lib</div><div> link library [libssl.dylib] in /usr/lib may be hidden by files in:</div><div> /opt/local/lib</div><div><br></div><div> Some of these libraries may not be found correctly.</div><div>Call Stack (most recent call first):</div><div> 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;"> "_inflateEnd", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _decode_frame in libavcodec.a(pngdec.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> "_inflateInit_", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _decode_frame in libavcodec.a(pngdec.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> "_xvid_plugin_2pass2", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _ff_xvid_rate_control_init in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _ff_xvid_rate_estimate_qscale in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _ff_xvid_rate_control_uninit in libavcodec.a(libxvid_rc.o)</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> "_inflate", referenced from:</span></div><div><span class="Apple-style-span" style="font-weight: normal;"> _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 && /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++ -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 -F/usr/local/Trolltech/Qt-4.4.0/lib -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++ -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 -F/usr/local/Trolltech/Qt-4.4.0/lib -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++ -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 -F/usr/local/Trolltech/Qt-4.4.0/lib -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++ -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 -o video -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 </div><div>/opt/local/bin/cmake -E cmake_progress_report /Users/telcentrisholdingsa/Desktop/video_cmake/CMakeFiles 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? You said you picked 2.4 because 2.6 had errors, seems to be the opposite is true... :)<br><br><br>-Bill<br><br></div></blockquote></div><br></body></html>