Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

pkg-config issue #138

Open
flenoir opened this issue Nov 14, 2016 · 4 comments
Open

pkg-config issue #138

flenoir opened this issue Nov 14, 2016 · 4 comments
Labels

Comments

@flenoir
Copy link

flenoir commented Nov 14, 2016

Hi,

when i try to clone and start the repository using "go get github.com/snickers/snickers"

i get a pkg-config issue telling me that all the packages from ffmpeg are not found ( libavutil, libavformat, etc....)

what should be done to solve this issue ?

Thank you

Best regards

@flavioribeiro
Copy link
Member

hey @flenoir I'm afraid you don't have ffmpeg installed with --enable-shared config. Can you follow the steps on https://github.com/snickers/snickers#setting-up or just take a look at the dockerfile?

@flenoir
Copy link
Author

flenoir commented Nov 15, 2016

Hi Flavio,

Thank you for your reply.
So i recomplied ffmpeg with enable-shared.

the ffmpeg command returns now :


ffmpeg version N-82471-g0edd569 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.2.1 (Ubuntu 5.2.1-22ubuntu2) 20151010
  configuration: --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-gpl --enable-libtheora --enable-zlib --enable-shared --enable-libx264 --enable-nonfree --enable-version3 --enable-libschroedinger --enable-avfilter --enable-libspeex --enable-libopenjpeg --enable-libgsm --enable-postproc --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-ffplay --enable-pthreads --prefix=/usr/local --enable-x11grab --enable-runtime-cpudetect --enable-bzlib --enable-libdc1394
  libavutil      55. 40.100 / 55. 40.100
  libavcodec     57. 66.103 / 57. 66.103
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 67.100 /  6. 67.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

i ran "make build" but i now have another error in the compilation :

../../3d0c/gmf/codecCtx.go:220: cannot use unsafe.Pointer(this.avCodecCtx) (type unsafe.Pointer) as type *C.struct_AVCodecContext in argument to _Cfunc_call_av_freep
Makefile:11: recipe for target 'build' failed
make: *** [build] Error 2
fabien@fabien-VirtualBox:~/work/src/github.com/snickers/snickers$ 

what did i missed ?

thank you

best regards

flenoir

@flavioribeiro
Copy link
Member

hmm @flenoir I'll try to reproduce it here. The FFmpeg I have is this:

ffmpeg version N-81113-g71167f7 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration:
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 50.100 / 57. 50.100
  libavformat    57. 44.100 / 57. 44.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 49.100 /  6. 49.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

It seems that it is older so maybe gmf is outdated with your version. I will get back to you soon.

@flavioribeiro
Copy link
Member

@flenoir I installed FFmpeg from HEAD today and had no issues. Do you mind following the dockerfile steps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants