Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mojave + xcode 10 issues #6139

Closed
ofZach opened this issue Sep 30, 2018 · 7 comments
Closed

mojave + xcode 10 issues #6139

ofZach opened this issue Sep 30, 2018 · 7 comments

Comments

@ofZach
Copy link
Contributor

ofZach commented Sep 30, 2018

I'm looking at OF on Mojave and Xcode 10 which is kind of painful now --

some notes (cc @ofTheo)

a) 32 bit needs to be removed (this has already been done in master...)

b) on mojave apps need permission set as a plist for camera, microphone, and any other thing we might need to do that requires permissions (ala iPhone). I feel like the easiest is we just add these to the template plist so that they are already set.

c) there's something not right about the overall OF sub project, at the moment you can't open more than one OF project at the same time and build them (before you used to get an integrity warning but now it seems there is more of an error so you actually just can't build more than one project at once... it's super weird)

d) openframeworks library always gets rebuilt for each project :(

(maybe looking at this issue which this reminded me of -- #5895)

I'm looking into b/c/d at the moment...

@ofZach
Copy link
Contributor Author

ofZach commented Sep 30, 2018

@ofZach
Copy link
Contributor Author

ofZach commented Sep 30, 2018

update -- if I put projects in "legacy" build system they compile fine (meaning, no redundant compiling of OF, can have more than one OF project open at once and compile it, etc)

screen shot 2018-09-30 at 4 54 29 pm

@ofZach
Copy link
Contributor Author

ofZach commented Sep 30, 2018

also one issue I see with the main OF project in Xcode 10 is that it doesn't seem to build release lib for OF, I had to add another scheme for release (one scheme is for debug, the other for release)

@ofZach
Copy link
Contributor Author

ofZach commented Sep 30, 2018

can confirm also that Xcode 9.4.1 works well on mojave (no repeat compiling of OF per project, no issues with multiple projects open) but we still have issues with the plist / permissions so things like video grabber example doesn't work yet.

also if you add permissions to the plist

screen shot 2018-09-30 at 5 32 07 pm

it seems that this plist doesn't doesn't work when you run the app from within xcode (9.4.1) but it does when you run outside of Xcode

screen shot 2018-09-30 at 5 38 05 pm

I think this behavior is better on Xcode 10 but I'm not sure...

@arturoc
Copy link
Member

arturoc commented Oct 1, 2018

This repeat compile of external dependencies for each project is kind of the norm in modern build systems. I think they do it cause then you can build more than one thing at once with different build flags... but it's kind of annoying for the way we use the OF library.

In qt creator i just trigger a makefile build instead of using the internal dependency system, that way OF is compiled and only once. In xcode we could do something similar but we can either use makefiles or xcodebuild

@ofTheo
Copy link
Member

ofTheo commented Nov 13, 2018

This should now be all addressed in master / nightly builds as of the next nightlies.

@ofTheo ofTheo closed this as completed Nov 13, 2018
olekristensen added a commit to olekristensen/openFrameworks that referenced this issue Jan 2, 2019
…orks into stable

* 'stable' of https://github.com/openframeworks/openFrameworks: (105 commits)
  create_package: pull OF from github instead of local
  create_package: pull PG from master always
  PG latest commit
  changelof for 0.10.1
  ofTruetypeFont: Fix kerning factor. openframeworks#6136
  ofConstants: revert version to 0.10.1
  ofSoundBuffer getChannel fix (openframeworks#6117)
  ofxGui: slider scrolling (openframeworks#6144)
  appveyor: fix ssl dependencies (openframeworks#6170)
  fix for xcode template file to allow PG to add frameworks and fix broken projects. closes openframeworks#6172
  workspace files for xcode template to enable legacy build in Xcode 10
  added camera and microphone permissions for mojave
  fix drawArrow internal matrix calculation (openframeworks#6164)
  remove i386 architecture (openframeworks#6159)
  Revert "Update main.cpp (openframeworks#6150)" (openframeworks#6160)
  Update main.cpp (openframeworks#6150)
  fixes xcode template to not have OF as a dependcy but as a pre-build script. related to openframeworks#6139
  ofCamera with ortho enabled will respect a lensOffset by translating the projection matrix (openframeworks#6138)
  ofXml: add clear method which clears the xml doc
  Bugfix vs project template (pt.2) (openframeworks#6130)
  ...

# Conflicts:
#	libs/openFrameworks/app/ofAppGLFWWindow.cpp
@stephanschulz
Copy link

I am on macOS 10.14 Mojave with OF 0.10.1 on a 2018 Mac mini.
when using crontab to open my OF app that uses a Logitech c920 usb camera and the ofxUVC camera controller the UVC connection does not get established. All works fine when manually opening it.
I guess it has todo with the sandboxing and hardening stuff?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants