Closed BlackEdder closed 8 years ago
How easy would it be to check if the library is actually there and if the name matches, on travis?
I added to the travis script:
find / -name libgdk-3.0.dylib
and it does seem to be installed
/usr/local/Cellar/gtk+3/3.20.6/lib/libgdk-3.0.dylib
/usr/local/lib/libgdk-3.0.dylib
Can you check if 'DYLD_FALLBACK_LIBRARY_PATH' contains "/usr/local/lib" as one of the paths. according to man dyld it should be one of the default paths.
Calling
echo $DYLD_FALLBACK_LIBRARY_PATH
showed that the variable was empty. Next I tried exporting it in .travis.yml
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/usr/local/lib; fi
but I still got the same error
After specifying DYLD_LIBRARY_PATH I got further, but ended up with the following error:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Expected in: /usr/local/lib/libJPEG.dylib
in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Program exited with code -5
This seems related to this: http://stackoverflow.com/questions/17643509/conflict-between-dynamic-linking-priority-in-osx
But I don't understand OSX linking well enough to have found a solution (yet).
Nevermind ignore the previous post, because after solving the libJPEG error I am back at my original problem, i.e. setting DYLD_LIBRARY_PATH to /usr/local/lib only introduced new errors/did not solve the existing error at all.
I'm not all that familiar with OSX my self. I'll see if i can find out something more.
Thanks! I am not that familiar with OSX myself. Mostly use travis to create prebuild binaries for releases. I tried quite a lot of variants to travis, but nothing seemed to work. Without access to an OSX machine it will be hard for me to solve :(.
Builds are working again. Not sure if you fixed it, or if it was a problem on travis' end, but happy to close this issue :)
I didn't do anything, i am happy that it's working again.
I use gtk-d 3.3.1 in my ggplotd library and test OSX support through travis. This used to work, but lately I get the following error when running the test suite:
gtk is installed using brew and does not throw any errors:
Any pointers on what might be the problem?