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

installing on ubuntu 20.04 problems #64

Open
Leeaandrob opened this issue May 27, 2020 · 3 comments
Open

installing on ubuntu 20.04 problems #64

Leeaandrob opened this issue May 27, 2020 · 3 comments

Comments

@Leeaandrob
Copy link

I did the make but when i try to do the go install i receive the follow error

~/Projects/webrtc/media-server-go (master)
$  go install
# github.com/notedit/media-server-go/wrapper
In file included from ../media-server/include/media.h:9,
                 from mediaserver_wrap.cxx:355:
wrapper/../media-server/ext/libdatachannels/src/internal/Buffer.h: In static member function ‘static Buffer&& Buffer::Wrap(uint8_t*, size_t)’:
wrapper/../media-server/ext/libdatachannels/src/internal/Buffer.h:148:20: warning: reference to local variable ‘buffer’ returned [-Wreturn-local-addr]
  148 |   return std::move(buffer);
      |                    ^~~~~~
wrapper/../media-server/ext/libdatachannels/src/internal/Buffer.h:142:10: note: declared here
  142 |   Buffer buffer;
      |          ^~~~~~
~/Projects/webrtc/media-server-go (master)
@imtiyazs
Copy link

imtiyazs commented May 31, 2020

Well, no idea about the issue. But i can tell you another way to install it. I have been working on this library for a month now on linux and mac.

Suppose, your GOPATH is /user/go where you have pkg,bin,src.

  1. Go to /user/go/bin/github.com
  2. Create a directory notedit & cd notedit
  3. git clone the media-server-go project with submodules
  4. cd media-server-go
  5. make

Done. No need to install. Just use it directly in your code now..

If you are using Go Mod, follow the same procedure inside GO/pkg/mod/github.com/notedit.
Check version in mod file, suppose it is [email protected].
Rename your media-server-go folder with [email protected] and you are done.

I have been trying these hacks since the owner changed the installation procedure in previous month.

@Leeaandrob
Copy link
Author

Leeaandrob commented May 31, 2020 via email

@notedit
Copy link
Owner

notedit commented Jun 1, 2020

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

3 participants