Piotr Trojanek(deleted)
|
Re: SRR message passing module based on ZMQ
|
Piotr Trojanek(deleted)
06/08/2010 9:48 AM
post56275
|
Re: SRR message passing module based on ZMQ
I have identified three issues regarding native build of zeromq-2.0.7 under QNX6.4.1:
1) I had to remove "crtbegin.o, -lc, -lcS, ..." stuff from the created libtool file
(this seems the same issue as reported on zmq mailing list about mixed g++/QCC linkage)
2) -lcrypto link flag has to be added to perf/Makefile and devices/*/Makefile
3) poll() seems not to work. addind "#define ZMQ_FORCE_SELECT 1" to plattform.hpp,
as suggested on the zmq mailing list does not help for me
# ./local_lat tcp://192.168.2.104:5555 1 1
Assertion failed: !(it->revents & POLLNVAL) (poll.cpp:171)
Abort (core dumped)
While (1) and (2) seems to be easy to fix in autoconf/automake I do not have idea for the (3).
|
|
|
Armin Steinhoff
|
Re: SRR message passing module based on ZMQ
|
Armin Steinhoff
06/08/2010 10:22 AM
post56289
|
Re: SRR message passing module based on ZMQ
Piotr Trojanek wrote:
> Yes,
>
> there is interest in ZMQ for QNX in my robotics team. I have seen your posts on the zeromq-dev mailing list...
>
> At the moment I am trying to make a pkgsrc build of ZMQ, but there are some minor linking issues...
>
> Best regards,
>
Here are my porting steps:
- configure command for C bindings: "CC=qcc CXX=QCC configure --with-c --with-perf"
- add to platform.hpp:
#define rpl_malloc malloc
#define ZMQ_FORCE_SELECT 1 // polling doesn't work
- modify the LIBS specification of the Makefile located in perf to
"LIBS = -lcpp -lcxa -lssl -lsocket"
if you link the latency apps with qcc
--Armin
|
|
|