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 does not work #17

Closed
8cH9azbsFifZ opened this issue May 14, 2019 · 4 comments
Closed

Build does not work #17

8cH9azbsFifZ opened this issue May 14, 2019 · 4 comments

Comments

@8cH9azbsFifZ
Copy link

$ make build

protoc --proto_path=./icd --gofast_out=./sb_audio ./icd/audio.proto
protoc --proto_path=./icd --micro_out=./sb_audio ./icd/audio.proto
protoc-gen-micro: program not found or is not executable
--micro_out: protoc-gen-micro: Plugin failed with status code 1.
make: *** [build] Error 1

dh1tw added a commit that referenced this issue May 14, 2019
- Added protoc-gen-micro to makefile.
- Create automatically a source file.
@dh1tw
Copy link
Owner

dh1tw commented May 14, 2019

Indeed, the protoc-gen-micro package was missing. I updated the makefile and the build instructions in the wiki. Now you should be able to build remoteAudio.

You will have to execute again
$ make install-deps to install the missing library.

@8cH9azbsFifZ
Copy link
Author

One step further, but still build fails with:

source $HOME/protobuf/bin/protobufrc
No such file or directory

And
make build protoc --proto_path=./icd --gofast_out=./sb_audio ./icd/audio.proto protoc-gen-gofast: program not found or is not executable --gofast_out: protoc-gen-gofast: Plugin failed with status code 1.

@dh1tw
Copy link
Owner

dh1tw commented May 15, 2019

have you updated the repo?
go get -u or git pull

Sorry, forgot to mention that I've added the generation of protobufrc to the ci/install-protobuf.sh script. But it won't install it since you already have protobuf installed.

Just add $HOME/protobuf/bin to $PATH manually.

export PATH=$PATH:$HOME/protobuf/bin

It's kinda strange that the protoc-gen-gofast is not found. This is actually installed with the make install-deps command. Have you added these two lines to your $HOME/.profile?

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin

after adding you have to reload .profile by either logging out & in again or with the command source $HOME/.profile

@dh1tw
Copy link
Owner

dh1tw commented Nov 14, 2019

I have updated the build scripts and fixed the dependencies with go modules. You should now be able to compile remoteAudio with go 1.13 without any problems. If you don't want to compile remoteAudio you can download one of the freshly baked binaries of version 0.4.0 from the releases page

@dh1tw dh1tw closed this as completed Nov 14, 2019
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