Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building against a static binary #41

Closed
msmithng opened this issue Dec 6, 2014 · 1 comment
Closed

building against a static binary #41

msmithng opened this issue Dec 6, 2014 · 1 comment

Comments

@msmithng
Copy link

msmithng commented Dec 6, 2014

I'm currently working with a statically linked binary of ffmpeg and I'm attempting to make bmdtools and I'm getting hit with an odd linker issue on ubuntu 14.04 LTS. Are there any known issues with compiling against a static build or am I just not correctly pointing to the dependency locations?

/root/sandbox/bmdtools # export PKG_CONFIG_PATH="/root/sandbox/ffmpeg-build/bin/lib/pkgconfig"
/root/sandbox/bmdtools # PATH="$PATH:/root/sandbox/ffmpeg-build/lib/"
/root/sandbox/bmdtools # make SDK_PATH="/root/sandbox/inputs/DeckLink_SDK/Linux/include/"
g++ -o bmdcapture bmdcapture.cpp modes.cpp /root/sandbox/inputs/DeckLink_SDK/Linux/include//DeckLinkAPIDispatch.cpp `pkg-config --cflags libavcodec libavformat libswscale libavutil` -D__STDC_CONSTANT_MACROS -Wno-multichar -I /root/sandbox/inputs/DeckLink_SDK/Linux/include/ -fno-rtti -g `pkg-config --libs libavcodec libavformat libswscale libavutil` -lm -ldl -lpthread
bmdcapture.cpp: In function ‘int main(int, char**)’:
bmdcapture.cpp:746:42: warning: too many arguments for format [-Wformat-extra-args]
                 "Please disable either\n");
                                          ^
/usr/bin/ld: cannot find -lx264
/usr/bin/ld: cannot find -lvpx
/usr/bin/ld: cannot find -lfdk-aac
collect2: error: ld returned 1 exit status
make: *** [bmdcapture] Error 1

I'm using an up to date branch

root@encoder1:/root/sandbox/bmdtools# git log -n 1
commit 43116a8c38ec2ffb3358b19c7a10af3f16e8d34a
Author: Luca Barbato <lu_zero@gentoo.org>
Date:   Mon Nov 24 15:29:32 2014 +0100
    bmdcapture: Add a wallclock option

    Useful to measure the pipeline delay.

... and n2.4.2 ffmpeg.

  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100

I have successfully installed this in the past on CentOS 6.4 without any issue the only difference being that the packages in question were built and installed as per the dictates on the internet.

@lu-zero
Copy link
Owner

lu-zero commented Dec 6, 2014

You are using FFmpeg, it is not supported. Please use a recent version of Libav.

@lu-zero lu-zero closed this as completed Dec 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants