AdaCore gnatstudio builds but won't run - macos

Mac mini (2018)
OSX 10.15.5
XCode 11.5
GNAT 2020
Miniconda environment python 3.7.7
I have built gnatstudio from https://github.com/AdaCore/gps-master.
However, the command gnatstudio/obj/gnatstudio fails with:
dyld: Library not loaded: /gnatmail/sandbox/a2c2/x86_64-darwin/gcc-c/pkg/lib/libstdc++.6.dylib
Referenced from: /System/Volumes/Data/Applications_Packages/gps-master/gnatstudio/obj/gnatstudio
Reason: image not found
zsh: abort gnatstudio/obj/gnatstudio
I can find no reference to /gnatmail/sandbox/a2c2/x86_64-darwin/gcc-c/pkg/lib/libstdc++.6.dylib in my gps build instructions; not in any Makefile or gpr.
I have found libstdc++.6.dylib in /opt/GNAT/2020/lib, /opt/GNAT/2019/lib/gps and a few other less relevant locations.

Related

macOS cmake based project backward compatibility

I've got a CMake based project that that compiles in MacOS Monterey and produces an application and its dependency dynamic library (dylib file)
When trying to run it macOS bigSur I get the following error :
dyld: Symbol not found: __ZTTNSt3__119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
Referenced from: /Applications/myapp.app/Contents/MacOS/../Frameworks/libMylib.dylib
Expected in: /usr/lib/libc++.1.dylib
in /Applications/myapp.app/Contents/MacOS/../Frameworks/libMylib.dylib
Abort trap: 6
even tough I specifically used the following settings when building the library
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0" CACHE STRING "Minimum OS X deployment version" FORCE)
Perhaps anybody encountered similar behavior ? the only thing that's works for my is to build the target in BigSur machine.

dyld: Symbol not found: _clock_gettime after installing Golang

So, I recently downloaded Golang from this link:
https://golang.org/dl/go1.16.2.darwin-amd64.pkg
The installation was completed with no errors, but when I try running go version, this happens:
dyld: Symbol not found: _clock_gettime
Referenced from: /usr/local/go/bin/go
Expected in: flat namespace
Trace/BPT trap: 5
I'm running Mac OSX version 10.11.6
go1.16.2 needs an OS greater than MacOS 10.11.6 "OS X El Capitan" according to the golang download documents.
I installed go1.15.11 successfully on MacOS X version 10.11.6 .

MacOS 10.14.6 Library not loaded: #rpath/libIrrXMLd.dylib

When I ran a C++ application in XCode on MacOS 10.14 that uses OpenGL and Assimp, everything compiled, but I got this error
dyld: Library not loaded: #rpath/libIrrXMLd.dylib
Referenced from: /usr/local/lib/libassimpd.5.dylib
Reason: image not found
Program ended with exit code: 9
Searched on Google and seems like no one has had this problem before

Oculus Rift and Processing 2.0

I am trying to get the Oculus Rift working in processing.I am using a library called "SimpleOculusRift" created by the amazing Max Rheiner. However, whenever I run the example sketch I get this error:
dyld: lazy symbol binding failed: Symbol not found: ___sincos_stret
Referenced from: /Users/jasontibi/CalArts/Spring
2015/Processing/libraries/SimpleOculusRift/library/libSimpleOculusRift.jnilib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ___sincos_stret Referenced from:
/Users/jasontibi/CalArts/Spring
2015/Processing/libraries/SimpleOculusRift/library/libSimpleOculusRift.jnilib
Expected in: /usr/lib/libSystem.B.dylib
Could not run the sketch (Target VM failed to initialize). For more
information, read revisions.txt and Help → Troubleshooting.
I am running Mac OS 10.8.5
I am using Oculus Rift DK1
I am using the latest firmware
and I am on a 64bit intel core i7
Any idea whats happening?
The sketch just crashes and says that processing quit unexpectedly.
Thank you!
I just had to upgrade OSX to Yosemite. There was a file that the library used, that only worked in Yosemite because of some native plugin that comes with Yosemite.

pyside-rcc "dyld: Library not loaded:..."

I'm a python and Qt rookie and I have some problems running pyside-rcc (and pyrcc4). The problem is not the link to the executable but a library problem it seems. That I'm not a unix wizard, probably doesn't help either:)
When I run $ pyside-rcc i get the following error
dyld: Library not loaded: #rpath/lib/QtCore.framework/Versions/4/QtCore
Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyside-rcc
Reason: image not found
Trace/BPT trap: 5
For $ pyrcc4 the error is similar but not exactly the same:
dyld: Library not loaded: #rpath/lib/QtXml.framework/Versions/4/QtXml
Referenced from: /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/pyrcc4
Reason: image not found
Trace/BPT trap: 5
I'm running Mac OS X 10.9
I have Enthought Canopy (v.1.5.1) installed with the following
packages: Qt 4.8.5-10, PySide 1.2.2, PyQt 4.11.0-1
I have also installed Qt Creator (3.3.0) which came with Qt 5.4.0
To activate the Canopy python packages system wide I have the following line in mt .bash_profile
VIRTUAL_ENV_DISABLE_PROMPT=1 source /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/bin/activate
I have found a lot of posts with dyld: Library not loaded... errors but I can't find the right path to the Qt framework and thus, I'm stuck... Does anyone with Enthought Canopy have the same problem?
Thank you in advance, I appreciate any help.
Solved! I found a similar question here: http://qt-project.org/forums/viewthread/9024
The libraries (when installed through Canopy) is in /Users/[USERNAME]/Library/Enthought/Canopy_64bit/User/lib
Apparently they should be in /Library/Frameworks After copying them here it works...

Resources