Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation on Windows #19

Open
aodj opened this issue Apr 1, 2014 · 4 comments
Open

Compilation on Windows #19

aodj opened this issue Apr 1, 2014 · 4 comments

Comments

@aodj
Copy link

aodj commented Apr 1, 2014

Do any instructions exist for compilation under Windows? The provided instructions aren't entirely complete for Windows, specifically regarding the usage of zmq.lib

@aodj
Copy link
Author

aodj commented Apr 1, 2014

To elaborate, after throwing NOMINMAX into the QMake DEFINES and both . and the zeromq-4.0.4/include paths to the INCLUDEPATH, I run into LNK1104: cannot open file 'zmq.lib' when attempting to build the nzmqt_test project.

I've compiled the msvc solution that comes with the 4.0.4 sources but they generate dll's by default, and not static libs, which you're using in the LIBS argument.

There's probably something I'm missing, so I'm hoping you've got some ideas :-)

@dushibaiyu
Copy link

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../Libs/ZEROMQ/lib/ -llibzmq
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../Libs/ZEROMQ/lib/ -llibzmq_d

INCLUDEPATH += $$PWD/../../../../../Libs/ZEROMQ/include
DEPENDPATH += $$PWD/../../../../../Libs/ZEROMQ/include

INCLUDEPATH += $$PWD/../include
DEPENDPATH += $$PWD/../include

我的配置、、

@ChristonDK
Copy link

Has anyone successfully compiled and linked under windows with MinGW and qmake?
If so please advice howto, thanks

@machinekoder
Copy link
Collaborator

I am using it with msvc++. This here covers a bit more but may help you https://github.com/strahlex/QtQuickVcp/wiki/Installing-protobuf-and-zeromq#windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants