symbol loopkup error:libgobject-2.0.so.0:undefined symbol:g_bytes_unref

时间:2013-02-16 13:54:39

标签: c qt gstreamer rtsp

我正在尝试使用Qt创建者在ubuntu 12.10下编译gstreamer rtsp服务器。

代码成功编译但是给了我这个例外和程序退出:

  

符号loopkup错误:libgobject-2.0.so.0:未定义符号:g_bytes_unref

这是我的.pro文件(链接了所有需要的库)

QT       += core

QT       -= gui

TARGET = gstreamer
CONFIG   += console
CONFIG   -= app_bundle

CONFIG += link_pkgconfig
PKGCONFIG += gstreamer-0.10

TEMPLATE = app


SOURCES += main.cpp

INCLUDEPATH += /home/kato/ew-gst-sdk-linux-x86_64-2012.03-0/include/gstreamer-0.10
INCLUDEPATH += /usr/include/glib-2.0
INCLUDEPATH += /usr/lib/x86_64-linux-gnu/glib-2.0/include
INCLUDEPATH += /usr/include/libxml2

LIBS += -L/home/kato/ew-gst-sdk-linux-x86_64-2012.03-0/lib \
-lgstreamer-0.10 \
-lgstrtsp-0.10 \
-lgstrtspserver-0.10 \
-lgobject-2.0 \
-lglib-2.0 \
-lgio-2.0 \
-lgthread-2.0 \
-lgdk_pixbuf-2.0

1 个答案:

答案 0 :(得分:0)

安装了哪个版本的glib?仅2.32

以来,GBytes相对较新