Skip to content
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

Build GitUp from command line #2

Open
giansalvo opened this issue Feb 13, 2019 · 8 comments
Open

Build GitUp from command line #2

giansalvo opened this issue Feb 13, 2019 · 8 comments

Comments

@giansalvo
Copy link

Hi,

I use GitUp and downloaded the source.
I'd like to create a package for MacPorts. Is it possible to build the app from command line (i.e. Makefile style) with Xcode? Which other tools are needed?

Thanks for your time.

@kfur
Copy link

kfur commented Mar 18, 2019

@giansalvo try xcodebuild

@giansalvo
Copy link
Author

@kfur thanks, I managed to run the build process.
Unfortunately it fails with this message

Users/giansalvo/Desktop/temp/GitUp/GitUpKit/Third-Party/libgit2/src/transports/ssh.c:11:10: fatal error: 'libssh2.h' file not found
#include <libssh2.h>
         ^~~~~~~~~~~
1 error generated.

The libssh2.h is located under /opt/local/include/libs.
How can I add this to the Xcode settings (possibly via command line)?

@kfur
Copy link

kfur commented Mar 18, 2019

@giansalvo i don't have such problem
libssh2.h must be located in GitUpKit/Third-Party/libssh2/MacOSX/include/libssh2.h

@giansalvo
Copy link
Author

giansalvo commented Mar 18, 2019

libssh2.h must be located in GitUpKit/Third-Party/libssh2/MacOSX/include/libssh2.h

Yes, that's correct. But still I have the compile error.
This is my environment:
Xcode Version 9.3.1
macOS High Sierra 10.13.4

I got the sources as suggested in https://github.com/git-up/GitUp
git clone --recursive https://github.com/git-up/GitUp.git

@giansalvo
Copy link
Author

I tried adding the path to the libssh2.h to Xcode settings but it doesn't find it.
Schermata 2019-03-19 alle 07 51 06

@kfur
Copy link

kfur commented Mar 27, 2019

@giansalvo did you do git submodule update --init --recursive ?

@giansalvo
Copy link
Author

did you do git submodule update --init --recursive ?

When/where shoud I give such command?

here's the sequence I used:

$git clone --recursive https://github.com/git-up/GitUp.git
$cd GitUp
$cd GitUp
$xcodebuild

@kfur
Copy link

kfur commented Mar 28, 2019

@giansalvo git clone --recursive already do git submodule update --init --recursive.
My assumption was wrong.
So maybe you were using old Xcode, or something else... I don't know

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

No branches or pull requests

2 participants