<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></div>
        <div>Thanks, figured it out after you pointed me towards the config file. </div><div><br></div><div>Visual Studio uses different syntax for linker files, so I needed to do this:</div><div><br></div><div><span> ./configure --toolchain=msvc   --enable-gpl --extra-ldflags=-LIBPATH:/usr/lib --extra-cflags=-I/usr/include/lame --extra-cflags=-I/usr/local/include/ --extra-cflags=-I/usr/local/include/lame --host-ldflags=-LIBPATH:/user/lib   --extra-ldflags=-LIBPATH:/usr/local/lib --enable-libmp3lame<br></span><span></span><div><br></div><div>This is because visual studio uses -LIBPATH: instead of just -L<br></div><div><br></div><div>Oh, and note that I had to point the cflags to /user/local/include and not /user/local/include/lame/. <br></div><div><br></div><div>lastly I did have to change the filename to mp3lame.lib (e.g. remove the lib* prefix) which I really didn't expect. <br></div><div><br></div><div>I still have to compile lib x264. For some boneheaded reason I thought it was part of ffmpeg. But I'm moving right along. <br></div></div>
        
        </div><div id="yahoo_quoted_2108706946" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, July 11, 2018, 4:52:31 AM PDT, Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">2018-07-11 5:53 GMT+02:00, Jeremy Gregorio<br clear="none"><<a shape="rect" ymailto="mailto:gunvalkyrie-at-yahoo.com@ffmpeg.org" href="mailto:gunvalkyrie-at-yahoo.com@ffmpeg.org">gunvalkyrie-at-yahoo.com@ffmpeg.org</a>>:<br clear="none">>  Thanks. The --arch=i386 was me trying to get 32-bit libraries so I<br clear="none">> could build a 32-bit app on my 64-bit Windows. I didn't want to<br clear="none">> leave users stuck on 32-bit Win7 in a lurch.<br clear="none"><br clear="none">Instead you have to call the compiler in a way that makes it produce<br clear="none">32bit binaries (on Posix, that typically means --cc='cc -m32'), if<br clear="none">configure fails to detect that the binaries are 32bit (as is the case for<br clear="none">cross-compilation) you need the --arch option.<br clear="none"><br clear="none">> There is a config log.<br clear="none"><br clear="none">Good!<br clear="none"><br clear="none">> I tried moving the LAME header file to /usr/local/include/lame/lame.h<br clear="none"><br clear="none">Once you did that, you can remove at least some of your extra-cflags<br clear="none"><br clear="none">> and running this:<br clear="none">>  $ ./configure --toolchain=msvc<br clear="none"><br clear="none">> --enable-libx264 --enable-libmp3lame<br clear="none"><br clear="none">Does x264 (without lame) work?<br clear="none"><br clear="none">> --enable-gpl --extra-ldflags=-L/usr/lib<br clear="none"><br clear="none">>  --extra-cflags=-I/usr/include/lame<br clear="none">> --extra-cflags=-I/usr/local/include/<br clear="none">> --extra-cflags=-I/usr/local/include/lame<br clear="none"><br clear="none">Some of them are most likely unneeded.<br clear="none"><br clear="none">> --host-ldflags=-L/user/lib<br clear="none">> --extra-ldflags=-L/usr/local/lib<br clear="none">><br clear="none">> That seems to have gotten me a little further, but I can't seem to get the<br clear="none">> linker to find my libmp3lame.lib file. I think I'm using the --extra-ldflags<br clear="none">> wrong but I don't know how to fix it...<br clear="none">><br clear="none">><br clear="none">> require libmp3lame >= 3.98.3 lame/lame.h lame_set_VBR_quality -lmp3lame<br clear="none">> check_lib libmp3lame lame/lame.h lame_set_VBR_quality -lmp3lame<br clear="none">> check_func_headers lame/lame.h lame_set_VBR_quality -lmp3lame<br clear="none">> test_ld cc -lmp3lame<br clear="none">> test_cc<br clear="none">> BEGIN ./ffconf.xTrLDuO7/test.c<br clear="none">>     1    #include <lame/lame.h><br clear="none">>     2    #include <stdint.h><br clear="none">>     3    long check_lame_set_VBR_quality(void) { return (long)<br clear="none">> lame_set_VBR_quality; }<br clear="none">>     4    int main(void) { int ret = 0;<br clear="none">>     5     ret |= ((intptr_t)check_lame_set_VBR_quality) & 0xFFFF;<br clear="none">>     6    return ret; }<br clear="none">> END ./ffconf.xTrLDuO7/test.c<br clear="none">> cl -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE<br clear="none">> -D_USE_MATH_DEFINES -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS<br clear="none">> -D_WIN32_WINNT=0x0600 -nologo -I/usr/include/lame -I/usr/local/include/<br clear="none">> -I/usr/local/include/lame -c -Fo./ffconf.xTrLDuO7/test.o<br clear="none">> ./ffconf.xTrLDuO7/test.c<br clear="none">> test.c<br clear="none"><br clear="none">> ./compat/windows/mslink -L/usr/lib -L/usr/local/lib -nologo<br clear="none">> -LARGEADDRESSAWARE -out:./ffconf.xTrLDuO7/test.exe ./ffconf.xTrLDuO7/test.o<br clear="none">> mp3lame.lib<br clear="none"><br clear="none">It seems the linker is searching for "mp3lame.lib" and you provide<br clear="none">"libmp3lame.lib", no?<br clear="none"><br clear="none">Please do not top-post here, Carl Eugen<div class="yqt3301211231" id="yqtfd65154"><br clear="none">_______________________________________________<br clear="none">Libav-user mailing list<br clear="none"><a shape="rect" ymailto="mailto:Libav-user@ffmpeg.org" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br clear="none"><a shape="rect" href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br clear="none"></div></div></div>
            </div>
        </div></div></body></html>