seasocks icon indicating copy to clipboard operation
seasocks copied to clipboard

Failure to build on MacOSX : (included in EliteQuant_Cpp-master project)

Open DXXS opened this issue 7 years ago • 6 comments

I've been attempting to build the EliteQuant_Cpp-master project (which claimed to be 'unix' source, but it eventually hurls over 70% of the way through, when it gets to seasocks)

Downloaded the latest, and managed to get seasocks initial building on Mac after providing a substitute byteswap.h, changing MSG_NOSIGNAL to SO_NOSIGPIPE; however, it then fails because it has heavy dependencies on 'epoll' apparently a linux exclusive, instead of (3rd party recommendation:)"kqueue, which OSX does support".

[ 3%] Built target embedded [ 5%] Building CXX object src/main/c/CMakeFiles/seasocks_obj.dir/Server.cpp.o /Volumes/CodeGen/seasocks-master/src/main/c/Server.cpp:39:10: fatal error: 'sys/epoll.h' file not found #include <sys/epoll.h> ^ 1 error generated. make[2]: *** [src/main/c/CMakeFiles/seasocks_obj.dir/Server.cpp.o] Error 1 make[1]: *** [src/main/c/CMakeFiles/seasocks_obj.dir/all] Error 2 make: *** [all] Error 2

DXXS avatar Sep 13 '18 04:09 DXXS

https://github.com/williame/hellepoll/issues/2

DXXS avatar Sep 13 '18 04:09 DXXS

seasocks is hardcoded to use epoll which, as you noticed, is linux-specific. I think you're going to have a hard-time getting it to work natively on os x. You could consider trying to run it inside virtual box or docker.

hoytech avatar Sep 13 '18 13:09 hoytech

Well, I probably wouldn't have bothered if they had said linux only; instead, they actually provide supposed Mac build instructions which don't currently seem to work, especially WRT seasocks ; https://github.com/EliteQuant/EliteQuant_Cpp

DXXS avatar Sep 14 '18 19:09 DXXS

Very odd! I'd love for Mac support and now actually have a Mac laptop for work. But support for it will always be second class and I don't have too much time to spend on it. If the elite quant folks have it working I'd love to know about it :)

mattgodbolt avatar Dec 05 '18 02:12 mattgodbolt

A colleague and I are using seasocks for a little project on a raspberry pi. As far as it got, all seems to work fine but I would really like to be able to develop natively on my Mac. Are there any plans to support it, has anyone already done it? I can imagine to port it myself but I would prefer not to invest the time. Also I don’t know if I am qualified...

stzi avatar May 21 '20 16:05 stzi

Hi @stzi -- no plans from me I'm afraid. I have no Mac, and I have no need of a Mac version. I don't imagine it's a huge amount of work, but I'm definitely not qualified to determine that.

mattgodbolt avatar May 21 '20 16:05 mattgodbolt