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

FFmpeg build not successfully #14

Closed
crdesai25 opened this issue May 24, 2018 · 5 comments
Closed

FFmpeg build not successfully #14

crdesai25 opened this issue May 24, 2018 · 5 comments

Comments

@crdesai25
Copy link

try to build ffmpeg with gt-transition buy got following error.
Undefined symbols for architecture x86_64: "_glfwCreateWindow", referenced from: _setup_gl in libavfilter.a(vf_gltransition.o) "_glfwDestroyWindow", referenced from: _uninit in libavfilter.a(vf_gltransition.o) "_glfwInit", referenced from: _init in libavfilter.a(vf_gltransition.o) "_glfwMakeContextCurrent", referenced from: _setup_gl in libavfilter.a(vf_gltransition.o) _blend_frame in libavfilter.a(vf_gltransition.o) "_glfwWindowHint", referenced from: _setup_gl in libavfilter.a(vf_gltransition.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [ffmpeg_g] Error 1

want to make a build for mac OS and android.
Is there any better way to make a build or get inbuild gl-transition ffmpeg?

@transitive-bullshit
Copy link
Owner

The error looks like glfw isn't being found. Make sure it's installed properly.

Mac OS should build fine as it's been thoroughly tested. Not sure about Android.

@turengege
Copy link
Contributor

@crdesai25
This commit may help about Android. #16

@NCPatrick
Copy link

NCPatrick commented Jun 15, 2018

I'm having a similar issue in 'make' on High Sierra 10.13.5:

Undefined symbols for architecture x86_64:
  "_glfwCreateWindow", referenced from:
      _setup_gl in libavfilter.a(vf_gltransition.o)
  "_glfwDestroyWindow", referenced from:
      _uninit in libavfilter.a(vf_gltransition.o)
  "_glfwInit", referenced from:
      _init in libavfilter.a(vf_gltransition.o)
  "_glfwMakeContextCurrent", referenced from:
      _setup_gl in libavfilter.a(vf_gltransition.o)
      _blend_frame in libavfilter.a(vf_gltransition.o)
  "_glfwWindowHint", referenced from:
      _setup_gl in libavfilter.a(vf_gltransition.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [ffmpeg_g] Error 1

I know glfw is installed correctly.

==> Reinstalling glfw
==> Downloading https://homebrew.bintray.com/bottles/glfw-3.2.1.high_sierra.bottle.tar.gz
Already downloaded: /Users/patrickbrown/Library/Caches/Homebrew/glfw-3.2.1.high_sierra.bottle.tar.gz
==> Pouring glfw-3.2.1.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/glfw/3.2.1: 14 files, 286.3KB

This is from the configure file:

385 --extra-ldsoflags=ELDFLAGS add ELDFLAGS to LDSOFLAGS [$LDSOFLAGS]
386 --extra-libs=ELIBS add ELIBS [$ELIBS]
387 --extra-libs='-lGLEW -lglfw'
388 --extra-version=STRING version string suffix []

I'm manually editing the file to insert the line --extra-libs='-lGLEW -lglfw'.

@turengege
Copy link
Contributor

turengege commented Jun 16, 2018

@NCPatrick
hi
please use --extra-libs='-lGLEW -lglfw'. when ./configure.
edit the configure file at that line only affect the output of ./configure --help

@divysoni3
Copy link

@crdesai25 @NCPatrick have u got the solution?

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

5 participants