<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div id="ydpae92e1d4yiv5112798798"><div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div>Thanks. The --arch=i386 was me trying to get 32-bit libraries so I could build a 32-bit app on my 64-bit Windows. I didn't want to leave users stuck on 32-bit Win7 in a lurch. <br clear="none"></div><div><br clear="none"></div><div>There is a config log. <br clear="none"></div><span><span></span></span><div><span><span><br></span></span><div><br></div><div>I tried moving the LAME header file to /usr/local/include/lame/lame.h and running this:</div><div><br></div><div><span> <span>$ ./configure --toolchain=msvc --enable-libx264 --enable-libmp3lame --enable-gpl --extra-ldflags=-L/usr/lib --extra-cflags=-I/usr/include/lame --extra-cflags=-I/usr/local/include/ --extra-cflags=-I/usr/local/include/lame --host-ldflags=-L/user/lib   --extra-ldflags=-L/usr/local/lib<br><br></span></span><div><span>That seems to have gotten me a little further, but I can't seem to get the linker to find my libmp3lame.lib file. I think I'm using the --extra-ldflags wrong but I don't know how to fix it... <br></span></div><div><span></span><br></div><div><br></div><div><span>require libmp3lame >= 3.98.3 lame/lame.h lame_set_VBR_quality -lmp3lame<br>check_lib libmp3lame lame/lame.h lame_set_VBR_quality -lmp3lame<br>check_func_headers lame/lame.h lame_set_VBR_quality -lmp3lame<br>test_ld cc -lmp3lame<br>test_cc<br>BEGIN ./ffconf.xTrLDuO7/test.c<br>    1    #include <lame/lame.h><br>    2    #include <stdint.h><br>    3    long check_lame_set_VBR_quality(void) { return (long) lame_set_VBR_quality; }<br>    4    int main(void) { int ret = 0;<br>    5     ret |= ((intptr_t)check_lame_set_VBR_quality) & 0xFFFF;<br>    6    return ret; }<br>END ./ffconf.xTrLDuO7/test.c<br>cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS -D_WIN32_WINNT=0x0600 -nologo -I/usr/include/lame -I/usr/local/include/ -I/usr/local/include/lame -c -Fo./ffconf.xTrLDuO7/test.o ./ffconf.xTrLDuO7/test.c<br>test.c<br>./compat/windows/mslink -L/usr/lib -L/usr/local/lib -nologo -LARGEADDRESSAWARE -out:./ffconf.xTrLDuO7/test.exe ./ffconf.xTrLDuO7/test.o mp3lame.lib<br>Microsoft (R) Incremental Linker Version 14.00.24215.1<br>Copyright (C) Microsoft Corporation.  All rights reserved.<br><br>LINK : warning LNK4044: unrecognized option '/LC:/workspace/windows/msys64/usr/lib'; ignored<br>LINK : warning LNK4044: unrecognized option '/LC:/workspace/windows/msys64/usr/local/lib'; ignored<br>LINK : fatal error LNK1181: cannot open input file 'mp3lame.lib'<br>ERROR: libmp3lame >= 3.98.3 not found<br><br></span><br></div><div><br></div><div><br></div></div><div><br></div><div><br></div><span></span></div>
        
        </div></div></div></div></div><div class="yiv5112798798yqt9524577644" id="yiv5112798798yqt95949"><div class="yiv5112798798yahoo_quoted" id="yiv5112798798yahoo_quoted_1799806787">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, July 10, 2018, 5:25:03 AM PDT, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
                </div>
                <div><br clear="none"></div>
                <div><br clear="none"></div>
                <div><div dir="ltr">2018-07-08 18:46 GMT+02:00, Jeremy Gregorio<br clear="none"><<a rel="nofollow" shape="rect" ymailto="mailto:gunvalkyrie-at-yahoo.com@ffmpeg.org" target="_blank" href="mailto:gunvalkyrie-at-yahoo.com@ffmpeg.org">gunvalkyrie-at-yahoo.com@ffmpeg.org</a>>:<br clear="none">>  ./configure --toolchain=msvc --arch=i386 --enable-yasm --enable-asm<br clear="none">> --enable-static --disable-shared --enable-libx264 --enable-libmp3lame<br clear="none">> --enable-gpl --extra-ldflags=-L/usr/lib --extra-cflags=-I/usr/include/lame<br clear="none">> --host-ldflags=-L/user/lib   --extra-libs=-lm --extra-libs=-lpthreads<br clear="none"><br clear="none">Unrelated:<br clear="none">The following options are useless because they are the default and<br clear="none">make debugging the configure line more difficult:<br clear="none">--enable-yasm --enable-asm --enable-static --disable-shared<br clear="none"><br clear="none">If the following is unneeded (as I expect), it is dangerous to use it<br clear="none">(most people do not understand what the option does):<br clear="none">--arch=i386<br clear="none"><br clear="none">I know that there is a (horrible) regression that makes -lm and -lpthreads<br clear="none">sometimes necessary, it would still be great if you could report why it is<br clear="none">needed in your case.<br clear="none"><br clear="none">> But it complains it can't find lame:<br clear="none">>     ERROR: libmp3lame >= 3.98.3 not found<br clear="none"><br clear="none">(Not unrelated:)<br clear="none">Was this the only line printed by configure when it failed<br clear="none">or was there anything else?<br clear="none"><br clear="none">Carl Eugen<div class="yiv5112798798yqt1487990292" id="yiv5112798798yqtfd98524"><br clear="none">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:Libav-user@ffmpeg.org" target="_blank" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none"></div></div></div>
            </div>
        </div></div></div></body></html>