marsupial
The latest OS X build for 2016.5 includes a dependency on libc++ only available in 10.11.  Recompiling against 10.9 SDK and/or 10.9 as deployment target in X-Code should take care of this.
Reply 0 0
pshipkov
I am hitting a specific bug with clang (still too immature i guess) and as a workaround am compiling with gcc4.7.4 (custom build).
Apple is drifting further and further away from where I want to be.
Sigh.
Reply 0 0
pshipkov
Decided to further clarify this.
Check the readme.txt for details.
There are two libs specific to gcc4.7.4 that are not available on vanilla OSX10.11 and Maya installation.
They are included in the SOuP archive.
Copy them to the specified location and that should do it.

Let me know if there are other issues you are facing.
Thanks.
Reply 0 0
marsupial
Ugh. That solution is ugly!
Rather than installing into the Maya folder, which might be impossible for some users, and also could cause a lot of problems as Maya and any other external plugin would also use you custom c++ lib (if I'm remembering how dyld does name resolution properly).

A mildly better solution would be to use @loader_path/libstdc++.6.dylib, which allows  the library to sit next to the plugin and only load if the plugin is actually being used.



install_name_tool -change @executable_path/libstdc++.6.dylib @loader_path/libstdc++.6.dylib SOuP.bundle


As it's still pretty ugly, and Maya's already unstable enough: if you'd like any help getting around the clang bug, I'd be happy to donate some time.

Reply 0 0
pshipkov
You are more than welcome to help with whatever you can.

------------

I don't think these two files will interfere with stuff linked against standard Maya/OSX libs. But i hear you and will repath the libs.

------------

The bug i am hitting is exactly this:
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2012-September/240721.html
I tried multiple flags to relax the more strict syntax rules in clang, but without success.
There are few more reports online about it. Run a search.
Didn't have time to look at what code changes in the TNT library may remedy the situation. It can be something very simple ... or not so. One day ...

Another problem was with OMP.
I hit a snag of getting clang to understand the iomp lib that ships with Maya.
Had to brew/macport a third party omp lib that also had to be included in the SOuP build. That further demoralized me. :)

At the end i went with the tried and working gcc, especially given the fact that in the couple of tests i did, clang does not show any performance advantage over gcc, icc, or msc++.

At some point later, when time allows it, i will get back to this and resolve it.
Reply 0 0
marsupial
Not a clang bug for TNT, the code isn't const correct.
Line 64 and 123 of tnt_array1d.h, just make the second argument 'const T *a'


Without trying to compile the sources myself, probably can't help much with OMP.  Clang from Xcode 6.1.1 (clang-600.0.54) is supposedly what Autodesk is compiling with...
Reply 0 0
pshipkov
I actually tried that already among other things, but couldn't get it to work. That's why i left it there to marinate until i have time to take a closer look.
clang-703.0.31 here.

Did you get it to compile properly on your side ?
Reply 0 0
marsupial
Compiled a test with tnt_sparse_matrix_csr.h with changes worked. But I'm on clang-503.0.40, and your sources obviously weren't what I was compiling.

For the OMP issue, as Xcode is supposedly a self-contained bundle, you might be able to run the suggested version off the disk-image.
Reply 0 0
elvis75k
could not load the latest build (2016_06_01) on osx 10.11.5
previous one (2016_05_03) is working..

# Error: dlopen(/Users/elvis75k/Library/Preferences/Autodesk/maya/2016.5/plug-ins/SOuP.bundle, 1): Symbol not found: __ZNSt8__detail12__prime_listE
Referenced from: /Users/elvis75k/Library/Preferences/Autodesk/maya/2016.5/plug-ins/SOuP.bundle
Expected in: /usr/lib/libstdc++.6.dylib
in /Users/elvis75k/Library/Preferences/Autodesk/maya/2016.5/plug-ins/SOuP.bundle (SOuP) #

Reply 0 0
indrema
I've some error on last SoUP version and OS X 10.11:

// Error: line 1: dlopen(/Users/indrema/Library/Preferences/Autodesk/maya/2016/plug-ins/SOuP.bundle, 1): Symbol not found: __ZNSt8__detail12__prime_listE
  Referenced from: /Users/indrema/Library/Preferences/Autodesk/maya/2016/plug-ins/SOuP.bundle
  Expected in: /usr/lib/libstdc++.6.dylib
 in /Users/indrema/Library/Preferences/Autodesk/maya/2016/plug-ins/SOuP.bundle (SOuP) // 

I've install the library.
Reply 0 0
pshipkov
This is fixed now.
Download and try again.
The fix is according to what marsupial suggested.
The .dylib files are located next to the soup plugin one and no additional work is needed.
Reply 0 0
indrema
TNX, work well!
Reply 0 0
Reply