Giter Site home page Giter Site logo

Comments (16)

bsergean avatar bsergean commented on May 14, 2024

@Dimon4eg / I'll write notes here about what was broken on Windows, if you are interested in fixing this.

One thing that is broken but isn't mandatory, is the Interrupt system that works with pipes, since pipe don't work the same way on Windows, and that we can't get a file descriptor that we can call 'select' on. But the interrupt system is ok for just closing the socket, as Windows will wake up from select when this happen.

The problem I had was that the most basic test (SocketTest ?) would not work.
Maybe I'd start with the ws_connect interactive program and get it to work, and have it run against a node.js or python server first.

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Something else that is required is to have a zlib .dll in the current folder where the executable runs, or something like that. I have one that works in the third_party folder.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

@bsergean why do we use zlib as dynamic and not as static lib?

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

No good reason. The only .lib I found on the internet were just the windows stub thing that works with a dll. If we can compile zlib ourself of find an existing standalone zlib then yes for sure we should use a static lib for zlib.

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Note that I'm trying to make the AppVeyor Windows build to work again (a least the most basic parts). It isn't hooked to the MachineZone/IXWebSocket for permission reason (need to work this out), but it is linked to my fork (bsergean).

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

Okay

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

I'm having very basic problems, just running CMake. I should revert to the old python script I had ages ago which was working on Windows.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

What problems do you have with CMake?

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Here's the error. It looks like cmake isn't executed. That folder should be there also.

[vcvarsall.bat] Environment initialized for: 'x64'
python test/run.py
NMAKE :  U1052: file 'C:\projects\ixwebsocket\test\build\Windows' not found
Stop.
Running 
cmake -H.          -BC:\projects\ixwebsocket\test\build\Windows     -DCMAKE_BUILD_TYPE=Debug     -DUSE_TLS=1     -DCMAKE_EXPORT_COMPILE_COMMANDS=ON     -G"NMake Makefiles"
Unittest timed out
Running nmake -C C:\projects\ixwebsocket\test\build\Windows 
Unittest timed out
cmd nmake -C C:\projects\ixwebsocket\test\build\Windows  failed with error code 2
Traceback (most recent call last):
  File "test/run.py", line 518, in <module>
  File "test/run.py", line 514, in main
  File "test/run.py", line 377, in run
  File "test/run.py", line 85, in runCommand
AssertionError
Command exited with code 1

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Debugging without a physical machine is really painful / tedious btw. I should get a win box or a least a VM.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

I have not tried test/run.py.
Just building using CMake.

NMAKE : U1052: file 'C:\projects\ixwebsocket\test\build\Windows' not found
You have problem with folders

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Hey @Dimon4eg one thing you should know if you are running into problems with the windows port, is that on Windows 'socket connect' failures behaves differently, and set the exception fds in select when the connection fails.

I don't know how much sockets are working for you on Windows at this point. Also we might need a different python test script because it looks like out of tree builds don't work on Windows.

I'm curious about what is working for you on Windows. I might get a windows laptop from a co-worker and will be able to help one day hopefully.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

Yes, on Windows it doesn't work currently.
Currently I've no time to go deep and fix it.

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Ok. Same with me I'm quite busy those days. Thanks at least for getting the build to work.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

Many tests pass now on Windows except these two:

  • IXWebSocketPingTimeoutTest
  • cmd_websocket_chat

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Closing this ticket, we can reopen 'per unittest' tickets.

from ixwebsocket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.