adrg / libvlc-go

Handcrafted Go bindings for libVLC and high-level media player interface
https://pkg.go.dev/github.com/adrg/libvlc-go/v3
MIT License
437 stars 50 forks source link

osx library not found, but installed #12

Closed virskor closed 4 years ago

virskor commented 6 years ago

ld: library not found for -lvlc clang: error: linker command failed with exit code 1 (use -v to see invocation)

adrg commented 6 years ago

Can someone using the library on OS X help with this issue?

gaurav-gogia commented 5 years ago

I had similar error so something like this should work:

  1. Make sure MacOSX.sdk exists by using following command ls SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

  2. If its there then cool go for next command export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

If its not there then you'll need to install xcode-command-line-tools

I hope this helps

adrg commented 4 years ago

Closing this issue. Let's discuss all macOS installation issues in https://github.com/adrg/libvlc-go/issues/13.