Skip to content

Compiling libgit2 with libssh2 for iOS #250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 14, 2013
Merged

Conversation

isaac
Copy link
Contributor

@isaac isaac commented Sep 6, 2013

I've got this working but it does introduce some more dependencies:

  1. libssh2: git://git.libssh2.org/libssh2.git
  2. autoconf: git://git.sv.gnu.org/autoconf
  3. automake: git://git.savannah.gnu.org/automake.git

Should I go ahead and open a pull request that includes these dependencies as submodules?

@isaac
Copy link
Contributor Author

isaac commented Sep 5, 2013

One last dependency - libtool: git://git.savannah.gnu.org/libtool.git

@jspahrsummers
Copy link
Contributor

Dependencies that must be built for iOS should happen in ObjectiveGit's build process. Dependencies that are built for OS X, and simply needed to build, should be installed via Homebrew and documented in the README.

@isaac
Copy link
Contributor Author

isaac commented Sep 6, 2013

@jspahrsummers - ok that makes more sense than including everything as submodules :)

Does that commit look ok?


To compile [libgit2] with [libssh2] you need to install the following dependencies via [Homebrew]:

Mac OS X: `$ brew install libssh2`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is true when building for OS X, since there's already a prebuilt OpenSSL that we can link against.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jspahrsummers - are you sure about this? I couldn't find libssh2 on Mac OS X 10.8.4 - I had to install it via homebrew to get it to work with script/update_libgit2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I was thinking of OpenSSL. I guess this is a different thing. :\

@jspahrsummers
Copy link
Contributor

The lack of indentation in this shell script makes it really hard to read. Can you please fix that?

Also, we're starting to get a lot of noise in the repository's top-level folder. Can we move all the dependencies into an "External" folder?

@isaac
Copy link
Contributor Author

isaac commented Sep 11, 2013

@jspahrsummers - just to clarify - you want to move all the dependencies (including submodules libgit2, openssl etc...) into a new External folder? (I presume you mean a new folder on the file system and not just a folder/group in Xcode)

@jspahrsummers
Copy link
Contributor

Correct. The on-disk structure is the first thing that people see when viewing objective-git on GitHub. We should keep it clean.

@isaac
Copy link
Contributor Author

isaac commented Sep 13, 2013

@jspahrsummers - I think that is everything - let me know if it looks ok.

@ghost ghost assigned jspahrsummers Sep 13, 2013
@jspahrsummers
Copy link
Contributor

Thanks! This change looks good, but I'm working on getting the dependencies correctly installed in our CI setup before merging this.

jspahrsummers added a commit that referenced this pull request Sep 14, 2013
Compiling libgit2 with libssh2 for iOS
@jspahrsummers jspahrsummers merged commit c6fab21 into libgit2:master Sep 14, 2013
phatblat pushed a commit to phatblat/objective-git that referenced this pull request Sep 13, 2014
Compiling libgit2 with libssh2 for iOS
@jspahrsummers jspahrsummers removed their assignment May 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants