ShapeLab/SwarmUI

Compiling ZooidManagerV2 (macOS + XCode)

Closed this issue · 1 comments

I am trying to compile the ZooidManagerV2 but I can't get it to work.

  • I copied ZooidManagerV2 to /Applications/of_v0.11.0_osx_release/apps/myApps/ZooidManagerV2 and imported it using the OF projectGenerator.app (which results in the ./Sources folder being the project root). This also resolved the issue that many include directories point to something such as ../../../../Mathieu/Dropbox/../../ etc.
  • I included the missing sources for ofxSvg https://github.com/ofnode/of/tree/master/addons/ofxSvg into the addons folder.
  • I downloaded Poco and added include paths for everything.
  • I changed the linker flags (for debug, release, and appstore) to point to my correct OpenSSL libraries and the correct (included in ZooidManager) ofxLibwebsockets libraries.
  • I fixed the version of ofxSmartFont with https://github.com/braitsch/ofxSmartFont to use std::string instead of string.
  • I added #include "Poco/Types.h" in Ascii.h of Poco because otherwise it couldn't resolve the import (which surprises me and most certainly is one of the problems I am facing), even though Poco/Foundation.h, which is included right above, already includes Types.h.
  • I updated ZooidManager.cpp and changed ofBuffer buffer(settings.GetString()) to ofBuffer buffer(settings.GetString(), settings.GetSize()); as the (new?) interface requires a size to be given and no implicit copy ctr exists.

Now I am still stuck with many linker errors:
_SSL_library_init, _OPENSSL_add_all_algorithms_noconf, Poxo::XML::Document::getElementById(...), etc. etc.

Can you provide some more detailed instructions on how to compile the ZooidManager (preferably on macOS)? Thank you very much!

The key seems to be to use the openframework Project Generator, but we resorted to the pre-built ZooidManager.