error compiling libvpx and yasm

515 views
Skip to first unread message

Art McGee

unread,
Nov 26, 2012, 10:36:22 AM11/26/12
to discuss...@googlegroups.com
I'm using visual studio ultimate running windows 7 and I am unable to compile libvpx and yasm.  I get the following errors.

Error 1 error MSB3721: The command "call "C:\Projects\peercon\trunk\third_party\yasm\..\..\third_party\cygwin\setup_env.bat" && set CYGWIN=nontsec&& set INTDIR=..\..\build\Debug\obj\yasm\&& set OUTDIR=..\..\build\Debug\&& set INPUTPATH=C:\Projects\peercon\trunk\build\Debug\obj\global_intermediate\third_party\yasm\x86insn_nasm.gperf && bash -c "\"`cygpath -m \\\"${OUTDIR}\\\"`/genperf\" \"`cygpath -m \\\"${INPUTPATH}\\\"`\" \"`cygpath -m \\\"${INTDIR}\\\"`/third_party/yasm/x86insn_nasm.c\""" exited with code 1. C:\Projects\peercon\trunk\third_party\yasm\yasm.targets 34

Error 2 error MSB3721: The command "call "C:\Projects\peercon\trunk\third_party\libvpx\..\..\third_party\cygwin\setup_env.bat" && set CYGWIN=nontsec&& set OUTDIR=..\..\build\Debug\&& set INPUTPATH=C:\Projects\peercon\trunk\third_party\libvpx\source\libvpx\vpx_ports\emms.asm && bash -c "\"`cygpath -m \\\"${OUTDIR}\\\"`/yasm.exe\" \"-D\" \"CHROMIUM\" \"-I\" \"source/config/win/ia32\" \"-I\" \"source/config\" \"-I\" \"source/libvpx\" \"-I\" \"`cygpath -m \\\"${OUTDIR}\\\"`obj/global_intermediate/third_party/libvpx\" \"-DPREFIX\" \"-fwin32\" \"-m\" \"x86\" \"-o\" \"`cygpath -m \\\"${OUTDIR}\\\"`obj/global_intermediate/third_party/libvpx/emms.obj\" \"`cygpath -m \\\"${INPUTPATH}\\\"`\""" exited with code 127. C:\Projects\peercon\trunk\third_party\libvpx\libvpx.targets 28

Error 3 error LNK1104: cannot open file 'C:\Projects\peercon\trunk\build\Debug\lib\libvpx.lib' C:\Projects\peercon\trunk\LINK

Philipp Hancke

unread,
Nov 26, 2012, 12:59:00 PM11/26/12
to discuss...@googlegroups.com
IIRC this is because the .gperf files don't get copied to the right locations. See http://code.google.com/p/webrtc/issues/detail?id=214 and http://code.google.com/p/webrtc/issues/detail?id=197 -- basically you need to copy both .gperf files manually.

Art McGee

unread,
Nov 26, 2012, 2:27:38 PM11/26/12
to discuss...@googlegroups.com, philipp...@googlemail.com
Thank you,

This works.

ambani....@gmail.com

unread,
Jun 21, 2013, 1:10:49 PM6/21/13
to discuss...@googlegroups.com
Philipp is right 

x86insn_gas.gperf and x86insn_nasm.gperf are in my 'trunk/third_party/yasm/source/patched-yasm' dir but the yasm build expects them to be in 'trunk/build/[Debug/Release]/obj/global_intermediate/third_party/yasm' dir. Putting them there manually yields a successful yasm and libvpx build now.

Thanks all
Reply all
Reply to author
Forward
0 new messages