Additional Instructions for Windows Build using Windows XP and Visual Studio 2005

747 views
Skip to first unread message

Atin Banerjee

unread,
Aug 16, 2011, 9:30:36 AM8/16/11
to discuss-webrtc
While building WebRTC code on Windows XP using Visual Studio 2005, in
addition to the instructions provided at
http://www.webrtc.org/reference/getting-started/prerequisite-sw, I had
to do the following configurations, for an error free build:

1) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
has to Include, the include directory of Microsoft SDK 7.1, i.e. add
the path C:\Program Files\Microsoft SDKs\Windows\v7.1\Include in case
the installation was carried out in the standard C:\Program Files
directory.

2) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
has to add the Library directory of Microsoft SDK 7.1., i.e. add the
path C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib in case the
installation was carried out in the standard C:\Program Files
directory.

3) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
has to add a specific Library directory of Visual Studio 2005, i.e.
add the path C:\Program Files\Microsoft Visual Studio 8\VC\lib in case
the Visual Studio 2005 was installed in C:\Program Files directory.

Abhinav Kochhar

unread,
Aug 17, 2011, 3:15:31 AM8/17/11
to discuss...@googlegroups.com
Hi Atin,
 
Did you try the build on Visual Studo 2010?
I am trying to do a build on Visual Studio 2010 but facing some build errors.
I hope the points mentioned by you can solve those. 
 
Regards,
Abhinav

Henrik Andreasson

unread,
Aug 17, 2011, 5:54:00 AM8/17/11
to discuss...@googlegroups.com
Other threads mention that it works well for VS2010 (see e.g. http://groups.google.com/d/topic/discuss-webrtc/cnECxf6CR5U/discussion).
What type of problems are you experiencing?

Andrew MacDonald

unread,
Aug 17, 2011, 8:29:35 PM8/17/11
to discuss...@googlegroups.com
On Tue, Aug 16, 2011 at 6:30 AM, Atin Banerjee <atin.b...@gmail.com> wrote:
> While building WebRTC code on Windows XP using Visual Studio 2005, in
> addition to the instructions provided at
> http://www.webrtc.org/reference/getting-started/prerequisite-sw, I had
> to do the following configurations, for an error free build:
>
> 1) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
> has to Include, the include directory of Microsoft SDK 7.1, i.e. add
> the path C:\Program Files\Microsoft SDKs\Windows\v7.1\Include in case
> the installation was carried out in the standard C:\Program Files
> directory.
>
> 2) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
> has to add the Library directory of Microsoft SDK 7.1., i.e. add the
> path C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib in case the
> installation was carried out in the standard C:\Program Files
> directory.

We don't host the SDK, so these first two are standard steps. I'll
update the prerequisites page to make that more clear.

> 3) In MSVC|Tools|Options|Projects and Solutions|VC++ Directories one
> has to add a specific Library directory of  Visual Studio 2005, i.e.
> add the path C:\Program Files\Microsoft Visual Studio 8\VC\lib in case
> the Visual Studio 2005 was installed in C:\Program Files directory.

As far as I know, this path should be provided by VS already.

Abhinav Kochhar

unread,
Aug 20, 2011, 11:13:53 PM8/20/11
to discuss...@googlegroups.com
I added C:\Program Files\Microsoft DirectX SDK (June 2010)\Include,
C:\Program Files\Microsoft DirectX SDK (June 2010)\Lib\x86, to the
Properties -> VC++ Directories -> Include Directories and Library
Directories respectively.


I am using VS2010 express edition (trial verison) on Wndows XP.

Output:

========== Build: 2 succeeded, 5 failed, 40 up-to-date, 0 skipped ==========

Error list:

Error 3 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory c:\webrtc\trunk\src\modules\video_render\main\source\windows\video_render_windows_impl.h 15
Error 8 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory c:\webrtc\trunk\src\modules\video_render\main\source\windows\video_render_windows_impl.h 15
Error 10 error LNK1181: cannot open input file 'asm\idctllm_sse2.obj' C:\webrtc\trunk\third_party\libvpx\LINK
Error 12 error LNK1181: cannot open input file 'C:\webrtc\trunk\Debug\obj\global_intermediate\third_party\libjpeg_turbo\jiss2int.obj' C:\webrtc\trunk\third_party\libjpeg_turbo\LINK
Error 15 error C1083: Cannot open include file: 'webrtc/audio_processing/debug.pb.h': No such file or directory C:\webrtc\trunk\src\modules\audio_processing\main\source\audio_processing_impl.cc 31
Error 16 error C1083: Cannot open source file: 'C:\webrtc\trunk\Debug\obj\global_intermediate\protoc_out\webrtc\audio_processing\debug.pb.cc': No such file or directory C:\webrtc\trunk\src\modules\audio_processing\main\source\c1xx
Error 17 error LNK1104: cannot open file 'C:\webrtc\trunk\Debug\lib\audio_processing.lib' C:\webrtc\trunk\LINK

Abhinav Kochhar

unread,
Aug 21, 2011, 8:28:43 AM8/21/11
to discuss...@googlegroups.com
could get rid of the DirectX related errors.

Error 3 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory c:\webrtc\trunk\src\modules\video_render\main\source\windows\video_render_windows_impl.h 15
Error 8 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory c:\webrtc\trunk\src\modules\video_render\main\source\windows\video_render_windows_impl.h 15

but the following errors still remain 

Error 9 error C1083: Cannot open include file: 'webrtc/audio_processing/debug.pb.h': No such file or directory C:\webrtc\trunk\src\modules\audio_processing\main\source\audio_processing_impl.cc 33
Error 10 error C1083: Cannot open source file: 'C:\webrtc\trunk\Debug\obj\global_intermediate\protoc_out\webrtc\audio_processing\debug.pb.cc': No such file or directory C:\webrtc\trunk\src\modules\audio_processing\main\source\c1xx
Error 11 error LNK1104: cannot open file 'C:\webrtc\trunk\Debug\lib\audio_processing.lib' C:\webrtc\trunk\LINK
Error 4 error LNK1181: cannot open input file 'asm\idctllm_sse2.obj' C:\webrtc\trunk\third_party\libvpx\LINK
Error 6 error LNK1181: cannot open input file 'C:\webrtc\trunk\Debug\obj\global_intermediate\third_party\libjpeg_turbo\jiss2int.obj' C:\webrtc\trunk\third_party\libjpeg_turbo\LINK
Error 2 error LNK1561: entry point must be defined C:\webrtc\trunk\third_party\protobuf\LINK

Vicky

unread,
Aug 21, 2011, 10:26:26 PM8/21/11
to discuss-webrtc
FYI...I am also seeing the same error Abhinav has on missing
debug.pb.h and debug.pc.cc

Using VS2010 on Win7.
> <kochhar.abhi...@gmail.com>wrote:
> > On Wed, Aug 17, 2011 at 3:24 PM, Henrik Andreasson <henr...@webrtc.org>wrote:
>
> >> Other threads mention that it works well for VS2010 (see e.g.
> >>http://groups.google.com/d/topic/discuss-webrtc/cnECxf6CR5U/discussion).
> >> What type of problems are you experiencing?
>
> >> On Wed, Aug 17, 2011 at 9:15 AM, Abhinav Kochhar <
> >> kochhar.abhi...@gmail.com> wrote:
>
> >>> Hi Atin,
>
> >>> Did you try the build on Visual Studo 2010?
> >>> I am trying to do a build on Visual Studio 2010 but facing some
> >>> build errors.
> >>> I hope the points mentioned by you can solve those.
>
> >>> Regards,
> >>> Abhinav
>
> >>> On Tue, Aug 16, 2011 at 10:30 PM, Atin Banerjee <atin.baner...@gmail.com

Atin Banerjee

unread,
Aug 23, 2011, 1:20:50 AM8/23/11
to discuss-webrtc
Hello Abinav,

I have just completed the WebRTC build on Visual Studio 2010. Here are
the
additional instructions:

While building on Visual Studio 2010 there are couple of issues that
one needs to be careful about apart from instructions already provided
in link
http://www.webrtc.org/reference/getting-started/prerequisite-sw :

1) Install VS2010 SP1.
2) In case VS2010 is not detected automatically by GYP or in case you
have multiple versions of Visual Studio in your build machine, then to
generate the .sln/.vcxproj, you need to
i. set GYP_MSVS_VERSION=2010
ii. gclient runhooks
3) For the solutions related to Voice Engine Test and Video
Engine Test using MFC, make sure that it links to MFC library
statically. This gets automatically set in VS2005, but there is a bug
in solution file generator for VS2010.

Regards,
Atin

Vicky

unread,
Aug 27, 2011, 9:57:52 PM8/27/11
to discuss-webrtc
Hello Atin

Thanks for your response. This got me past the debug.pb.h and
debug.pc.cc build errors. However, Im running into the 'cmd.exe'
build error described here:

http://code.google.com/p/webrtc/issues/detail?id=22

I tried running lodctr /r to fix the counters as described, but that
did not fix it either.

This seems to only affect vie_auto_tests project.

Thanks.

On Aug 23, 1:20 am, Atin Banerjee <atin.baner...@gmail.com> wrote:
> Hello Abinav,
>
> I have just completed the WebRTC build on Visual Studio 2010. Here are
> the
> additional instructions:
>
> While building on Visual Studio 2010 there are couple of issues that
> one needs to be careful about apart from instructions already provided
> in linkhttp://www.webrtc.org/reference/getting-started/prerequisite-sw:

Atin Banerjee

unread,
Aug 30, 2011, 2:02:30 AM8/30/11
to discuss-webrtc


Namaste Vicky,

I referred to the link, which you said described the errors faced by
you. Incidently, I too came across the same errors while
building on VS 2010. So I had already included the resolution in the
build instructions in my earlier post. However, in case
you have missed it out, here it is :

For link errors like:
1>libcmtd.lib(crt0.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStartup
1>C:\webrtc\depot_tools\depot_tools\trunk\Debug\vie_win_test.exe :
fatal error LNK1120: 1 unresolved externals
1>
2>libcmtd.lib(wincrt0.obj) : error LNK2019: unresolved external symbol
_WinMain@16 referenced in function ___tmainCRTStartup
2>C:\webrtc\depot_tools\depot_tools\trunk\Debug\voe_ui_win_test.exe :
fatal error LNK1120: 1 unresolved externals

Go to the project properties of voe_ui_win_test->Configuration
Properties->General->Use MFC and set it to use MFC libraries
in static manner.

Hope this helps.

Take Care and Be Good,
Atin

parul singhal

unread,
Oct 15, 2013, 9:43:35 AM10/15/13
to discuss...@googlegroups.com, kochhar...@gmail.com
Hi,
I did same settings as mentioned for directX and updated path in VS2010, but still its giving only these three errors.
Trying to build all.sln from VS2010.
DirectX was installed properly. still these header files are not getting detected. Did i miss anything?
Not able to remove these errors.
Pls help.

Error 10 error C1083: Cannot open include file: 'd3dx9.h': No such file or directory \trunk\webrtc\modules\video_render\windows\video_render_direct3d9.h 18 1 video_render_module
Error 8 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory \trunk\webrtc\modules\video_render\windows\video_render_windows_impl.h 15 1 video_render_module
Error 9 error C1083: Cannot open include file: 'dxdiag.h': No such file or directory \trunk\webrtc\modules\video_render\windows\video_render_windows_impl.h 15 1 video_render_module
Error 22 error LNK1104: cannot open file 'E:\WebRTC\code\trunk\build\Debug\lib\video_render_module.lib' \trunk\webrtc\video_engine\LINK vie_auto_test

Thanks

Fernando Pelliccioni

unread,
May 27, 2014, 8:15:33 PM5/27/14
to discuss...@googlegroups.com, kochhar...@gmail.com
I have the same problem than parul.
Reply all
Reply to author
Forward
0 new messages