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

Questions about dependencies #47

Open
carlca opened this issue Oct 24, 2017 · 6 comments
Open

Questions about dependencies #47

carlca opened this issue Oct 24, 2017 · 6 comments

Comments

@carlca
Copy link

carlca commented Oct 24, 2017

Hello, I am following the page at https://gomatcha.io/guide/installation/ which asks for these packages to be installed:

Go 1.8
Xcode 8.3
Android Studio 2.3
NDK
Protobuf 3.3 - ObjC and Java

I am confused about how to handle the Protobuf 3.3 packages. After googling Protobuf I discovered that there are separate .zip file downloads for Objective C and Java. I duly downloaded these zip files but it is not clear how to install them or how to proceed.

A folder comparison utility reveals that the 2 zip files are probably 98% identical - surely they are not intended to be installed separately!

I appreciate that you are not responsible for the installation of other packages, but where those packages are so poorly documented, it would be useful to have some clue offered.

The NDK package was a struggle to install as well. I eventually found a page with, as it transpired, out of date instructions which told me to use homebrew to install NDK. After posting a question to Homebrew's forum I got an answer which let me proceed.

To recap, then, how do I install Protobuf 3.3, so that I can actually start using Matcha?

@carlca
Copy link
Author

carlca commented Oct 24, 2017

I notice that it's possible to run brew install protobuf and indeed brew install protobuf-c. Can I use a similar approach for the purposes of running GoMatcha?

@overcyn
Copy link
Contributor

overcyn commented Oct 24, 2017

You actually don't need to install protobuf to run Matcha, its only needed when building "custom views", and even then you could substitute in JSON. I don't think the NDK from Homebrew will work. You should install it through Android Studio > SDK Manager > SDK Tools > NDK.

@overcyn
Copy link
Contributor

overcyn commented Oct 24, 2017

Also its not documented but it expects the $ANDROID_HOME environmental variable to point to the the android sdk, usually this is ~/Library/Android/sdk/.

@carlca
Copy link
Author

carlca commented Oct 24, 2017

Cool! Thanks for the reply. I'll try to complete the installation in the morning when I'm not so tired and I have some coffee inside of me!

@carlca
Copy link
Author

carlca commented Oct 25, 2017

OK. I'm trying to get going with Android Studio. I ran launchctl setenv GOPATH $GOPATH followed by open -a /Applications/Android\ Studio.app $GOPATH/src/gomatcha.io/matcha/examples/android-app/SampleApp
This gave me the following screen:
screen shot 2017-10-25 at 20 08 22

I then pressed OK and received the following error message:
screen shot 2017-10-25 at 20 10 15

Any ideas?

@carlca
Copy link
Author

carlca commented Oct 25, 2017

Clicking the Show Log link didn't do anything...

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