[zeromq-dev] Question about constness

2012-07-25 Thread Ming Ji
Hi Sebastian, Thanks for pointing out the previous threads about this issue. I went through all three of them. I saw someone mentioned const_cast. I would say that is a good way for people who knows the implementation details. For general users, it is still not safe. For example, zmq_msg_copy

Re: [zeromq-dev] Question about constness

2012-07-25 Thread Sebastian Lauwers
Hi again, On 25/07/12 03:26, Ming Ji wrote: Could you share your interface, or C++ API patch? I can probably do a test run before you release it. I haven't written the C++ API patch yet, so that'll have to wait for the weekend or so, when I have a minute. I've attached two files that

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread jonas . adler
Yes, I configured zmq before I tried to configure jzmq. My OUTPUT_DIR was set to /tmp/zeromq-android before I configured zmq. Here's a link to the script I made (from the instructions on build:android) after redoing the instructions approximate 15 times. Worth noting is that I installed the NDK

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread Victor Perron
OK, I ran the exact same sequence. Seems you are right, I have forgotten a little word on the last configure line. When it fails, the config.log says: 504 /tmp/myandroid/lib/libzmq.a(libzmq_la-uuid.o): In function `uuid_t': 505 /tmp/zeromq-2.2.0/src/uuid.cpp:88: undefined reference to

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread jonas . adler
I still get the same problem with zmq_init not in -lzmq. some enviroment variables that might be useful: PATH=/opt/android-toolchain/bin:/use/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:usr/games OUTPUT_DIR=/tmp/zeromq-android packages I installed (running ubuntu x86_64 clean

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread Victor Perron
Cqn you please send me your config.log ? BR, On Wed, Jul 25, 2012 at 3:17 PM, jonas.ad...@epiq.se wrote: I still get the same problem with zmq_init not in -lzmq. some enviroment variables that might be useful:

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread jonas . adler
Oh i forgot to add the link to the log, I'm sorry :p http://pastebin.com/pWwepPdr Cqn you please send me your config.log ? BR, On Wed, Jul 25, 2012 at 3:17 PM, jonas.ad...@epiq.se wrote: I still get the same problem with zmq_init not in -lzmq. some enviroment variables that might be

Re: [zeromq-dev] Re : Massive problems running ZMQ on android

2012-07-25 Thread Victor Perron
Seems there is an issue in your PATH. From the line 83 (and the others) it looks like the toolchain is not found: configure:3246: checking for arm-linux-androideabi-gcc configure:3276: result: no configure:3286: checking for gcc configure:3302: found /usr/bin/gcc configure:3313: result: gcc ...

[zeromq-dev] Connect with inproc

2012-07-25 Thread Marc Rossi
Linux w/ ZMQ 2.2.0 I have a publish function that is called from a thread. This publish function connects an inproc socket with a socket in another thread. Since inproc sockets error on a connect call if the other side isn't setup yet I have the publish functino return without publishing until

Re: [zeromq-dev] Connect with inproc

2012-07-25 Thread Chuck Remes
On Jul 25, 2012, at 11:11 AM, Marc Rossi wrote: Linux w/ ZMQ 2.2.0 I have a publish function that is called from a thread. This publish function connects an inproc socket with a socket in another thread. Since inproc sockets error on a connect call if the other side isn't setup yet I