Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt gtk
3 Posts 2 Posters 2.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    ming_zhe
    wrote on last edited by
    #1

    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?

    K 1 Reply Last reply
    0
    • M ming_zhe

      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?

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @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

      Vote the answer(s) that helped you to solve your issue(s)

      M 1 Reply Last reply
      1
      • K koahnig

        @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

        M Offline
        M Offline
        ming_zhe
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved