ofxLibwebsockets for iOS?

Hi- I’m having some issues compiling a project that uses ofxLibewebsockets for iOS. I get a bunch of errors to the tune of “file was built for archive which is not the architecture being linked (i386).” Is it telling me that the library isn’t compiled for iOS? If so, how can I compile it?


: j

Hello! This is my addon, hope I can help you get it working. Can you post screenshots of your errors? I think you shouldn’t have to compile libwebsockets for iOS, but haven’t personally tested it.

I’m working on getting a quick client example compiling, will post here as soon as I get it working. Sit tight!

Oops, you totally have to compile libwebsockets for arm. Working on it…

OK! Was a bit tricky but I’ve compiled libwebsockets and uploaded a short example to the repo in the current development branch:


Let me know if you have any questions! I think it’ll only work with an actual device, not the simulator, but I’m not 100% sure on that.

1 Like

Awesome- thanks! I’ll give it a shot as soon as I can!

: j

It works! Thanks!