notedit / media-server-go

WebRTC media server for go
GNU General Public License v2.0
540 stars 119 forks source link

installing on ubuntu 20.04 problems #64

Open Leeaandrob opened 4 years ago

Leeaandrob commented 4 years ago

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

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 media-server-go@2.0.1. Rename your media-server-go folder with media-server-go@2.0.1 and you are done.

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

Leeaandrob commented 4 years ago

thanks, i will try and return here.

Em dom., 31 de mai. de 2020 às 02:34, Imtiyaz Shaikh < notifications@github.com> escreveu:

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
  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 directory 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, support it is media-server-go@2.0.1. Rename you media-server-go folder with media-server-go@2.0.1 and you are done.

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/notedit/media-server-go/issues/64#issuecomment-636425211, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABL5ZOA54M77HIADS6GBWE3RUHT5JANCNFSM4NMMFEPQ .

-- +55 21 98590-0511

notedit commented 4 years ago

there is a doc https://github.com/notedit/media-server-go#install