Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Using google protobuf with Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Using google protobuf with Qt Creator

Scheduled Pinned Locked Moved 3rd Party Software
25 Posts 5 Posters 19.7k Views 1 Watching
  • 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.
  • V Offline
    V Offline
    VimHar
    wrote on last edited by VimHar
    #21

    Hey,.. Great. I have done re-installing protobuf using Msys following the steps below
    https://stackoverflow.com/a/73287395/10432503

    Now I can able to run using plain g++ command in the terminal.

    But when I do the same in QT , the following error occurs
    :-1: error: Dwarf Error: Can't find .debug_ranges section.

    My .pro file
    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    CONFIG += c++17

    INCLUDEPATH += C:/protobuf-3.21.11/src

    LIBS += -LC:/protobuf-3.21.11/src/.libs -lprotobuf

    SOURCES +=
    main.cpp
    mainwindow.cpp
    m.pb.cc

    HEADERS +=
    mainwindow.h
    m.pb.h

    FORMS +=
    mainwindow.ui

    Should I add anything more.?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VimHar
      wrote on last edited by
      #22

      Hey Jon,

      Im also sharing you the compiler definitions.
      7f048c43-9351-45d8-a16a-739fafa8d8da-image.png

      Im using
      e42d5a06-f656-4a9e-b4ed-a0159e1c52ff-image.png

      The g++ command works smoothly. But I'm getting this new error when I compile using QT.
      FYI, I have two MinGWs one inside QT folder and one inside Msys folder.

      Am I missing any? :(

      JonBJ 1 Reply Last reply
      0
      • V VimHar

        Hey Jon,

        Im also sharing you the compiler definitions.
        7f048c43-9351-45d8-a16a-739fafa8d8da-image.png

        Im using
        e42d5a06-f656-4a9e-b4ed-a0159e1c52ff-image.png

        The g++ command works smoothly. But I'm getting this new error when I compile using QT.
        FYI, I have two MinGWs one inside QT folder and one inside Msys folder.

        Am I missing any? :(

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #23

        @VimHar
        I know nothing about this area. ":-1: error: Dwarf Error: Can't find .debug_ranges section." implies to me you have incompatible compilers or incompatible options or something.

        1 Reply Last reply
        1
        • V Offline
          V Offline
          VimHar
          wrote on last edited by VimHar
          #24

          What you said is right. Thanks Jon. Reach out incase you got any. I will try.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VimHar
            wrote on last edited by
            #25

            d60e951b-d2ad-4c5c-90bb-acd5587fc90e-image.png

            Hey Can you help me how to enable the MSVC compiler , I couldnt choose it.

            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