luke-cha / ios-screen-mirror

ios-screen-mirror
MIT License
57 stars 9 forks source link

Get Error when running "go get" #3

Closed mhaqqiw closed 11 months ago

mhaqqiw commented 3 years ago

cgo-gcc-prolog:49:2: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
/usr/local/Cellar/ffmpeg/4.4_2/include/libavcodec/packet.h:487:1: note: 'av_init_packet' has been explicitly marked deprecated here
/usr/local/Cellar/ffmpeg/4.4_2/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
jagdish24 commented 2 years ago

@mhaqqiw have you receive any solution for it?

jjunghyup commented 2 years ago

What is the working environment like? Is it mac os m1?

luke-cha commented 2 years ago

The library used in this project, github.com/3d0c/gmf, is looking at a specific version of ffmpeg. If you look at the following link, you can check the version that the latest version of gmf is looking at. Update gmf to the latest version, and adjust the ffmpeg version accordingly.