Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported



  • I want to use qtcreator build BurnCd-tool on linux-mint 18 by libbrasero-burn3.
    When I user "BraseroBurnSession *session = brasero_burn_session_new();" in project, and error:
    "GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported"

    When I use "QCoreApplication a(argc, argv);" not error! (and "QApplication a(argc, argv);" error!)

    can anyone help me?



  • @ming_zhe

    Hi and welcome to devnet forum

    @ming_zhe said in GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported:

    I want to use qtcreator build BurnCd-tool on linux-mint 18 by libbrasero-burn3.
    When I user "BraseroBurnSession *session = brasero_burn_session_new();" in project, and error:
    "GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported"

    Why do you want to mix different library versions in the same project?
    IMHO you should change to most recent version then. Possibly you have a mixture of headers in your development code.

    When I use "QCoreApplication a(argc, argv);" not error! (and "QApplication a(argc, argv);" error!)

    You need to show the .pro file of your project. Most likely the definition

    QT += gui 
    

    is missing



  • @koahnig
    Hi, thanks for your reply.
    I've written .pro

    QT       += core gui
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    CONFIG += no_keywords
    DEFINES += GETTEXT_PACKAGE
    QMAKE_CXXFLAGS += -fpermissive
    PKGCONFIG += libbrasero-burn3 libbrasero-media3 libnotify
    LIBS += -lbrasero-burn3 -lbrasero-media3 -lnotify
    CONFIG += link_pkgconfig
    

    yesterday, i build my code in another linux OS, and no error. I think this problem in connection with LinuxMint 18.

    Thanks again.


Log in to reply