transitive-bullshit / ffmpeg-gl-transition

FFmpeg filter for applying GLSL transitions between video streams.
650 stars 126 forks source link

How to build ffmpeg-gl-transition on Windown 10 #30

Open tidus30691nexus5 opened 5 years ago

tidus30691nexus5 commented 5 years ago

Am build without gl-transition filtter done work well.

am ready comment line:

define GL_TRANSITION_USING_EGL // remove this line if you don't want to use EGL

How to install glfw, GLEW and EGL When add gl-transition and build again have error:

C:\ffnew\ffmpeg_github_1\libavcodec/avcodec.h(4178): note: see declaration of 'avcodec_copy_context' LD ffmpeg_g.exe libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglBindTexture@8 referenced in function _apply_transition libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglDeleteTextures@8 referenced in function _uninit libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglDrawArrays@12 referenced in function _apply_transition libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglGenTextures@8 referenced in function _setup_tex libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglReadPixels@28 referenced in function _apply_transition libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglTexImage2D@36 referenced in function _apply_transition libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglTexParameteri@12 referenced in function _setup_tex libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglViewport@16 referenced in function _setup_gl libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol impglewInit@0 referenced in function _setup_gl libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol _glfwInit referenced in function _init libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol _glfwWindowHint referenced in function _setup_gl libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol _glfwCreateWindow referenced in function _setup_gl libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol _glfwDestroyWindow referenced in function _uninit libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol _glfwMakeContextCurrent referenced in function _setup_gl libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewActiveTexture libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewBindBuffer libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewBufferData libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewDeleteBuffers libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewGenBuffers libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewAttachShader libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewCompileShader libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewCreateProgram libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewCreateShader libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewDeleteProgram libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewEnableVertexAttribArray libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewGetAttribLocation libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewGetProgramiv libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewGetShaderiv libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewGetUniformLocation libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewIsShader libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewLinkProgram libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewShaderSource libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewUniform1f libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewUniform1i libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewUseProgram libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol imp__glewVertexAttribPointer libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol impglewExperimental ffmpeg_g.exe : fatal error LNK1120: 37 unresolved externals make: *** [Makefile:108: ffmpeg_g.exe] Error 96

Please help me build ffmpeg with fillter gl-transition on Windown

Thanks.

temp-out commented 5 years ago

Tell me, did you manage to build for Windows?

menincode commented 3 years ago

I also have the same issue. My environment:

Please show me how to fix this. Thanks for your attention. I’m looking forward to your reply.

fftools/cmdutils.c(2132): warning C4090: 'function': different 'const' qualifiers
fftools/cmdutils.c(2135): warning C4090: 'function': different 'const' qualifiers
fftools/cmdutils.c(2139): warning C4090: 'function': different 'const' qualifiers
CC      fftools/ffmpeg.o
ffmpeg.c
fftools/ffmpeg.c(359): warning C4267: 'function': conversion from 'size_t' to 'unsigned int', possible loss of data
fftools/ffmpeg.c(563): warning C4090: 'function': different 'const' qualifiers
fftools/ffmpeg.c(3252): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
fftools/ffmpeg.c(3696): warning C4090: 'function': different 'const' qualifiers
LD      ffmpeg_g.exe
LINK : warning LNK4044: unrecognized option '/lGLEW'; ignored
LINK : warning LNK4044: unrecognized option '/lglfw'; ignored
LINK : warning LNK4044: unrecognized option '/lGLEW'; ignored
LINK : warning LNK4044: unrecognized option '/lglfw'; ignored
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glBindTexture referenced in function apply_transition
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glDeleteTextures referenced in function uninit
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glDrawArrays referenced in function apply_transition
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glGenTextures referenced in function setup_tex
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glPixelStorei referenced in function apply_transition
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glReadPixels referenced in function apply_transition
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glTexImage2D referenced in function apply_transition
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glTexParameteri referenced in function setup_tex
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glViewport referenced in function setup_gl
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol __imp_glewInit referenced in function setup_gl
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol glfwInit referenced in function init
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol glfwWindowHint referenced in function setup_gl
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol glfwCreateWindow referenced in function setup_gl
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol glfwDestroyWindow referenced in function uninit
libavfilter.a(vf_gltransition.o) : error LNK2019: unresolved external symbol glfwMakeContextCurrent referenced in function setup_gl
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewActiveTexture
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewBindBuffer
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewBufferData
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewDeleteBuffers
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewGenBuffers
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewAttachShader
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewCompileShader
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewCreateProgram
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewCreateShader
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewDeleteProgram
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewEnableVertexAttribArray
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewGetAttribLocation
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewGetProgramiv
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewGetShaderiv
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewGetUniformLocation
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewIsShader
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewLinkProgram
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewShaderSource
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewUniform1f
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewUniform1i
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewUseProgram
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp___glewVertexAttribPointer
libavfilter.a(vf_gltransition.o) : error LNK2001: unresolved external symbol __imp_glewExperimental
ffmpeg_g.exe : fatal error LNK1120: 38 unresolved externals
make: *** [Makefile:123: ffmpeg_g.exe] Error 96
ilovebody commented 1 year ago

can anyone provde the build exe?