nzmqt icon indicating copy to clipboard operation
nzmqt copied to clipboard

project setup on mac

Open sherifomran opened this issue 5 years ago • 3 comments

i downloaded the repository and installed zmq using brew install zmq

i still can not compile the static library is there any other step that i should do?

zmg.h file is missing?

sherifomran avatar Dec 14 '19 21:12 sherifomran

i found the first part using brew install zmq the header is installed into /usr/local/include so i opened nzmqt_test.pro and changed line 64 to /usr/local/include but then i get library not found for -lzmq

when i open the nzmqt_staticlib.pro and compile it, it compiles but the output is moc_nzmqt.cpp, moc_nzmqt.o, moc_predefs.h and nzmqt.o, i expect .a or .dynlib or .lib please help

sherifomran avatar Dec 17 '19 20:12 sherifomran

I added the following lines and now nzmqt_test compiles and runs

macx: LIBS += -L$$PWD/../../../../../usr/local/Cellar/zeromq/4.3.2/lib/ -lzmq

INCLUDEPATH += $$PWD/../../../../../usr/local/Cellar/zeromq/4.3.2/include
DEPENDPATH += $$PWD/../../../../../usr/local/Cellar/zeromq/4.3.2/include

macx: PRE_TARGETDEPS += $$PWD/../../../../../usr/local/Cellar/zeromq/4.3.2/lib/libzmq.a

sherifomran avatar Dec 17 '19 20:12 sherifomran

i found also that the library is created in the bin folder when i compile nzmqt_staticlib where also the nzmqt_test is also placed

DESTDIR = $$PRO_FILE_PWD/../bin

sherifomran avatar Dec 17 '19 20:12 sherifomran