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

project setup on mac #54

Open
sherifomran opened this issue Dec 14, 2019 · 3 comments
Open

project setup on mac #54

sherifomran opened this issue Dec 14, 2019 · 3 comments

Comments

@sherifomran
Copy link

sherifomran commented Dec 14, 2019

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

sherifomran commented Dec 17, 2019

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

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

1 participant