dingmaotu / mql-zmq

ZMQ binding for the MQL language (both 32bit MT4 and 64bit MT5)
Apache License 2.0
544 stars 298 forks source link

Fails under wine 2.0.3 #15

Closed evmin closed 6 years ago

evmin commented 6 years ago

Apologies if the operation under wine is not something that has been envisaged.

But if it is, having this issue with wine-2.0.3. Testing with TestZmq.mq4. Metatrader 4 build 1090.

Hangs at this point:

Context context;

Log output from wine: fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x9cc27f0, 0x9cd0030, 0x9cd0048) stub.

Log output from MT:

2017.12.15 18:30:51.848 TestZmq EURUSD,H4: >>> Testing context

Appreciate any guidance.

dingmaotu commented 6 years ago

Hi, @evmin I've received a couple of problems using this lib on WINE. I only compiled and tested the DLL on Windows 10 and did not have a WINE environment. The DLL is compiled with VS2015 which is relatively new and I think it may not be entirely compatible with current WINE version. Maybe you can try to compile a zmq DLL (zmq 4.2.2 will be OK) using an older VC compiler? The official document says Visual Studio 2008/2010 is supported.

dingmaotu commented 6 years ago

Hi, @evmin today I compiled DLLs of libzmq and libsodium with VC2010 Express on Windows 7. I tested this version and my previous version on WINE 2.0.3 (32bit PlayOnLinux) with MetaTrader build 1090 on Debian Jessie (version 8) and the TestZmq script ran just fine with both versions.

So I suppose your host environment is different (Mac OS?) and you have some runtime problem?

evmin commented 6 years ago

@dingmaotu Wow! That's awesome. Thank you so much for confirming this. it is indeed Mac. Do you think you could share the compiled 2010 version with me, if this is not too hard? I would really appreciate this! My confusion is around as to why it hangs on Context initialisation - I would understand everything else....

dingmaotu commented 6 years ago

Of course, I uploaded the DLLs in a new commit and wrote a note in README. Try these and see if the problem is fixed.

evmin commented 6 years ago

Thank you. 2010 work fine under linux, no issues. I think you are correct - the issue is with Mac. I appreciate the extra effort that you have put in to cross compile on the older version of the libs - thank you.

I think we can close the ticket...