Code Monkey home page Code Monkey logo

Comments (3)

aynakeya avatar aynakeya commented on July 1, 2024

Hi!
Can you check if brew has installed the mpv header files?

also, it is possible that brew install header files in a different location.

in that case. you need to manually set CFLAGS

related links: link1, AynaLivePlayer/AynaLivePlayer#4

from go-mpv.

c1ngular avatar c1ngular commented on July 1, 2024

@aynakeya

still complains :

/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status 1 ld: library not found for -lmpv clang: error: linker command failed with exit code 1 (use -v to see invocation)

after i set the ENV :

export GO_LDFLAGS="-L/opt/homebrew/Cellar/mpv/0.35.1_2/lib"
export CGO_CFLAGS="-I/opt/homebrew/Cellar/mpv/0.35.1_2/include"

quick question : why not use pkg-config ? it is already shipped with .

thanks

from go-mpv.

aynakeya avatar aynakeya commented on July 1, 2024

Yes, you can indeed use pkg-config to retrieve the necessary CFLAGS and library paths. The reason I didn't using pkg-config is that Windows systems typically do not have pkg-config preinstalled.

for you problem. can you double check if those flag appear in go env

Screenshot_20230626_095147

from go-mpv.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.