Jump to content
IGNORED

Linking with protobuf in Qt Creator


Luigi301

Recommended Posts

I'm working on a little project and I need to link RespeQt with protobuf. I'm running Windows 10 and using Qt Creator. I installed Qt 5.8.0.

 

I installed MSYS2 32-bit and set it up with Qt's mingw mounted and using its GCC. I compiled the protobuf library from source and installed it to mingw's /lib directory. I added it to the project in Qt Creator:

LIBS += -L"C:\Qt\Qt5.8.0\Tools\mingw530_32\lib" -lprotobuf
INCLUDEPATH += "C:\Qt\Qt5.8.0\Tools\mingw530_32\include"

But it doesn't seem to be linking it. I get a million undefined reference errors when I try to use any of the protobuf functions. What do I need to do to get it to link properly with the Qt mingw environment?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...