gomatcha / matcha

Build native mobile apps in Go.
https://gomatcha.io/
Apache License 2.0
3.49k stars 162 forks source link

Questions about dependencies #47

Open carlca opened 7 years ago

carlca commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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