Coder Social home page Coder Social logo

Comments (7)

robotconscience avatar robotconscience commented on June 16, 2024

No problem! Should have a moment later tonight to recompile. If you want to give it a shot, there's fairly detailed instructions how to in the Readme.

Will post here if I get to it sooner!

from ofxlibwebsockets.

armadillu avatar armadillu commented on June 16, 2024

Gave it try, couldn't easily get it to build.

CMake Error at CMakeLists.txt:7 (project):
  The CMAKE_C_COMPILER:

    gcc

  is not a full path and was not found in the PATH.

from ofxlibwebsockets.

robotconscience avatar robotconscience commented on June 16, 2024

Hey Oriol, can you try this one out?
https://www.dropbox.com/s/ekap27nvxr9lte7/libwebsockets.a?dl=0

Should work, just want to test before pushing it up

from ofxlibwebsockets.

armadillu avatar armadillu commented on June 16, 2024

the lib works the same, but getifaddrs() still fails (errno 6)...
hard to tell what's going on

from ofxlibwebsockets.

armadillu avatar armadillu commented on June 16, 2024

Yep I can confirm that getifaddrs() doesn't fail when I don't include ofxLibWebSockets in the project... So it must still be defined somewhere in there?

from ofxlibwebsockets.

robotconscience avatar robotconscience commented on June 16, 2024

Hm! I did define the HAVE_GETIFADDRS, and can confirm the preprocessor's working. I don't know a ton about the function, so I'm not sure.

Here's what I did to compile, if you want to play with it:

  • change line 30 and 31 in iOS.cmake to:
CMAKE_FORCE_C_COMPILER(/usr/bin/gcc GNU)
CMAKE_FORCE_CXX_COMPILER(/usr/bin/g++ GNU)
  • manually pass in openSSL when making (not sure why, haven't had to do that in the past):
cmake -DLWS_OPENSSL_INCLUDE_DIRS=/usr/include/openssl -DLWS_OPENSSL_LIBRARIES=/usr/bin/openssl -DCMAKE_TOOLCHAIN_FILE=~/Dropbox/Code/OF/of_v0.X.X_github/addons/ofxLibwebsockets/extras/ios_libwebsockets/toolchain/iOS.cmake -GXcode ..
  • Rest should work! I had some weird errors compiling SSL within Xcode after making, so ended up compiling in OF's version... weird, but it did work.

from ofxlibwebsockets.

armadillu avatar armadillu commented on June 16, 2024

I will give it another shot when I get a sec.

from ofxlibwebsockets.

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.