<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;">Hi all,</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"> So I got ffmpeg compiled with this:</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><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 --enable-libx264</span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>From within an msys2 shell ran with this:</span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span> msys2_shell.cmd -mingw64 -full-path</span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>I used this to make sure that cl.exe and link.exe were the Microsoft ones <br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><span><span><span> export PATH="/c/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/":$PATH</span></span></span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>And I made sure I really did run the Microsoft versions.<br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span><br></span></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span>I was able to get the samples to compile with </span>"make examples" I had to do a few odds and ends to one of them because usleep isn't available in Visual Studio 2015 but other than that it worked like a charm. I can take the exes out of the msys2 environment and they work with the msys2 dlls so I'm pretty sure I compiled everything right. <br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I tried taking one of the examples out of the docs/examples folder and compiling it myself with this:</div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br></div><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><span> cl -o transcode_aac_out.exe -I/usr/include/lame -I/usr/local/include/ transcode_aac.c<br><br></span><div>I get the *.obj file but it failes with linker errors (a _lot_ of linker errors, I don't think it's finding anything). <br></div><div><br></div><div>I tried this:</div><div><br></div><div><span> cl -o transcode_aac_out.exe -I/usr/include/lame -I/usr/local/include/ -link -LIBPATH:/usr/local/lib/ transcode_aac.c</span></div><div><span><br></span></div><div><span>but I got back <br></span></div><div><span><br></span></div><div><span><span> bash: $'\302\214cl': command not found<br><br></span></span><div><span> so then I tried adding to my LIB environment variable before launching MSYS like so:</span></div><div><span><br></span></div><div><span><span> set LIB=%LIB%;c:\workspace\windows\msys64\usr\local\lib</span></span></div><div><span><span><br></span></span></div><div><span><span>and taking the -link and -LIBPATH variables away but that just got me the linker errors again.</span></span></div><div><span><span><br></span></span></div><div><span><span>Is my cl.exe syntax off or do I really need *.lib files to link with? It seems like I shouldn't but maybe I messed up when I compiled FFMEG... <br></span></span></div><div><span><span><br></span></span></div><div><span><span></span><br></span></div></div></div></div></body></html>