braitsch / ofxDatGui

Simple to use, fully customizable, high-resolution graphical user interface for openFrameworks

Home Page:https://braitsch.github.io/ofxDatGui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

my ofxDatGUI is visible on one macbook pro and not on another

batchku opened this issue · comments

I have a strange issue where my openframeworks app's GUI, made with the latest ofxDatGui, is visible and functional on one macbook pro (a "MacBook Pro (Retina, 15-inch, Early 2013)"), and not vislble on another one (a MacBook Pro (Retina, 15-inch, Late 2013). The former is running El Capitain, and the latter Sierra. On the laptop that isn't able to show the GUI, i see no text in my gui buttons/sliders. They do however continue to "work", i.e. clickong on them does things.

Anyone seen this before?

-ali

Not able to show the text in the gui or not able to show the gui at all? A common mistake is to not link the font file correctly which renders the text as solid rectangles. Can you post a screenshot? Also are you using the same version of OF on both machines?

Hello @braitsch ! Thank you for your response.

Both computers are running a built-application (not compiling in xcode). They are running the same application; i tried building the app with of 0.9.3 and also with 0.9.8.

Here is the screenshot on one laptop:
screenshot 2017-02-13 10 39 07

Here it is on the other laptop:
screen shot 2017-02-12 at 17 08 42

How can I make sure not to make the common missing font mistake when using standalone apps?
If you have any other advice also, i'd be grateful.

Regards,

Ali

it looks like it's missing the font.

usually this will be one of two things:

  1. you forgot to copy the font along
  2. you're running into gatekeeper issues

(1) to test this you can run sudo opensnoop | grep myAppName to see the full paths the application is trying to read/write. (run that command before starting the application!). opensnoop will tell you if the file was openend/not found/etc.
(2) to test this, you can start the app from the terminal (this will run your app without gatekeeper). something like ./myOfApp.app/Contents/MacOS/myOfApp. if it works fine when run from terminal, but not when you double click, then you have a gatekeeper problem.

either way, imho this is not related to ofxDatGui.

It does look like it's not seeing the ofxbraitsch assets folder which contains the fonts and icons used by the addon. If you right click on the app and select show package contents you should see this directory at Contents -> Resources -> data -> ofxbraitsch. If that directory does not exist inside of your compiled app try setting the ofDataPathRoot within your ofApp.cpp file and copying the ofxbraitsch folder into your app via a build phase script.

Inside ofApp.cpp:
ofSetDataPathRoot("../Resources/data");

Then select the build phases tab in your Xcode project and add the following line in the run scripts window:
cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources";

Closing as not reproducible and likely not related to ofxDatGui.