Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8026821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:36:45+00:00 2026-06-04T23:36:45+00:00

I am trying to create a small Gstreamer-Qt based program in Windows using msvc

  • 0

I am trying to create a small Gstreamer-Qt based program in Windows using msvc and building it with waf.I am getting this linker error even through i have linked all library required.

GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_object_get_type referenced in function "public: virtual __cdecl GSTEngine::~GSTEngine(void)" (??1GSTEngine@@UEAA@XZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_set_state referenced in function "public: virtual __cdecl GSTEngine::~GSTEngine(void)" (??1GSTEngine@@UEAA@XZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol g_type_check_instance_cast referenced in function "public: virtual __cdecl GSTEngine::~GSTEngine(void)" (??1GSTEngine@@UEAA@XZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_get_type referenced in function "public: virtual __cdecl GSTEngine::~GSTEngine(void)" (??1GSTEngine@@UEAA@XZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_object_unref referenced in function "public: virtual __cdecl GSTEngine::~GSTEngine(void)" (??1GSTEngine@@UEAA@XZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_link referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol g_object_set referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_add_pad referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_ghost_pad_new referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_get_static_pad referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_bin_add_many referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_bin_get_type referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_bin_new referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_bus_add_watch referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_pipeline_get_bus referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_pipeline_get_type referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol g_timeout_add referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_factory_make referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_init referenced in function "public: virtual void __cdecl GSTEngine::init(void)" (?init@GSTEngine@@UEAAXXZ)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_query_position referenced in function "bool __cdecl show_position(struct _GstElement *)" (?show_position@@YA_NPEAU_GstElement@@@Z)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol g_error_free referenced in function "int __cdecl bus_state_changed(struct _GstBus *,struct _GstMessage *,void *)" (?bus_state_changed@@YAHPEAU_GstBus@@PEAU_GstMessage@@PEAX@Z)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_message_parse_error referenced in function "int __cdecl bus_state_changed(struct _GstBus *,struct _GstMessage *,void *)" (?bus_state_changed@@YAHPEAU_GstBus@@PEAU_GstMessage@@P
EAX@Z)
GSTEngine.cpp.4.o : error LNK2019: unresolved external symbol gst_element_seek_simple referenced in function "public: virtual void __cdecl GSTEngine::jump(int,bool)" (?jump@GSTEngine@@UEAAXH_N@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class TagLib::AudioProperties * __cdecl TagLib::FileRef::audioProperties(void)const " (__imp_?audioProperties@FileRef@TagLib@@QEBAPEAVAudioProperties@2@XZ)
 referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V
?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::String::~String(void)" (__imp_??1String@TagLib@@UEAA@XZ) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(cla
ss std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl TagLib::String::to8Bit(bool)const " (__imp_?to8Bit@String@T
agLib@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N@Z) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)"
(?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl TagLib::FileRef::~FileRef(void)" (__imp_??1FileRef@TagLib@@UEAA@XZ) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(
class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class TagLib::Tag * __cdecl TagLib::FileRef::tag(void)const " (__imp_?tag@FileRef@TagLib@@QEBAPEAVTag@2@XZ) referenced in function "struct MetaData __cdecl
 ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __cdecl TagLib::FileRef::isNull(void)const " (__imp_?isNull@FileRef@TagLib@@QEBA_NXZ) referenced in function "struct MetaData __cdecl ID3::getMetaData
OfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileRef::FileRef(class TagLib::FileName,bool,enum TagLib::AudioProperties::ReadStyle)" (__imp_??0FileRef@TagLib@@QEAA@VFileName@1@_NW4ReadS
tyle@AudioProperties@1@@Z) referenced in function "struct MetaData __cdecl ID3::getMetaDataOfFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
id3.cpp.3.o : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl TagLib::FileName::FileName(char const *)" (__imp_??0FileName@TagLib@@QEAA@PEBD@Z) referenced in function "struct MetaData __cdecl ID3::getMetaDataO
fFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?getMetaDataOfFile@ID3@@YA?AUMetaData@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
C:\cygwin\project\build\test\Playback\app.exe : fatal error LNK1120: 31 unresolved externals

my waf wscript (optimized for reading)

top = '.'
out = 'build'

def options(opt): 
    opt.load('compiler_cxx qt4 compiler_c')

def configure(conf):
    conf.load('compiler_cxx qt4 compiler_c boost')
    conf.check_cfg(atleast_pkgconfig_version='0.0.0') 
    conf.check_cfg(package='gstreamer-0.10', uselib_store='GSTREAMER', args='--cflags --libs', mandatory=True)
    conf.check_cfg(package='taglib', uselib_store='TAGLIB', args='--cflags --libs', mandatory=True) 
    conf.check_boost(lib='filesystem system unit_test_framework prg_exec_monitor test_exec_monitor program_options')
    conf.env.append_value('CXXFLAGS', ['-DWAF=1']) # test

def build(bld):
    cxxflags = bld.env.commonCxxFlags
    uselibcommon = 'QTMAIN QTCORE QTGUI QTOPENGL QTSVG QWIDGET QTSQL QTUITOOLS QTSCRIPT TAGLIB GSTREAMER'


    libpath = bld.env.LIBPATH_TAGLIB + bld.env.LIBPATH_GSTREAMER
    lib = bld.env.LIB_GSTREAMER + bld.env.LIB_TAGLIB
    include = [bld.options.boost_includes] + bld.env.INCLUDES_GSTREAMER + bld.env.INCLUDES_TAGLIB + bld.env.INCLUDES_QTGUI

    bld(features = 'cxx',   includes = include, source = 'Util.cpp' , target = 'Util.o', uselib = uselibcommon, lib = lib, libpath = libpath, cxxflags=cxxflags)

    bld(features = 'cxx',   includes = include, source = 'MetaData.cpp' , target = 'MetaData.o', uselib = uselibcommon, lib = lib, libpath = libpath, cxxflags=cxxflags)

    use = ['MetaData.o', 'Util.o' ]
    bld(features = 'cxx',   includes = include , source = 'id3.cpp' , target = 'id3.o', use = use, uselib = uselibcommon, lib = lib, libpath = libpath, cxxflags=cxxflags, linkflags=bld.env.commonLinkFlags)

    flags = cxxflags + ['-DWAF']
    use = ['MetaData.o', 'Util.o' , 'id3.o']
    bld(features = 'qt4 cxx',  includes = include , source = 'GSTEngine.cpp' , target = 'GSTEngine.o', use = use, uselib = uselibcommon, lib = lib, libpath = libpath, cxxflags=flags, linkflags=bld.env.commonLinkFlags)


    use = ['GSTEngine.o','MetaData.o', 'Util.o' , 'id3.o', ]
    bld(features = 'qt4 cxx c', uselib = uselibcommon, includes = include , source   = 'MainWindow.cpp' , target = 'MainWindow.o', lib = lib, libpath = libpath, use = use, linkflags=bld.env.commonLinkFlags, cxxflags=cxxflags )


    #when doing multiple entry in use space before coma
    use = ['GSTEngine.o','MetaData.o', 'Util.o' , 'id3.o','MainWindow.o', 'BOOST']

    if bld.env.COMPILER_CXX == 'msvc':
        libfile = bld.options.debug and ['qtmaind'] or ['qtmain'] 
        lib = lib + libfile
        libpath = libpath + ['C:\Qt\4.8.1_x64\lib']
        linkflags=bld.env.commonLinkFlags + ['/DEBUG']
    else:
        #lib = lib + []
        libpath = libpath + ["/usr/lib"]
        linkflags=bld.env.commonLinkFlags

    bld(features = 'qt4 cxx cxxprogram', includes = include, source = 'main.cpp MasterDetail.qrc', target   = 'app', uselib = uselibcommon , cxxflags=cxxflags, use = use,  lib = lib, libpath = libpath, subsystem='windows', linkflags=linkflags)

if you print the lib

   ['gstreamer-0.10', 'gobject-2.0', 'gmodule-2.0', 'xml2', 'gthread-2.0', 'glib-2.0', 'intl', 'tag', 'qtmain']

if you print the libpath

['C:/taglib-1.7.2/taglib/Release', 'C:/OSSBuild/GStreamer/v0.10.7/sdk/lib', 'C:/OSSBuild/GStreamer/v0.10.7/lib', 'C:/gtk/lib', 'C:\\Qt\x04.8.1_x64\\lib']

if you print the include

 ['C:\\Users\\sobingt\\Desktop\\boost_1_49_0', 'C:/OSSBuild/GStreamer/v0.10.7/sdk/include/gstreamer-0.10', 'C:/OSSBuild/GStreamer/v0.10.7/sdk/include/libxml2', 'C:/OSSBuild/GStreamer/v0.10.7/sdk/include', 'C:/gtk/include/glib-2.0', 'C:/gtk/lib
    /glib-2.0/include', 'C:/taglib-1.7.2', 'C:/taglib-1.7.2/include', 'C:/Qt/4.8.1_x64/include', 'C:/Qt/4.8.1_x64/include/QtGui', 'C:/Qt/4.8.1_x64/include/QtCore']

Can you please let me know what i am missising if there any other library i have to add for gstreamer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T23:36:47+00:00Added an answer on June 4, 2026 at 11:36 pm

    Its seems it was the Gstreamer and TagLib 32 bit problem. I was working on 64 bit msvc,boost and QT and was using 32 bit Gstreamer and Taglib.I am compiling Gstreamer and Taglib in 64 bit now. the Program work when i use 32 bit msvc,boost and QT insert of the 64 bit

    Thankz everyone

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a small application to setup fresh windows 7 systems. This
I'm trying to create a small program to run on a centralized device. This
I am trying to create a small assembly program to create a folder. I
I'm trying to create a small search for my site. I've tried using full-text
I spent the last three days trying to create a small app using SDL
I'm trying to create a small and basic ajax based multiplayer game. Coordinates of
i'm trying to create a small intranet. For this I have a webserver on
I'm trying create a small http proxy service. This is not working so well.
I'm trying to create a small app for users to have contacts. I'm using
I'm trying to create my own small Windows 7 Phone app. I have downloaded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.