Compiling QtGstreamer on Mac OS X 10.6.8

Karl Phillip maxphil at gmail.com
Fri Dec 2 19:53:14 PST 2011


The build process seems to be pretty straightforward, however I'm getting a
linkage error and I'm not sure why it's happening or how it can be fixed:

$ make
Generating connect.moc
[  0%] Built target QtGLib_automoc
[  1%] Copying gen.cpp to the build directory
[  3%] Building CXX object
src/QGlib/CMakeFiles/QtGLib.dir/QtGLib_automoc.cpp.o
[  4%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/quark.cpp.o
[  6%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/type.cpp.o
[  7%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/paramspec.cpp.o
[  9%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/object.cpp.o
[ 10%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/value.cpp.o
[ 12%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/signal.cpp.o
[ 13%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/error.cpp.o
[ 15%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/connect.cpp.o
[ 16%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/wrap.cpp.o
[ 18%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/init.cpp.o
[ 20%] Building CXX object src/QGlib/CMakeFiles/QtGLib.dir/gen.cpp.o
Linking CXX shared library libQtGLib-2.0.dylib
ld: library not found for -lintl
collect2: ld returned 1 exit status
make[2]: *** [src/QGlib/libQtGLib-2.0.0.10.1.1.dylib] Error 1
make[1]: *** [src/QGlib/CMakeFiles/QtGLib.dir/all] Error 2
make: *** [all] Error 2

First thought that comes to mind is "I don't have this library and I need
to install it". Good thought, but that's not the case, because when I turn
up verbose I get:

Linking CXX shared library libQtGLib-2.0.dylib
cd /Users/karlphillip/installers/qt-gstreamer/build/src/QGlib &&
/usr/local/Cellar/cmake/2.8.6/bin/cmake -E cmake_link_script
CMakeFiles/QtGLib.dir/link.txt --verbose=1
/usr/bin/c++   -Wall -Wextra -Wformat-security -Wundef -Wpointer-arith
-Wcast-align -fno-common -fvisibility=hidden -fvisibility-inlines-hidden
-dynamiclib -Wl,-headerpad_max_install_names   -current_version 0.10.1 -o
libQtGLib-2.0.0.10.1.1.dylib -install_name
/Users/karlphillip/installers/qt-gstreamer/build/src/QGlib/libQtGLib-2.0.0.dylib
CMakeFiles/QtGLib.dir/QtGLib_automoc.cpp.o
CMakeFiles/QtGLib.dir/quark.cpp.o CMakeFiles/QtGLib.dir/type.cpp.o
CMakeFiles/QtGLib.dir/paramspec.cpp.o CMakeFiles/QtGLib.dir/object.cpp.o
CMakeFiles/QtGLib.dir/value.cpp.o CMakeFiles/QtGLib.dir/signal.cpp.o
CMakeFiles/QtGLib.dir/error.cpp.o CMakeFiles/QtGLib.dir/connect.cpp.o
CMakeFiles/QtGLib.dir/wrap.cpp.o CMakeFiles/QtGLib.dir/init.cpp.o
CMakeFiles/QtGLib.dir/gen.cpp.o -F/usr/local/Cellar/qt/4.7.4/lib -framework
QtCore -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl
ld: library not found for -lintl
collect2: ld returned 1 exit status
make[2]: *** [src/QGlib/libQtGLib-2.0.0.10.1.1.dylib] Error 1
make[1]: *** [src/QGlib/CMakeFiles/QtGLib.dir/all] Error 2
make: *** [all] Error 2

It seems that CMake failed to add the right library path for intl, which in
my case is "/usr/local/Cellar/gettext/0.18.1.1/lib".

The library itself is compiled for x86_64 and so are the other libraries
that QtGstreamer depends.

Where is the proper place to make this fix?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111203/402438a7/attachment.html>


More information about the gstreamer-devel mailing list