-
Notifications
You must be signed in to change notification settings - Fork 196
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
Compile errors when use libzmq IOS pod #162
Comments
BTW, it's even better to fix the compile error in following cross-platform way: original code from select.cpp, function void zmq::select_t::loop ()
the fixed code:
|
The select problem was already fixed in 4.1.x and 4.2.x by zeromq/libzmq#1181 The platform.hpp is generated at build time by autoconf/cmake/etc, not a Mac user so I'm not sure how to integrate autoconf/cmake in Xcode but there must be documentation by Apple |
Sorry, are the any way to add latest version (4.2.2) of libzmq to cocoa pods? It seems that it is needed just to update the podspec? Can I do that by myself? |
I'm sorry but I'm not an OSX user/dev so no idea - if you can't find out, try asking on the mailing list http://zeromq.org/docs:mailing-lists or on IRC http://zeromq.org/chatroom |
Thanks! I will ask community for the help. |
Hello All!
I would like to use libzmq pod for my IOS project.
def myPods
pod 'libsodium'
pod 'libzmq'
end
My Xcode version is 8.3.1.
I have faced with the following issues:
#ifndef platform_h
#define platform_h
#define ZMQ_FORCE_SELECT
#define ZMQ_HAVE_UIO
#endif /* platform_h */
Pods/libzmq/src/select.cpp:166:13: Non-constant-expression cannot be narrowed from type 'long' to '__darwin_suseconds_t' (aka 'int') in initializer list
I have fixed the issue using explicit cast :
After that the project has built correctly. I have tried a couple of tests from zmq and it seems that they work correctly.
I have two options:
Could you please advice the direction of solving such problem?
The text was updated successfully, but these errors were encountered: