Building Windows Client - Can't find vpx/vpx_encoder.h

957 views
Skip to first unread message

Arthur

unread,
Jun 1, 2011, 7:45:23 AM6/1/11
to discuss-webrtc
Hi

I've been following the instructions at https://sites.google.com/site/webrtc/reference/getting-started

All is fine until I build in Visual Studio. I am running Visual
Studio 2008 in Windows 7.

When I try to build I get the following errors:

Error 1 fatal error C1083: Cannot open include file: 'vpx/
vpx_encoder.h': No such file or directory c:\Users\AEmbleton\webrtc
\trunk\modules\video_coding\codecs\vp8\main\source\vp8.cc 20
webrtc_vp8
Error 2 fatal error C1083: Cannot open include file: 'dxdiag.h': No
such file or directory c:\users\aembleton\webrtc\trunk\modules
\video_render\main\source\windows\video_render_windows_impl.h 15
video_render_module
Error 3 fatal error C1083: Cannot open include file: 'd3dx9.h': No
such file or directory c:\users\aembleton\webrtc\trunk\modules
\video_render\main\source\windows\video_render_direct3d9.h 18
video_render_module
Error 4 fatal error C1083: Cannot open include file: 'dxdiag.h': No
such file or directory c:\users\aembleton\webrtc\trunk\modules
\video_render\main\source\windows\video_render_windows_impl.h 15
video_render_module
Error 5 fatal error C1083: Cannot open include file: 'dxdiag.h': No
such file or directory c:\users\aembleton\webrtc\trunk\modules
\video_render\main\source\windows\video_render_windows_impl.h 15
video_render_module
Error 6 error PRJ0019: A tool returned an error code from "Build
libvpx yasm build c:\Users\AEmbleton\webrtc\third_party\libvpx
\vp8\common\x86\postproc_sse2.asm." libvpx libvpx
Error 7 fatal error LNK1104: cannot open file '.\debug\lib\libvpx.lib'
voe_ui_win_test voe_ui_win_test
Error 8 fatal error LNK1104: cannot open file '..\..\..\..\debug\lib
\libvpx.lib' vie_win_test vie_win_test
Error 9 fatal error LNK1104: cannot open file '.\debug\lib\libvpx.lib'
voe_auto_test voe_auto_test
Error 10 error PRJ0019: A tool returned an error code from "create vie
test folder, and also copy media files" vie_auto_test vie_auto_test
Error 11 fatal error LNK1104: cannot open file '.\debug\lib
\libvpx.lib' peerconnection_client peerconnection_client

I'm not very familiar with .NET, so is there any obvious libs that I
need? I have installed the DirectX SDK (June 2010 build).

Niklas Enbom

unread,
Jun 1, 2011, 8:58:16 AM6/1/11
to discuss...@googlegroups.com
Hi Artur,

I think there's at least 2 problems in your setup:

d3dx9.h should come with the DirectX SDK and should be located in C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3dx9.h. Please make sure that you have the SDK registered it in Visual Studio:
  1. Install the DirectX SDK.
    1. Verify MSVC|Tools|Options|Projects and Solutions|VC++ Directories has Include: $(DXSDK_DIR)include and Lib: $(DXSDK_DIR)lib\x86.
    2. Make sure the DirectX include directories appear first in the search path, otherwise you may get build errors.

Also it seems like the VPX library was not included when you sync. This source is not stored in the WebRTC but pulled as a dependency when you sync. Git on Windows can be a bit flaky, so please make sure you use the --force flag to gclient and try to sync again. Check if you get any errors when you sync.

Niklas

Arthur

unread,
Jun 1, 2011, 9:50:33 AM6/1/11
to discuss-webrtc
Thanks Niklas

I ran the gclient sync again in Cygwin and this time it worked; I got
the vpx libraries. My include and lib were missing the necessary $
(DXSDK_DIR) paths. Added them as you suggested and it all works. :)

Thanks,
Arthur

On Jun 1, 1:58 pm, Niklas Enbom <nikl...@google.com> wrote:
> Hi Artur,
>
> I think there's at least 2 problems in your setup:
>
> d3dx9.h should come with the DirectX SDK and should be located in C:\Program
> Files (x86)\Microsoft DirectX SDK (June 2010)\Include\d3dx9.h. Please make
> sure that you have the SDK registered it in Visual Studio:
>
>    1. Install the DirectX
> SDK<http://msdn.microsoft.com/en-us/directx/default.aspx>
>    .
>    1. Verify MSVC|Tools|Options|Projects and Solutions|VC++ Directories has
>       Include: $(DXSDK_DIR)include and Lib: $(DXSDK_DIR)lib\x86.
>       2. Make sure the DirectX include directories appear *first in the
>       search path*, otherwise you may get build errors.
Reply all
Reply to author
Forward
0 new messages