Opened 7 years ago

Closed 7 years ago

#6373 closed defect (invalid)

problem compiling program with ffmpeg libererys

Reported by: nthrev Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Attachments (1)

the_program.txt (4.7 KB ) - added by nthrev 7 years ago.

Download all attachments as: .zip

Change History (2)

by nthrev, 7 years ago

Attachment: the_program.txt added

comment:1 by Elon Musk, 7 years ago

Resolution: invalid
Status: newclosed

This is not a support forum.

Note: See TracTickets for help on using tickets.