hi, 

I am trying to setup erlzmq as dependency for my erlang project managed by rebar


I have the following in my rebar.config


 {'erlzmq', ".*", {git, "git://github.com/zeromq/erlzmq2.git", "master"}}

but the problem is though rebar is able to pull erlzmq from git, it fails to 
build it.
getting the following errors:

bash-3.2$ make
rebar get-deps
==> erlsom (get-deps)
==> detergent (get-deps)
==> mochiweb (get-deps)
==> log4erl (get-deps)
==> rel (get-deps)
==> betfairgateway (get-deps)
Pulling erlzmq from {git,"git://github.com/zeromq/erlzmq2.git","master"}
Cloning into erlzmq...
==> erlzmq (get-deps)
rebar compile
==> erlsom (compile)
==> detergent (compile)
==> mochiweb (compile)
==> log4erl (compile)
==> erlzmq (compile)
Compiled src/erlzmq_nif.erl
Compiled src/erlzmq.erl
Compiling c_src/erlzmq_nif.c
c_src/erlzmq_nif.c:24:17: error: zmq.h: No such file or directory
c_src/erlzmq_nif.c:70: error: expected specifier-qualifier-list before 
'zmq_msg_t'
c_src/erlzmq_nif.c: In function 'erlzmq_nif_context':
c_src/erlzmq_nif.c:140: warning: implicit declaration of function 'zmq_init'


so, the question is how to correctly setup the rebar to make sure that erlzmq 
is automatically built with make?

Regards, Roman
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to