Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Virtualdub Compile In Vs 2010 Failed, build issue
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
reandr
Posted: Oct 3 2011, 08:15 PM


Newbie


Group: Members
Posts: 2
Member No.: 33249
Joined: 3-October 11



i tried to build virtualdub 1.9.11 source
on visual studio 2010 with windows sdk 7.0a
and Microsoft DirectX SDK (June 2010).

solution conversion from 2008 to 2010 is ok.
but the conversion is incomplete.

when build, much error occurred.
almost errors maybe come from virtualdub build path related issues.
and copied missing qedit.h from 6.1 sdk.

after many manual fixing , build was ok except for only one final problem.

=============================


1>------ Build started: Project: Riza, Configuration: Release Win32 ------
1> cap_dshow.cpp
1> To compile qedit.h you must install the DirectX 9 SDK, to obtain the dxtrans.h header.
1>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2664: '`anonymous-namespace'::VD_MSCOMAutoPtr<T,T_IID>::VD_MSCOMAutoPtr(const `anonymous-namespace'::VD_MSCOMAutoPtr<T,T_IID> &)' : cannot convert parameter 1 from 'int' to 'const `anonymous-namespace'::VD_MSCOMAutoPtr<T,T_IID> &'
1> with
1> [
1> T=IMoniker,
1> T_IID=& _GUID_0000000f_0000_0000_c000_000000000046
1> ]
1> Reason: cannot convert from 'int' to 'const `anonymous-namespace'::VD_MSCOMAutoPtr<T,T_IID>'
1> with
1> [
1> T=IMoniker,
1> T_IID=& _GUID_0000000f_0000_0000_c000_000000000046
1> ]
1> No constructor could take the source type, or constructor overload resolution was ambiguous
1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,VDStringW>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=`anonymous-namespace'::IMonikerPtr,
1> _Ty2=VDStringW,
1> _Ty=int,
1> _Other1=int,
1> _Other2=VDStringW
1> ]
1> source\cap_dshow.cpp(1639) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<int,VDStringW>(_Other1 &&,_Other2 &&)' being compiled
1> with
1> [
1> _Ty1=`anonymous-namespace'::IMonikerPtr,
1> _Ty2=VDStringW,
1> _Other1=int,
1> _Other2=VDStringW
1> ]
2>------ Build started: Project: VirtualDub, Configuration: Release Win32 ------
2> Assembling: a_bitmap.asm
2> Assembling: a_chromasmoother.asm
2> Assembling: a_convertout.asm
2> Assembling: a_histogram.asm
2> Assembling: a_scene.asm
2> Assembling: a_yuv422torgb.asm
2> Assembling: a_mjpgdec.asm
2> Assembling: a_yuv2rgbhq.asm
2> Assembling: a_yuvtable.asm
2> Assembling: a_brightcont.asm
2> Assembling: a_cmult.asm
2> Assembling: a_convolute.asm
2> Assembling: a_grayscale.asm
2> Assembling: a_reduce.asm
2> Assembling: A_resize.asm
2> Assembling: a_rotate.asm
2> Assembling: a_sharpen.asm
2> Assembling: a_threshold.asm
2> Assembling: a_tv.asm
2> Assembling: a64_resize.asm
2>LINK : fatal error LNK1181: cannot open input file 'D:\VirtualDub-1.9.11-src\lib\Release\Riza.lib'
========== Build: 0 succeeded, 2 failed, 11 up-to-date, 0 skipped ==========
 
     Top
reandr
Posted: Oct 3 2011, 08:40 PM


Newbie


Group: Members
Posts: 2
Member No.: 33249
Joined: 3-October 11



hmm , i `v read now old thread about this issue.
and found solution.
just add (IMoniker *) to NUL in cap_dshow.cpp
now build ok, finally i got virtualdub.
=====================

mAudioDevices.push_back(tDeviceVector::value_type((IMoniker *)NULL, VDStringW(fi.achName)));

======================

and successfully compiled new 1.10.1-test12 also( resolved some link issue(/MT))

1.9.11 AND 1.10.1 screenshot

user posted image
user posted image
 
     Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
1 replies since Oct 3 2011, 08:15 PM Track this topic | Email this topic | Print this topic

<< Back to VirtualDub Development Forum