Jump to content
Sign in to follow this  
Luigi301

Linking with protobuf in Qt Creator

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?

Share this post


Link to post
Share on other sites

I haven't tried it and it is likely that you have already done it, but my idea would be to make sure that you have fully re-built the project (to be 100% sure, delete the output folder).

Share this post


Link to post
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.

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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...