[libav-api] Problems with msvc2010

aviad rozenhek aviadr1 at gmail.com
Wed Aug 1 21:11:44 CEST 2012


On Mon, May 7, 2012 at 11:20 PM, Clarke, Trevor <tclarke at ball.com> wrote:

> I did manage to track down some of the issues (old .obj files in the link
> path) but I’m still seeing the following****
>
> ** **
>
> 1>avformat.lib(md5enc.obj) : error LNK2019: unresolved external symbol
> av_md5_size referenced in function write_header****
>
> 1>avformat.lib(md5proto.obj) : error LNK2001: unresolved external symbol
> av_md5_size****
>
> 1>avformat.lib(httpauth.obj) : error LNK2001: unresolved external symbol
> av_md5_size****
>
> 1>avformat.lib(gxf.obj) : error LNK2019: unresolved external symbol
> avpriv_frame_rate_tab referenced in function gxf_header****
>
> 1>avformat.lib(matroskadec.obj) : error LNK2019: unresolved external
> symbol ff_log2_tab referenced in function matroska_parse_block****
>
> 1>avformat.lib(rtsp.obj) : error LNK2001: unresolved external symbol
> ff_log2_tab****
>
> 1>avformat.lib(matroskadec.obj) : error LNK2019: unresolved external
> symbol avpriv_mpeg4audio_sample_rates referenced in function
> matroska_read_header****
>
> 1>avformat.lib(sdp.obj) : error LNK2001: unresolved external symbol
> avpriv_mpeg4audio_sample_rates****
>
> 1>avformat.lib(mov.obj) : error LNK2019: unresolved external symbol
> avpriv_ac3_channel_layout_tab referenced in function mov_read_dac3****
>
> 1>avformat.lib(mp3enc.obj) : error LNK2019: unresolved external symbol
> avpriv_mpa_freq_tab referenced in function mp3_write_xing****
>
> 1>avformat.lib(nutenc.obj) : error LNK2001: unresolved external symbol
> avpriv_mpa_freq_tab****
>
> 1>avformat.lib(isom.obj) : error LNK2001: unresolved external symbol
> avpriv_mpa_freq_tab****
>
> 1>avformat.lib(mxfdec.obj) : error LNK2019: unresolved external symbol
> av_aes_size referenced in function mxf_read_packet****
>
> 1>avformat.lib(crypto.obj) : error LNK2001: unresolved external symbol
> av_aes_size****
>
> 1>avformat.lib(nutenc.obj) : error LNK2019: unresolved external symbol
> avpriv_mpa_bitrate_tab referenced in function find_expected_header.clone.0
> ****
>
> 1>avformat.lib(tcp.obj) : error LNK2019: unresolved external symbol
> gai_strerrorA referenced in function tcp_open****
>
> 1>avformat.lib(udp.obj) : error LNK2001: unresolved external symbol
> gai_strerrorA****
>
> 1>avformat.lib(nut.obj) : error LNK2019: unresolved external symbol
> av_tree_node_size referenced in function ff_nut_add_sp****
>
> 1>mingwex.lib(lib64_libmingwex_a-wassert.o) : error LNK2019: unresolved
> external symbol mingw_app_type referenced in function _wassert****
>
> ** **
>
> This is using a modified version of the output-example.c example (it’s
> been modified to pull data from an existing app and adds a GUI for some
> CODEC options but the flow of the libav parts are pretty close)****
>
> *From:* libav-api-bounces at libav.org [mailto:libav-api-bounces at libav.org] *On
> Behalf Of *Andrey Utkin
> *Sent:* Monday, May 07, 2012 3:40 PM
> *To:* Development with the libav* APIs
> *Subject:* Re: [libav-api] Problems with msvc2010****
>
> ** **
>
>
> could you post exact compiler errors, and maybe even minimized reproducing
> msvc project tarball?
> понедельник, 7 мая 2012 г. пользователь Clarke, Trevor <tclarke at ball.com>
> писал:
> > I'm attempting to use the nightly 64-bit mingw builds with MSVC-2010 and
> > I'm getting some unresolved externs. I've tried linking to the .lib
> > files in "bin", the .a files in "lib" and I tried unpacking the .a files
> > with ar then using lib.exe to build a .lib. My source is C++ and I'm
> > wrapping libav includes in extern "C" {}. I'm seeing unresolved externs
> > on:
> > av_guess_format, avformat_write_header, avio_open, avcodec_open2,
> > av_init_packet, avformat_alloc_context, avformat_new_stream, and
> > avio_close. Dumpbin.exe indicates that these exist in the .lib/.a files
> > and I'm including them in the link.exe line with no other errors.
> >
> > ------------------
> > Trevor R.H. Clarke
> > Ball Aerospace & Technologies Corp
> > Opticks, Free Your Imagery (http://opticks.org)
> > GPG key available on random.sks.keyserver.penguin.de
> >
> >
> >
> >
> >
> > This message and any enclosures are intended only for the addressee.
>  Please
> >
> > notify the sender by email if you are not the intended recipient.  If
> you are
> >
> > not the intended recipient, you may not use, copy, disclose, or
> distribute this
> >
> > message or its contents or enclosures to any other person and any such
> actions
> >
> > may be unlawful.  Ball reserves the right to monitor and review all
> messages
> >
> > and enclosures sent to or from this email address.
> > _______________________________________________
> > libav-api mailing list
> > libav-api at libav.org
> > https://lists.libav.org/mailman/listinfo/libav-api
> >
>
> --
> Andrey Utkin****
>
> This message and any enclosures are intended only for the addressee.  Please
>
> notify the sender by email if you are not the intended recipient.  If you are
>
> not the intended recipient, you may not use, copy, disclose, or distribute this
>
> message or its contents or enclosures to any other person and any such actions
>
> may be unlawful.  Ball reserves the right to monitor and review all messages
>
> and enclosures sent to or from this email address.
>
>
> _______________________________________________
> libav-api mailing list
> libav-api at libav.org
> https://lists.libav.org/mailman/listinfo/libav-api
>
>
these  errors indicate that you are linking to a static lib... ?
the tar should have .def files. use lib.exe to generate .lib files from the
.def files and you should be fine


-- 
Aviad Rozenhek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-api/attachments/20120801/db5cd3be/attachment.html>


More information about the libav-api mailing list