[Ffmpeg-devel] building output_example.exe on VC++

Marco ark_83
Mon Jul 24 11:35:12 CEST 2006


Hi,
I have been trying to compile the example output_example.h available int the 
ffmpeg root folder.
I have gone through all the steps indicated in the section 6.3.2 Visual C++ 
compatibility.
In VisualStudio "Additional Include Directories" i also had to add the 
c:\ffmpeg folder as otherwise the config.h file could not be found.
I also had to rename the files avcodec.dll.lib, avformat.dll.lib, 
avutil.dll.lib to avcodec.lib, avformat.lib, avutil.lib respectively as i was 
getting a file not found message.

Now when i try to build the example i get the following list of 25 errors:

Error	1	error LNK2001: unresolved external symbol _avpicture_get_size
	ffmpegtest.obj	
Error	2	error LNK2001: unresolved external symbol _av_register_all
	ffmpegtest.obj	
Error	3	error LNK2001: unresolved external symbol _av_write_trailer
	ffmpegtest.obj	
Error	4	error LNK2001: unresolved external symbol 
_av_alloc_format_context	ffmpegtest.obj	
Error	5	error LNK2001: unresolved external symbol _avcodec_find_encoder
	ffmpegtest.obj	
Error	6	error LNK2001: unresolved external symbol _avcodec_encode_audio
	ffmpegtest.obj	
Error	7	error LNK2001: unresolved external symbol _av_new_stream
	ffmpegtest.obj	
Error	8	error LNK2001: unresolved external symbol _avcodec_encode_video
	ffmpegtest.obj	
Error	9	error LNK2001: unresolved external symbol _av_write_header
	ffmpegtest.obj	
Error	10	error LNK2001: unresolved external symbol _url_fclose
	ffmpegtest.obj	
Error	11	error LNK2001: unresolved external symbol _av_write_frame
	ffmpegtest.obj	
Error	12	error LNK2001: unresolved external symbol _avcodec_open
	ffmpegtest.obj	
Error	13	error LNK2001: unresolved external symbol _avcodec_alloc_frame
	ffmpegtest.obj	
Error	14	error LNK2001: unresolved external symbol _guess_format
	ffmpegtest.obj	
Error	15	error LNK2001: unresolved external symbol _av_rescale_q
	ffmpegtest.obj	
Error	16	error LNK2001: unresolved external symbol _avpicture_fill
	ffmpegtest.obj	
Error	17	error LNK2001: unresolved external symbol _av_free
	ffmpegtest.obj	
Error	18	error LNK2001: unresolved external symbol _url_fopen
	ffmpegtest.obj	
Error	19	error LNK2001: unresolved external symbol _dump_format
	ffmpegtest.obj	
Error	20	error LNK2001: unresolved external symbol _av_set_parameters
	ffmpegtest.obj	
Error	21	error LNK2001: unresolved external symbol 
_av_destruct_packet_nofree	ffmpegtest.obj	
Error	22	error LNK2001: unresolved external symbol _avcodec_close
	ffmpegtest.obj	
Error	23	error LNK2001: unresolved external symbol _img_convert
	ffmpegtest.obj	
Error	24	error LNK2001: unresolved external symbol _av_freep
	ffmpegtest.obj	
Error	25	fatal error LNK1120: 24 unresolved externals
	C:\Documenti\Visual Studio 2005
\Projects\ffmpegtest\Release\ffmpegtest.exe	

If I add #include "config.h" at the top of the common.h the 25 errors disappear
but i then get another error, which i can't resolve:

Error	1	error C2059: syntax error : '<cv-qualifer>'	c:\ffmpeg1
\libavutil\common.h	307	


The ffmpeg libraries have originally been built with mingw32 and the 
configuration settings used are:
./configure --enable-shared --disable-static --enable-memalign-hack 

Is there anything i have missed on the configuration? 

Marco 





More information about the ffmpeg-devel mailing list