how to compile libvpx for windows?

1665 views
Skip to first unread message

alexander...@gmail.com

unread,
Feb 25, 2014, 1:45:14 PM2/25/14
to apps-...@webmproject.org
Hi guys, I'm having troubles compiling libvpx for window using VS2012 on windows 7.

I follow the instructions written here : http://www.webmproject.org/code/build-prerequisites/, using cygwin.

I added the folder containing msbuild.exe to PATH  (C:\windows\blahblahblah..), I ran ./configure --target=x86-win32-vs11 --enable-static-msvcrt, and make.

make terminates saying:

       ClCompile:
         C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe /c /I. /I"/cygdrive/c/projects/libvpx-v1.3.0" /Zi /nologo /W3 /WX- /Od /Oy- /D WIN32 /D DEBUG /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Win32\Debug\obj_int_extract\cygdrive_c_projects_libvpx-v1.3.0_build_make_obj_int_extract.obj" /Fd"Win32\Debug\obj_int_extract\vc110.pdb" /Gd /TC /analyze- /errorReport:queue ".\\cygdrive\c\projects\libvpx-v1.3.0\build\make\obj_int_extract.c"
         obj_int_extract.c
    14>c1 : fatal error C1083: Cannot open source file: '.\\cygdrive\c\projects\libvpx-v1.3.0\build\make\obj_int_extract.c': No such file or directory [C:\projects\libvpx-v1.3.0\obj_int_extract.vcxproj]
    14>Done Building Project "C:\projects\libvpx-v1.3.0\obj_int_extract.vcxproj" (default targets) -- FAILED.
     8>Done Building Project "C:\projects\libvpx-v1.3.0\build\mybuild\vpx.vcxproj" (default targets) -- FAILED.
     2>Done Building Project "C:\projects\libvpx-v1.3.0\build\mybuild\postproc.vcxproj" (default targets) -- FAILED.
     1>Done Building Project "C:\projects\libvpx-v1.3.0\build\mybuild\vpx.sln" (Build target(s)) -- FAILED.

Build FAILED.

       "C:\projects\libvpx-v1.3.0\build\mybuild\vpx.sln" (Build target) (1) ->
       "C:\projects\libvpx-v1.3.0\build\mybuild\postproc.vcxproj" (default target) (2) ->
       "C:\projects\libvpx-v1.3.0\build\mybuild\vpx.vcxproj" (default target) (8) ->
       "C:\projects\libvpx-v1.3.0\obj_int_extract.vcxproj" (default target) (14) ->
       (ClCompile target) ->
         c1 : fatal error C1083: Cannot open source file: '.\\cygdrive\c\projects\libvpx-v1.3.0\build\make\obj_int_extract.c': No such file or directory [C:\projects\libvpx-v1.3.0\obj_int_extract.vcxproj]

    0 Warning(s)
    1 Error(s)


???

Why make feeds Cl.exe with cygwin-style path ?! Please help, I wasted half of a day trying various approaches to compile this f. libvpx...


James Zern

unread,
Feb 25, 2014, 10:18:12 PM2/25/14
to Application Developers
On Tue, Feb 25, 2014 at 10:45 AM, <alexander...@gmail.com> wrote:
> Hi guys, I'm having troubles compiling libvpx for window using VS2012 on
> windows 7.
>
> I follow the instructions written here :
> http://www.webmproject.org/code/build-prerequisites/, using cygwin.
>

mingw-based visual studio builds are tested nightly, so for now prefer that.

> I added the folder containing msbuild.exe to PATH
> (C:\windows\blahblahblah..), I ran ./configure --target=x86-win32-vs11
> --enable-static-msvcrt, and make.
>
> make terminates saying:
>
> ClCompile:
> C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\CL.exe
> /c /I. /I"/cygdrive/c/projects/libvpx-v1.3.0" /Zi /nologo /W3 /WX- /Od /Oy-
> /D WIN32 /D DEBUG /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE /D
> _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /MTd /GS /fp:precise /Zc:wchar_t
> /Zc:forScope
> /Fo"Win32\Debug\obj_int_extract\cygdrive_c_projects_libvpx-v1.3.0_build_make_obj_int_extract.obj"
> /Fd"Win32\Debug\obj_int_extract\vc110.pdb" /Gd /TC /analyze-
> /errorReport:queue
> ".\\cygdrive\c\projects\libvpx-v1.3.0\build\make\obj_int_extract.c"
> obj_int_extract.c
> [...]
>
> Why make feeds Cl.exe with cygwin-style path ?! Please help, I wasted half
> of a day trying various approaches to compile this f. libvpx...
>

I've had trouble with cygwin in the past setting the mount prefix or
doing cross-drive configures.
If you file a bug [1] make sure to note your checkout and build paths
as well as the configure command line.

[1] https://code.google.com/p/webm/issues/list
Reply all
Reply to author
Forward
0 new messages