launching on os X

Simple problem; I've followed the screencast and the Quickstart ways of launching on Os X but no go. I'm on Os 10.8.2 Any tips?

Errors:
macminii7:~ martenblumen$ cd /Applications/appleseed/bin
macminii7:bin martenblumen$ run-appleseed.sh
-bash: run-appleseed.sh: command not found

macminii7:bin martenblumen$ ./appleseed.studio
dyld: Library not loaded: /opt/local/lib/libQtOpenGL.4.dylib
Referenced from: /Applications/appleseed/bin/./appleseed.studio
Reason: image not found
Trace/BPT trap: 5

Thanks!
Marty

Comments

Franz's picture

Re: launching on os X

Hey Marty,

Errors:
macminii7:~ martenblumen$ cd /Applications/appleseed/bin
macminii7:bin martenblumen$ run-appleseed.sh
-bash: run-appleseed.sh: command not found

Actually that should be:

./run-appleseed.sh

(I updated the Quick Start page accordingly.)

That being said, we have identified a problem with alpha-16 on Mac OS X (and possibly alpha-15 as well). If the command above doesn't work, we'll provide you with a fixed build.

Franz

Re: launching on os X

Thanks Franz.

A new build would be great. I'm getting:

macminii7:bin martenblumen$ ./run-appleseed.sh
-bash: ./run-appleseed.sh: No such file or directory

Thanks!
Marty

Franz's picture

Re: launching on os X

Hey Marty,

We didn't forget you!

macminii7:bin martenblumen$ ./run-appleseed.sh
-bash: ./run-appleseed.sh: No such file or directory

You probably need to do

chmod +x run-appleseed.sh

in the directory where run-appleseed.sh resides in order to mark it as executable (unlike .tar.gz files, zip files don't preserve file flags).

We will soon release a new version of appleseed (with many new features). Hopefully your experience with appleseed will be smoother with this new version.

Franz

Re: launching on os X

Cool - the next build sounds good ;)

I tried the chmod +x run-appleseed.sh but got this:
chmod +x run-appleseed.sh
chmod: run-appleseed.sh: No such file or directory

the bin directory doesn't have a .sh file:

Remote-Studio:bin martyblumen$ ls
QtCore.framework appleseed.studio
QtGui.framework libappleseed.dylib
QtOpenGL.framework libappleseed.shared.dylib
_appleseedpython.so maketiledexr
animatecamera normalizeprojectfile
appleseed.cli watch_folder.py

so I tried:

Remote-Studio:bin martyblumen$ chmod +x appleseed.studio
Remote-Studio:bin martyblumen$ ./appleseed.studio
dyld: Library not loaded: /opt/local/lib/libQtOpenGL.4.dylib
Referenced from: /Users/martyblumen/Downloads/appleseed/bin/./appleseed.studio
Reason: image not found
Trace/BPT trap: 5

Re: launching on os X

Got it all working now. Thanks!

Franz's picture

Re: launching on os X

Great!

Re: launching on os X

Hi there!

I'm trying to run the latest built version (r18) on OSX10.8 and I seem to get the same crash Martyb had.

Any idea?

./run-appleseed.sh
dyld: Library not loaded: /Applications/Qt/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/QtGui
Referenced from: /Users/exavi/Documents/appleseed/bin/QtOpenGL.framework/Versions/4/QtOpenGL
Reason: image not found
Trace/BPT trap

ps: in case this helps, run-appleseed.sh wasn't packaged with the download so I downloaded it from github, but I'd assume that file is just as good, just saying that in case it helps.

Re: launching on os X

exavi I am getting the same errors as you. However I don't even have a "run-appleseed.sh" file. I've tried running appleseed.studio, but get the error...

dyld: Library not loaded: /Applications/Qt/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/QtGui
Referenced from: /Users/jamiem/Downloads/appleseed/bin/QtOpenGL.framework/Versions/4/QtOpenGL
Reason: no suitable image found. Did find:
/Library/Frameworks/QtGui.framework/Versions/4/QtGui: no matching architecture in universal wrapper
Trace/BPT trap: 5

Any ideas on how to solve this? Appleseed looks very cool and I'm quite keen to try it!

Franz's picture

Re: launching on os X

Hey Jamie,

Thanks for your interest!

Let me sort this out and get back to you soon.

Franz

Franz's picture

Re: launching on os X

For some reason our packaging tools did not guarantee that run-appleseed.sh was included in the Mac OS X packages. I just pushed a fix for this issue; the Mac OS X packages for the next version of appleseed will include that file.

In the meantime, I suggest you download run-appleseed.sh (right-click on this link and save the file to the bin/ subdirectory of your appleseed installation), then open a Terminal window, navigate to bin/ and type:

chmod +x run-appleseed.sh
./run-appleseed.sh

Let me know if this works for you.

Franz

Re: launching on os X

Thanks for your fast response. I tried what you suggested and I still get the error...

dyld: Library not loaded: /Applications/Qt/Desktop/Qt/4.8.1/gcc/lib/QtGui.framework/Versions/4/QtGui
Referenced from: /Users/jamiem/Downloads/appleseed/bin/QtOpenGL.framework/Versions/4/QtOpenGL
Reason: no suitable image found. Did find:
/Library/Frameworks/QtGui.framework/Versions/4/QtGui: no matching architecture in universal wrapper
Trace/BPT trap: 5

I have the latest version of Qt installed, as well as the XCode command line tools.

Franz's picture

Re: launching on os X

Jamie,

Thanks for reporting the issue. I will check tonight and report back here.

Franz

Re: launching on os X

Thanks!!

Franz's picture

Re: launching on os X

Hi Jamie,

I was able to get my hands on a 64-bit Mac; I can confirm that the appleseed.studio binary (built, like the whole package, on Mac OS X 10.8) has dependencies with hard-coded paths which don't exist on your system. This is a consequence of us having moved from one machine to another when building the OS X packages.

We will properly address the issue in the next day or so, and we will release a new OS X package.

Thanks for your patience.

Franz

Franz's picture

Re: launching on os X

Hi Jamie,

We are investigating this issue more closely.

Can you tell me which exact version of Mac OS X you are running?

Franz

Re: launching on os X

HI Franz,
I'm using OSX 10.8.4 build 12E55

Franz's picture

Re: launching on os X

Thanks. This is exactly the same version of OS X as we are using to build appleseed.

Do you happen to have a version of the Qt libraries installed, for instance in /Applications/Qt? If so, which version is that exactly?

If that's Qt version 4.8, you could try to remove all the Qt related framework and shared libraries from the bin/ directory of appleseed and try again to run it.

Franz

Re: launching on os X

At /Applications/Qt I have version 5.1.0.

Removing the three Qt framework folders, then running run-appleseed.sh produces the following results...

dyld: Library not loaded: QtOpenGL.framework/Versions/4/QtOpenGL
Referenced from: /Users/jamiem/Downloads/appleseed/bin/appleseed.studio
Reason: no suitable image found. Did find:
/Library/Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL: no matching architecture in universal wrapper
Trace/BPT trap: 5

Franz's picture

Re: launching on os X

Ok, this is reassuring: appleseed.studio does look for QtOpenGL.framework in the current directory, that's good. However QtOpenGL itself has a dependency to QtGui, which it tries to load from /Applications/Qt instead of from the current directory.

The problem is quite clear now, thanks. We will try to fix it as soon as possible and will release a new OS X package for you to test.

Thanks again for your patience.

Franz

Franz's picture

Re: launching on os X

Hi Jamie,

We just built a new Mac OS X package. We fixed a few issues with the Qt libraries. Hopefully it will now work on your machine, otherwise we'll iterate a few more times until it does.

Here is the link: https://docs.google.com/file/d/0B5JRj3LWTYIRSzlaUGhsNVR2YTg/edit?usp=sha....

Let us know how this works for you.

Franz

Re: launching on os X

And now I get pretty pictures!!! Awesome. Thanks so much for helping out. Superb.

Franz's picture

Re: launching on os X

Oh, glad that it works! I'll update the main download links.

Franz

Re: launching on os X

Testing the latest and greatest, appleseed-1.1.0-alpha-20-0-g6b8a4c0-mac64-llvm5, it has the same QT issues as before on Os X 10.9.2

./run-appleseed.sh
dyld: Library not loaded: /usr/local/lib/QtGui.framework/Versions/4/QtGui
Referenced from: /Users/marty/Documents/appleseed/bin/appleseed.studio
Reason: image not found

Though it will open if you install QT 4.8 and remove the QT related items from the bin/

Franz's picture

Re: launching on os X

Hey Marty,

I'm afraid we'll have to go again through some investigation steps if you don't mind. Things appear good on our side but we're probably overlooking something simple.

Would you mind running this command in a Terminal inside the bin/ directory of your appleseed alpha-20 installation and post the output?

otool -L appleseed.studio

Thanks,

Franz

Re: launching on os X

Hey Franz, no probs:

otool -L appleseed.studio
appleseed.studio:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 20.0.0)
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 8.0.0)
libappleseed.dylib (compatibility version 0.0.0, current version 0.0.0)
libappleseed.shared.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.8.0, current version 4.8.6)
/usr/local/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.6)
/usr/local/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.6)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

Franz's picture

Re: launching on os X

Thanks. Two questions:

  1. Was that with the Qt frameworks still present in bin/, or without?
  2. Do this file exist on your system? /usr/local/lib/QtGui.framework/Versions/4/QtGui

Franz

Re: launching on os X

  1. without
  2. no

Rad!

Franz's picture

Re: launching on os X

Thanks.

Could you try putting the frameworks back in bin/, running again the otool command and posting the output here?

Franz

Re: launching on os X

EDIT: A new installation

otool -L appleseed.studio
appleseed.studio:
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 20.0.0)
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 8.0.0)
libappleseed.dylib (compatibility version 0.0.0, current version 0.0.0)
libappleseed.shared.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.8.0, current version 4.8.6)
/usr/local/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.8.0, current version 4.8.6)
/usr/local/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.6)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

Franz's picture

Re: launching on os X

This explains the problem. I'll follow up with you as soon as we found out the cause of the problem.

Thanks for the help.

Franz

Franz's picture

Re: launching on os X

Hey Marty,

Thanks for reporting this issue. It seems like you have a workaround for now so this is good. I'm checking this up with our OS X guys right now, will get back to you soon.

Franz