Compilation on Windows
aodj opened this issue · 4 comments
Do any instructions exist for compilation under Windows? The provided instructions aren't entirely complete for Windows, specifically regarding the usage of zmq.lib
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 :-)
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
我的配置、、
Has anyone successfully compiled and linked under windows with MinGW and qmake?
If so please advice howto, thanks
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