[FFmpeg-trac] #6373(undetermined:new): problem compiling program with ffmpeg libererys
FFmpeg
trac at avcodec.org
Fri May 5 13:08:11 EEST 2017
#6373: problem compiling program with ffmpeg libererys
-------------------------------------+-------------------------------------
Reporter: nthrev | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
after installation it's seems that not all files are in the end folder (i
got for example mem.h but no mem.c , i didn't got libswscale at all so
again i copy it from github and put it there).
so i added this files manually from github but visual studio give me error
that the linker can't fund those functions.
I'm try to make a simple ffmpeg program , i install ffmpeg with this
commands:
./configure --enable-asm --enable-yasm --arch=i386 --disable-ffserver
--disable-avdevice --disable-swscale --disable-doc --disable-ffplay
--disable-ffprobe --disable-ffmpeg --enable-shared --disable-static
--disable-bzlib --disable-libopenjpeg --disable-iconv --disable-zlib
--prefix=/c/ffmpeg --toolchain=msvc
make
make install
and then i imported the location of the new ffmpeg libto visual studio.
How to reproduce:
the program i used attached in the_program.txt
i use visual studio 2015 on win 10 64bit version
this is the some of the errors:
Error LNK2019 unresolved external symbol _av_malloc referenced in
function _main FirstFFMPEGproject
c:\Users\----\OneDrive\documents\visual studio
2015\Projects\FirstFFMPEGproject\FirstFFMPEGproject\Source.obj 1
Error LNK2019 unresolved external symbol _av_free referenced in function
_main FirstFFMPEGproject c:\Users\*\OneDrive\documents\visual
studio 2015\Projects\FirstFFMPEGproject\FirstFFMPEGproject\Source.obj
1
Error LNK2019 unresolved external symbol _sws_getContext referenced in
function _main FirstFFMPEGproject
c:\Users\**\OneDrive\documents\visual studio
2015\Projects\FirstFFMPEGproject\FirstFFMPEGproject\Source.obj 1
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6373>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list