ducha-aiki / mods-light-zmq

MODS with external deep descriptors/detectors
http://cmp.felk.cvut.cz/wbs/
GNU General Public License v2.0
54 stars 5 forks source link

Compilation problem #1

Closed imelekhov closed 6 years ago

imelekhov commented 6 years ago

Hi, There is an issue in the compilation process. To be more specific, the problem is in line 38 of imagerepresentation.cpp file. The interface function connect expects to have const char* as an input but string variable is provided. So, changing the original version to socket.connect(par.port.c_str()); should fix the problem.

ducha-aiki commented 6 years ago

Hi, That`s weird - works for me. Probably different version of some lib. Could you please tell me the version, so I can test?

imelekhov commented 6 years ago

I see! It is related to libzmq library which is quite old on my machine (v 4.0.4). In this particular version, there is only one interface function inline void connect(const char *addr) handling a char array and not a string.