Repository navigation
Closed
Labels
Description
Trying to build latest master branch on macOS 10.12.1. I followed the build instructions in the wiki.
Scripts/build.py build release returns the following:
mvers: 0.15.2178 dev
vers: 0.15.2178
Setting CFBundleShortVersionString of project GitX to:
0.15.2178 dev.
Updating CFBundleShortVersionString in Info.plist(s)...
Updated CFBundleShortVersionString in "GitX.xcodeproj/../Resources/Info-gitx.plist" to 0.15.2178 dev
Updated CFBundleShortVersionString in "GitX.xcodeproj/../Resources/Info.plist" to 0.15.2178 dev
Setting version of project GitX to:
0.15.2178.
Also setting CFBundleVersion key (assuming it exists)
Updating CFBundleVersion in Info.plist(s)...
Updated CFBundleVersion in "GitX.xcodeproj/../Resources/Info-gitx.plist" to 0.15.2178
Updated CFBundleVersion in "GitX.xcodeproj/../Resources/Info.plist" to 0.15.2178
** BUILD FAILED **
The following build commands failed:
Ld /Users/josh/src/vendor/gitx/build/Release/ObjectiveGit.framework/Versions/A/ObjectiveGit normal x86_64
(1 failure)
error: Command '['xcrun', 'xcodebuild', '-workspace', 'GitX.xcworkspace', '-scheme', 'GitX', '-configuration', 'Release', 'build', 'BUILD_DIR=/Users/josh/src/vendor/gitx/build']' returned non-zero exit status 65
Here is the output from the xcrun command:
...
=== BUILD TARGET ObjectiveGit-Mac OF PROJECT ObjectiveGitFramework WITH CONFIGURATION Release ===
Check dependencies
Ld /Users/josh/src/vendor/gitx/build/Release/ObjectiveGit.framework/Versions/A/ObjectiveGit normal x86_64
cd /Users/josh/src/vendor/gitx/External/objective-git
export MACOSX_DEPLOYMENT_TARGET=10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -L/Users/josh/src/vendor/gitx/build/Release -L. -LExternal -F/Users/josh/src/vendor/gitx/build/Release -filelist /Users/josh/Library/Developer/Xcode/DerivedData/GitX-heoqknppyoqkhpdywqqrxatdfhcf/Build/Intermediates/ObjectiveGitFramework.build/Release/ObjectiveGit-Mac.build/Objects-normal-asan/x86_64/ObjectiveGit.LinkFileList -install_name @rpath/ObjectiveGit.framework/ObjectiveGit -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/../Frameworks -mmacosx-version-min=10.8 -Xlinker -object_path_lto -Xlinker /Users/josh/Library/Developer/Xcode/DerivedData/GitX-heoqknppyoqkhpdywqqrxatdfhcf/Build/Intermediates/ObjectiveGitFramework.build/Release/ObjectiveGit-Mac.build/Objects-normal-asan/x86_64/ObjectiveGit_lto.o -fobjc-arc -fobjc-link-runtime -fapplication-extension -fsanitize=address -lgit2 -force_load External/libgit2.a /usr/local/lib/libssh2.a -lcrypto -lssl -lcurl -liconv -framework Cocoa -lz -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/josh/Library/Developer/Xcode/DerivedData/GitX-heoqknppyoqkhpdywqqrxatdfhcf/Build/Intermediates/ObjectiveGitFramework.build/Release/ObjectiveGit-Mac.build/Objects-normal-asan/x86_64/ObjectiveGit_dependency_info.dat -o /Users/josh/src/vendor/gitx/build/Release/ObjectiveGit.framework/Versions/A/ObjectiveGit
ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
...
ld: library not found for -lcrypto appears to be the culprit.
Thanks in advance.
Activity
tiennou commentedon Feb 24, 2017
It's missing dependencies for Objective-Git. Try running
./External/objective-git/script/bootstrap.andreif commentedon Feb 24, 2017
I had to nuke the repo directory and clone it again to resolve all issues. Made myself a shell script for the next time 😄
joshua commentedon Feb 24, 2017
I started over with a fresh clone and followed these instructions:
Still get the same result. I'll post the output of each step in another comment.
joshua commentedon Feb 24, 2017
git clone --recursive https://github.com/gitx/gitx.gitscript/bootstrapscript/update_libgit2Scripts/build.py build releaseupdate to current objective-git
ssp commentedon Feb 27, 2017
@joshua please try whether the build works for you with the current state now that #52 is in
joshua commentedon Mar 2, 2017
@ssp Started over with a fresh clone. Still no go. Same error:
ld: library not found for -lcrypto.Must be something with my local setup.
tiennou commentedon Mar 2, 2017
Can you try building only Objective-Git, using the workspace in
External/objective-git? This error means that it has been unable to find libcrypto, which is part of OpenSSL. Since this bundled with Objective-Git, I'm not sure what's happening in your case...Have you got OpenSSL brewed or not ? Is it linked in ? (it's supposed to be keg-only because conflicts).
joshua commentedon Mar 3, 2017
I finally fixed it.
OpenSSL was brewed and keg-only but I don't have homebrew installed to
/usr/local, so the symlinks tolibcrypto.aandlibssl.ain objective-git were invalid.https://github.com/libgit2/objective-git/tree/master/External