Building for OSX using XCode 7 error(libz.dylib not found)

398 views
Skip to first unread message

johnl...@gmail.com

unread,
Jan 16, 2016, 1:00:39 PM1/16/16
to skia-discuss

Hi,

I'm trying to build SKIA for MAC OSX, but I'm stuck with the following error:
error: no such file or directory: '/Applications/Xcode.app/
Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.dylib


I have XCode 7 on my machine.

Mike Klein

unread,
Jan 17, 2016, 4:38:54 PM1/17/16
to skia-discuss
Hmm.  That's funny.  I can build Skia on my Mac with the toolchain provided by XCode 7.0.1.  I also do not have /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libz.dylib.  I do have several suspiciously simliar looking .tbd files (libz.1.1.3.tbd, libz.1.2.5.tbd, libz.1.tbd, libz.tbd, etc.)  Looking at one of the files, it looks like a .tbd file is instructions for some tool to install the corresponding .dylib file into /usr/lib.

I think my (working) build is picking up libz.dylib from /usr/lib (where I have all the .dylib versions of those .tbd files from the other directory).  What do you have under /usr/lib?  I vaguely recall there may be some Install-Command-Line-Tools step you need to do in the XCode UI before all these system libraries are put into place.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages