[zeromq-dev] Error: cannot link with -lzmq
Sharon Ben-Asher
Sharon.Ben-Asher at avg.com
Sun Jul 8 10:35:39 CEST 2012
Ok,
I solved the issue by installing gcc-multilib and g++-multilib packages.
Maybe you should mention this in the Android build webpage?
Thanks,
Sharon
From: Sharon Ben-Asher
Sent: Thursday, July 05, 2012 1:29 PM
To: 'zeromq-dev at lists.zeromq.org'
Subject: Error: cannot link with -lzmq
Hello again,
After successful build of the C lib, I have a problem with building zmq.jar:
configure:15622: checking for zmq_init in -lzmq
configure:15647: g++ -o conftest -g -O2 -D_REENTRANT -D_THREAD_SAFE -fPIC -I/home/sharon/zeromq-android/include -L/home/sharon/zeromq-android/lib conftest.cpp -lzmq >&5
/usr/bin/ld: skipping incompatible /home/sharon/zeromq-android/lib/libzmq.so when searching for -lzmq
/usr/bin/ld: skipping incompatible /home/sharon/zeromq-android/lib/libzmq.a when searching for -lzmq
/usr/bin/ld: cannot find -lzmq
collect2: ld returned 1 exit status
Thanks
Sharon
From: Sharon Ben-Asher
Sent: Thursday, July 05, 2012 12:56 PM
To: 'zeromq-dev at lists.zeromq.org'
Subject: RE: Error: comparison between signed and unsigned integer expressions
I solved the problem by converting the sizeof to int like this
if (sa->sa_family == AF_INET && sa_len >= (int)sizeof (address.ipv4)) {
I guess it's a platform specific issue? Anyway, it is needed to compile the lib for ARM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120708/c5dcca1d/attachment.htm>
More information about the zeromq-dev
mailing list