<div dir="ltr"><div><div>I want to apologize because this is for a C++ project, not a Gambas one.<br></div>I'm really clueless at the moment, and I know there are people in this list that knows an awful lot, so I'm trying to pick someone's brains.</div><br><div>Once upon a time, I got myself a coupla pan-tilt IPCameras. Nothing fancy really.</div><div>Zero Linux support, they offer Mac and Win drivers, apps, and maybe even chocolate. But not for Linux.</div><div><br></div><div>Contacted the manufacturer, they sent me a nice NDA -which I signed- and afterwards an SDK with Linux, Mac and Win dev libs, but just Mac and Win examples.</div><div>The SDK has an absolute lack of Linux examples, as expected. Also, as I am a mere mortal and not a multibillion corporation, the maker will give me exactly zero support.<br></div><div><br></div><div>Because of the NDA I cannot go to details, but let's say I successfully connected to one of the cams (the other, an older model, makes the SDK segfault).</div><div>I can connect and authenticate to the cam, and I can spawn a video retrieval thread from the main app, which seems to work. All of this, again, in C++ and GTKMM.</div><div>The worker thread retrieves video frame by frame in a buffer, along with camera events. So far so good, it works.<br></div><div><br></div><div>Problem 1: Cannot figure how to dump these frames to a GTKMM window, control, or surface (the Win example uses Direct3D, not applicable here). Can anyone point me in the right direction?</div><div>Problem 2: I will have to cross the thread boundary to do this. Again, not a clue. Help?</div><div><br></div><div>The SDK is 32bit only. My main machine is 64bit. I am using VSCode in a 32bit VM to develop, but I would really like to have a Gambas version eventually, like in a lib so anyone else can use it. Also, the Win example in a 32bit Win VM does not show video, but it does work in the real hardware. So, I want to make sure that when I don't see anything is not because of the VM, but because something went wrong.<br></div><div><br></div><div>Problem 3: Is there any way to make Gambas work as a 32bit, both in the IDE and the interpreter, in a 64bit machine?</div><div>Problem 4: If it is at all possible to have a solution for Problem 3 above: How do I solve the threading issue in Gambas?</div><div><br></div><div>Thanks, you may now continue talking BASIC.</div><div>zxMarce.<br></div></div>