Hello Guest it is March 28, 2024, 06:21:47 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mondrata

Pages: 1
1
Mach4 General Discussion / Re: Working complex Lua Modules into Mach4
« on: March 12, 2021, 03:20:21 PM »
Mach4GUIR.exe unfortunately won't work since the other computer is a Linux machine. There haven't been any successful attempts to get Mach4 running on Linux, has there? I think LinuxCNC got that side of the CNC world covered well enough, probably.

But yep, compiling it outside of Mach4 and then copying the modules into Mach4's Module directory was what I was expecting. Glad to know that it is at least possible. I just have to figure out how to get the build scripts to stop looking for a compiler that isn't there.

In the meantime I convinced my other team member to try something that uses vanilla TCP/IP on her end. It isn't as nice as the server/listener that used Websockets but hopefully it will do.

2
Mach4 General Discussion / Working complex Lua Modules into Mach4
« on: March 11, 2021, 07:35:06 PM »
Hello,

I am trying to figure out a way to communicate DRO values to a computer other than the one that will be running Mach4. The solution that another team member found on her side of the problem is a server that uses the WebSocket protocol on top of vanilla TCP/IP, but I have been having trouble making it work from my end. Mach4 comes with a Lua sockets module that can handle vanilla TCP/IP, but to communicate over a WebSocket I would have to add in a Lua module that someone else made, like lua-websocket or lua-http, or write the thing myself.

I'd like to avoid implementing a communication protocol myself, but the problem with installing lua-websocket or lua-http is that they aren't a set of DLL's and Lua files I can just drop into the Modules directory; they are complicated modules that require compilation and that have a list of dependencies. Of course, they depend on lua-sockets, but Mach4's version of the lua-sockets module isn't in a state that package managers like LuaRocks can take advantage of for compiling module DLLs.

So my question is, has anyone has managed to add in any complicated Lua modules to Mach4? Is there a way to trick LuaRocks or LuaDist to do this for me?

Pages: 1