Hey all - I'm trying to link against the latest Win32 builds of libav, from MSVC 2010.
Just for a bit of background - it's been awhile since I've worked with Unix, so I'm a little fuzzy on makefiles, etc. Also I understand that MSVC isn't the natural environment for working with libav - unfortunately it's not an option in this case. I feel like I'm pretty close (with a bit of help from a member of the irc channel - thanks!), but I seem to be missing some libraries that libav depends on. What I've done so far: 1. downloaded the latest from http://win32.libav.org/ and added the /lib directories to the additional libraries directory. 2. Added the /include directories to the additional include directories. 3. Installed MinGW and added its /lib path to my additional library directories. 4. Downloaded a win32 build of ZLib and added its /lib directory to my additional libraries. 5. Added the following libraries to the additional dependencies (in this order) libmingwex.a libgcc.a libz.a libcoldname.a libavutil.a libavcodec.a libavformat.a libavdevice.a libpostproc.a libswscale.a Now, I'm getting quite a few unresolved externals. I've listed them below - but I guess I'm just wondering if there is some obvious method I'm missing of determining what the needed libraries are. It's been a lengthy trial-and-error-and-google process so far to figure out that I needed the first 4 in the list above. If I were compiling under Unix would the necessary libraries simply be already installed - or is there a configuration file somewhere I could reference that names the external dependencies? And secondly - Am I perhaps doing this all wrong - should I be compiling my own libav libraries from minGW instead of attempting to use the pre-built ones? Sorry for the noob questions here. If I can get this working I'd be happy to contribute a documentation page with step-by-step for guys like me. Here are the missing dependencies: libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_encode_buffer_interleaved referenced in function _MP3lame_encode_frame libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_encode_flush referenced in function _MP3lame_encode_frame libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_init referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_in_samplerate referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_out_samplerate referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_num_channels referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_quality referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_mode referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_brate referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_VBR referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_VBR_quality referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_bWriteVbrTag referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_set_disable_reservoir referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_init_params referenced in function _MP3lame_encode_init libavcodec.a(libmp3lame.o) : error LNK2019: unresolved external symbol _lame_get_framesize referenced in function _MP3lame_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_wrote referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_block_clear referenced in function _oggvorbis_encode_close libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_dsp_clear referenced in function _oggvorbis_encode_close libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_info_clear referenced in function _oggvorbis_encode_close libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_buffer referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_blockout referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_bitrate_addblock referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_bitrate_flushpacket referenced in function _oggvorbis_encode_frame libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_info_init referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_encode_setup_vbr referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_encode_setup_managed referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_encode_ctl referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_encode_setup_init referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_init referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_block_init referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_comment_init referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_comment_add_tag referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_analysis_headerout referenced in function _oggvorbis_encode_init libavcodec.a(libvorbis.o) : error LNK2019: unresolved external symbol _vorbis_comment_clear referenced in function _oggvorbis_encode_init libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_vp8_cx_algo referenced in function _vp8_init libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_destroy referenced in function _vp8_free libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_destroy libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_error referenced in function _log_encoder_error libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_error libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_error_detail referenced in function _log_encoder_error libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_error_detail libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_encode referenced in function _vp8_encode libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_get_cx_data referenced in function _vp8_encode libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_control_ referenced in function _codecctl_int libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_version_str referenced in function _vp8_init libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_version_str libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_build_config referenced in function _vp8_init libavcodec.a(libvpxdec.o) : error LNK2001: unresolved external symbol _vpx_codec_build_config libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_enc_config_default referenced in function _vp8_init libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_err_to_string referenced in function _vp8_init libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_codec_enc_init_ver referenced in function _vp8_init libavcodec.a(libvpxenc.o) : error LNK2019: unresolved external symbol _vpx_img_wrap referenced in function _vp8_init libavcodec.a(libvpxdec.o) : error LNK2019: unresolved external symbol _vpx_codec_vp8_dx_algo referenced in function _vp8_init libavcodec.a(libvpxdec.o) : error LNK2019: unresolved external symbol _vpx_codec_decode referenced in function _vp8_decode libavcodec.a(libvpxdec.o) : error LNK2019: unresolved external symbol _vpx_codec_get_frame referenced in function _vp8_decode libavcodec.a(libvpxdec.o) : error LNK2019: unresolved external symbol _vpx_codec_dec_init_ver referenced in function _vp8_init libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_close referenced in function _X264_close libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_picture_init referenced in function _X264_frame libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_reconfig referenced in function _X264_frame libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_encode referenced in function _X264_frame libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_delayed_frames referenced in function _X264_frame libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_param_default referenced in function _X264_init libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_open_115 referenced in function _X264_init libavcodec.a(libx264.o) : error LNK2019: unresolved external symbol _x264_encoder_headers referenced in function _X264_init libmingwex.a(wcrtomb.o) : error LNK2019: unresolved external symbol __imp____lc_codepage referenced in function _wcsrtombs libmingwex.a(mbrtowc.o) : error LNK2001: unresolved external symbol __imp____lc_codepage
_______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
