Log in

View Full Version : Compiling AviSynth


Pages : 1 2 [3] 4

tolgae
9th January 2005, 22:18
Originally posted by tritical
It is definitely possible, just did it last night :D. It should work fine as long as you have the Platform sdk installed. I'm not really sure if you need the directx sdk anymore or not (I think not). But for me it works fine just doing this:

1.) download source
2.) open workspace and convert to vc 7 project
3.) set configuration to release
4.) build project

EDIT: About needing the platform sdk, I'm not sure if you do or don't. I have it installed and the above process works fine for me.

Which source are you compiling? There's no way that 2.55 sources compile as you download them. Not to mention many warnings about data truncation, here's what I noticed when I tried to compile the source:

1- The custom build command for the asm file has syntax errors
2- The icon file is missing
3- An executable for the post build step is not there.
4- One of the libs supplied is compiled with libc, the rest is msvcrt. I downloaded that lib and compiled it as well...

As you may see, I got it compiled after fixing things and changing the build somewhat. But I would like to know about a source that would compile "out of the box"...

esby
10th January 2005, 04:17
well
I posted that answer,
because last time I tried
I stopped at this error,
and since I have vc6.2 installed too, that's not really a problem for me to compile it...
Now I don't know how to solve this.

esby

tritical
10th January 2005, 04:32
My mistake. The source I was talking about (in both cases, now and a few months ago) was a cvs checkout, not a dl of the source zip. So just ingore my comments.

esby
10th January 2005, 04:35
well I did a cvs checkout before posting.
(the problem is still the same.)

esby

tritical
10th January 2005, 05:04
ok, wanted to figure this out for sure so just did it (this is for vs.net 2003):

1.) fresh cvs checkout (project file, libs, everything)
2.) opened workspace in vs.net 2003, and selected "yes to all" on the convert projects popup
3.) set configuration to release
4.) had to do the usual thing for the custom build step command line on the asm file, which is take out the quotation marks
5.) the soundtouch lib still has problems, replaced it with my own build
6.) compile and it works, has the usual warnings but those are fine

Kopernikus
25th April 2005, 14:34
Hi,

is it possible to compile Avisynth plugins with MinGW? Recently I tried SimpleSample and got errors for a integer typedef (uint32_t iirc).
Now I tried with a newer Version (3.10) it worked.

But if i try to load the dll in an avisynth Script i get a "Script Error: there is no function named: SimpleSample"

Is it in general impossible to compile avs Filters with MinGW, or are there special options to use?

ruanova
16th June 2005, 13:21
Hi...:

In this situation...:

- Windows XP Pro
- Visual Studio .NET 2003
- AviSynth 2.5.5 source downloaded from Sourceforge .zip file
- STLPort 4.6.2, builded in this system with VS7
- AviSynth VS project open and converted to VS7 ...
- STLPort_vc7.lib added in the Lib's of the project
- STLPort includes added in the includes needed to the AviSynth project
- Compiling AviSynth in release mode ... I can't correct this Linker errors:


SoundTouch.lib(SoundTouch.obj) : error LNK2001: símbolo externo "public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const &)" (??0runtime_error@std@@QAE@ABV01@@Z) sin resolver
SoundTouch.lib(FIFOSampleBuffer.obj) : error LNK2001: símbolo externo "public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const &)" (??0runtime_error@std@@QAE@ABV01@@Z) sin resolver
SoundTouch.lib(FIRFilter.obj) : error LNK2019: símbolo externo "public: __thiscall std::runtime_error::runtime_error(class std::runtime_error const &)" (??0runtime_error@std@@QAE@ABV01@@Z) sin resolver al que se hace referencia en la función "public: virtual void __thiscall FIRFilter::setCoefficients(float const *,unsigned int,unsigned int)" (?setCoefficients@FIRFilter@@UAEXPBMII@Z)
SoundTouch.lib(SoundTouch.obj) : error LNK2001: símbolo externo "public: virtual __thiscall std::runtime_error::~runtime_error(void)" (??1runtime_error@std@@UAE@XZ) sin resolver
SoundTouch.lib(FIFOSampleBuffer.obj) : error LNK2001: símbolo externo "public: virtual __thiscall std::runtime_error::~runtime_error(void)" (??1runtime_error@std@@UAE@XZ) sin resolver
SoundTouch.lib(FIRFilter.obj) : error LNK2001: símbolo externo "public: virtual __thiscall std::runtime_error::~runtime_error(void)" (??1runtime_error@std@@UAE@XZ) sin resolver
SoundTouch.lib(SoundTouch.obj) : error LNK2001: símbolo externo "__declspec(dllimport) const std::runtime_error::`vftable'" (__imp_??_7runtime_error@std@@6B@) sin resolver
SoundTouch.lib(FIFOSampleBuffer.obj) : error LNK2019: símbolo externo "__declspec(dllimport) const std::runtime_error::`vftable'" (__imp_??_7runtime_error@std@@6B@) sin resolver al que se hace referencia en la función "private: void __thiscall FIFOSampleBuffer::ensureCapacity(unsigned int)" (?ensureCapacity@FIFOSampleBuffer@@AAEXI@Z)
SoundTouch.lib(FIRFilter.obj) : error LNK2001: símbolo externo "__declspec(dllimport) const std::runtime_error::`vftable'" (__imp_??_7runtime_error@std@@6B@) sin resolver
.\Release/avisynth.dll : fatal error LNK1120: 3 externos sin resolver


Please ... help me ... please....

tsp
16th June 2005, 13:30
recompile SoundTouch 1.2.1 and use that lib. You can get it here (http://sky.prohosting.com/oparviai/soundtouch/old.html)

esby
17th June 2005, 08:32
You don't need stlport for avisynth 2.55 btw.

esby

ruanova
17th June 2005, 09:04
Hi, thanks tsb, thans esby ...

SoundTouch 1.2.1 recompilation sucessfully with VC6 and Processor Pack ...
but now, new errors...:

SoundTouch.lib(SoundTouch.obj) : error LNK2019: símbolo externo "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) sin resolver al que se hace referencia en la función "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z)
SoundTouch.lib(FIFOSampleBuffer.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) sin resolver
SoundTouch.lib(FIRFilter.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) sin resolver
SoundTouch.lib(SoundTouch.obj) : error LNK2019: símbolo externo "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ) sin resolver al que se hace referencia en la función "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::assign(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ABV12@II@Z)
SoundTouch.lib(FIFOSampleBuffer.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ) sin resolver
SoundTouch.lib(FIRFilter.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xran(void)" (?_Xran@std@@YAXXZ) sin resolver
.\Release/avisynth.dll : fatal error LNK1120: 2 externos sin resolver


Sorry .... I need help again ...
But, can send me your "SoundTouch.lib" and your "AviSynth.dsw, .dsp, .snl, or .vcproj" with the project options set to OK ...

Thanks again,

tsp
17th June 2005, 11:02
sorry I was a little to fast to reply. You will have to set the Runtime Library under C/C++ codegeneration to Multi-threaded DLL when you compile the SoundTouch lib with VS .NET 2003 (you should use the same compiler you want to compile avisynth with). If that doesn't work I will send the file to you.

ruanova
17th June 2005, 12:48
Oooooooohhhhhh.... yeah.... That's all folks...!
Thank's tsp (I'm like 'a little to fast replies..'...)

Now I compile succesfully AviSynth project ... but comenting some lines on "avs-soundtouch.cpp" :

Lines like:

gotsamples = samplers[n]->receiveSamples(passbuffer, BUFFERSIZE - samples_out);
samplers[n]->putSamples(passbuffer, BUFFERSIZE);
...

This lines make this errors:

audio\avs-soundtouch.cpp(158) : error C2664: 'uint FIFOProcessor::receiveSamples(soundtouch::SAMPLETYPE *,uint)' : no se puede convertir el parámetro 1 de 'SFLOAT *' a 'soundtouch::SAMPLETYPE *'
Los tipos seńalados no están relacionados; la conversión requiere reinterpret_cast, conversión de estilo de C o conversión de estilo de función


(Sorry my Visual Studio are in Spanish ....)

tsp
17th June 2005, 12:57
hmm forgot about that one to. There are two solution. 1) use the latest CVS source or 2) change the calls to receiveSamples(passbuffer,blablalba) to receiveSamples((short*)passbuffer,blablalba) and putSamples(passbuffer,blablalba) to putSamples((short*)passbuffer,blablalba). This will make it compile but I'm not entirely sure how it would affect the sound

ruanova
17th June 2005, 13:34
He babes ... tsp is a great man ...( or woman..)

OK, thanks again...
Now I am going to eat...
Tonight it will investigate in the secrets of AviSynth ...

pgb
20th June 2005, 08:29
Hi folks,

I'm not having much luck compiling. I've done a CVS checkout, installed the DirectX 9 SDK and the Platform SDK. Under Visual Studio 6 (SP5, Processor Pack) I can't compile the DirectShow plugin, and under Visual Studio 2003 .NET I can't compile the DirectShow plugin or Avisynth itself.

For Visual Studio 6, my directories are:

Include Directories:

Platform SDK\...\Baseclasses
DirectX 9 SDK (June 2005)\Include
Platform SDK\Include
VC98\Include
VC98\MFC\Include
VC98\ATL\Include

Library Directories:

Platform SDK\...\Baseclasses\Debug
Platform SDK\...\Baseclasses\Release
DirectX 9 SDK (June 2005)\Lib\X86
Platform SDK\Lib
VC98\Lib
VC98\MFC\Lib

Here are the errors I get:

directshow_source.cpp
D:\User Files\Visual Studio Projects\Visual C++\avisynth\src\plugins\DirectShowSource\directshow_source.cpp(295) : error C2065: 'lstrcpyW_instead_use_StringCbCopyW_or_StringCchCopyW' : undeclared identifier
D:\User Files\Visual Studio Projects\Visual C++\avisynth\src\plugins\DirectShowSource\directshow_source.cpp(1109) : error C2065: 'wsprintf_instead_use_StringCbPrintf_or_StringCchPrintf' : undeclared identifier
D:\User Files\Visual Studio Projects\Visual C++\avisynth\src\plugins\DirectShowSource\directshow_source.cpp(1192) : error C2065: 'strcat_instead_use_StringCbCatA_or_StringCchCatA' : undeclared identifier
Error executing cl.exe.

Under Visual Studio .NET 2003, my directories are:

Include Directories:

Platform SDK\...\Baseclasses
DirectX 9 SDK (June 2005)\Include
Platform SDK\Include
VCInstallDir\Include
VCInstallDir\ATLMFC\Include

Library Directories:

Platform SDK\...\Baseclasses\Debug
Platform SDK\...\Baseclasses\Release
DirectX 9 SDK (June 2005)\Lib\x86
Platform SDK\Lib
VCInstallDir\Lib
VCInstallDir\ATLMFC\Lib

And the errors are:

directshow_source.cpp
d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\plugins\DirectShowSource\directshow_source.h(202) : error C2761: '__ctor' : member function redeclaration not allowed
d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\plugins\DirectShowSource\directshow_source.h(203) : error C2761: 'HRESULT GetSampleEnumPins::Next(ULONG,IPin ** ,ULONG *)' : member function redeclaration not allowed
directshow_source.cpp(295) : warning C4995: 'lstrcpyWInternal': name was marked as #pragma deprecated
directshow_source.cpp(295) : error C3861: 'lstrcpyWInternal': identifier not found, even with argument-dependent lookup
directshow_source.cpp(339) : warning C4995: 'lstrcpyWInternal': name was marked as #pragma deprecated
directshow_source.cpp(339) : error C3861: 'lstrcpyWInternal': identifier not found, even with argument-dependent lookup
directshow_source.cpp(1109) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
directshow_source.cpp(1109) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
directshow_source.cpp(1192) : warning C4995: 'strcat': name was marked as #pragma deprecated
directshow_source.cpp(1193) : warning C4995: 'strcat': name was marked as #pragma deprecated
directshow_source.cpp(1194) : warning C4995: 'strcat': name was marked as #pragma deprecated
directshow_source.cpp(1195) : warning C4995: 'strcat': name was marked as #pragma deprecated

avisynth
Assembling d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\convert\convert_a.asm...
Microsoft (R) Macro Assembler Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
MASM : fatal error A1017: missing source filename
Project : error PRJ0019: A tool returned an error code from "Assembling d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\convert\convert_a.asm..."

Can anyone offer any advice, please?

Many thanks,
PGB.

Wilbert
20th June 2005, 19:20
I'm not having much luck compiling. I've done a CVS checkout, installed the DirectX 9 SDK and the Platform SDK. Under Visual Studio 6 (SP5, Processor Pack) I can't compile the DirectShow plugin (...)

For Visual Studio 6, my directories are:

Include Directories:

Platform SDK\...\Baseclasses
DirectX 9 SDK (June 2005)\Include
Platform SDK\Include
VC98\Include
VC98\MFC\Include
VC98\ATL\Include

Library Directories:

Platform SDK\...\Baseclasses\Debug
Platform SDK\...\Baseclasses\Release
DirectX 9 SDK (June 2005)\Lib\X86
Platform SDK\Lib
VC98\Lib
VC98\MFC\Lib

Seems to be fine. Did you recompile baseclasses.dsp first (in ...\DX90SDK\Samples\C++\DirectShow\BaseClasses)? I don't know whether it's still necessary.

pgb
20th June 2005, 22:15
Thanks for the reply, Wilbert.

I did compile the baseclasses under VS .NET in both debug and release modes.

Would it make a difference if I compiled them under VS6?

Many thanks,
PGB.

tsp
21st June 2005, 14:12
avisynth
Assembling d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\convert\convert_a.asm...
Microsoft (R) Macro Assembler Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
MASM : fatal error A1017: missing source filename
Project : error PRJ0019: A tool returned an error code from "Assembling d:\User Files\Visual Studio Projects\Visual C++\Copy of avisynth\src\convert\convert_a.asm..."

to fix this error you need to change the quotes in the custom build preferences for the convert_a.asm

pgb
21st June 2005, 15:20
Hi tsp,

Thanks for the help. That's got me past that hurdle, now I'm stuck on:

avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: void __thiscall SoundTouch::setSampleRate(unsigned int)" (?setSampleRate@SoundTouch@@QAEXI@Z) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: void __thiscall SoundTouch::setChannels(unsigned int)" (?setChannels@SoundTouch@@QAEXI@Z) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: void __thiscall SoundTouch::setPitch(float)" (?setPitch@SoundTouch@@QAEXM@Z) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: void __thiscall SoundTouch::setTempo(float)" (?setTempo@SoundTouch@@QAEXM@Z) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: void __thiscall SoundTouch::setRate(float)" (?setRate@SoundTouch@@QAEXM@Z) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
avs-soundtouch.obj : error LNK2019: unresolved external symbol "public: __thiscall SoundTouch::SoundTouch(void)" (??0SoundTouch@@QAE@XZ) referenced in function "public: __thiscall AVSStereoSoundTouch::AVSStereoSoundTouch(class PClip,double,double,double,class IScriptEnvironment *)" (??0AVSStereoSoundTouch@@QAE@VPClip@@NNNPAVIScriptEnvironment@@@Z)
.\Release/avisynth.dll : fatal error LNK1120: 6 unresolved externals


Which looks like the problem ruanova was having (albeit in Spanish!). I'm just trying to compile the Soundtouch 1.2.1 library, but getting an "ambiguous call to overloaded function"... I'll keep you posted...

.................

Yes, that's done it. I had to change a 2 to 2.0 in the soundtouch source code to make it compile, but that's sorted out the problems on compiling Avisynth.

Any ideas on the DirectShowSource compile problem? That's still there...

Many thanks,
PGB.

tsp
21st June 2005, 15:36
pgb: I just compiled avisynth with visual c++ 2005 Express Edition. That was really a pain because the compiler is much more strict than vc++ 6 and vc++ NET 2003 by default.

you will need to change the the functions the error points to from something like this:
pow(2,bufferblablalba) to this pow((float)2,(int)bufferblablabla).

pgb
22nd June 2005, 10:39
Thanks very much, tsp and Wilbert. I've got avisynth compiling happily under VS .NET 2003. I think I'll hold off on the 2005 edition till I have to use it for work!

All the best, guys,
PGB.

azsd
14th July 2005, 09:59
I am using vs 2003 with intel cpp complier 9.0, first I get lots complier error,atfer change the special source files complie by cl.exe,modify the asm build command,complier error disappeared,and get link error like some posts here.

then I have download SoundTouch 1.3.0 and replaced soundtouch.lib and soundtouch.h,
and get the avisynth.dll/TCPDeliver.dll generated successful.

when compling DirectShowSource project,
I Get this Error
directshow_source.cpp(296): error: identifier "lstrcpyWInternal" is undefined
It's defined in wxutil.h in baseclasses directionary.
Is this defination replaced sdk's lstrcpyw def?
I have tried to include windows.h after #include <streams.h> in directshow_source.h but it take no help.

I have no idear now,Is there some tips? thx

jobjon
20th November 2005, 09:18
The newest platform sdk(2003) seems to comment out APIs in wxutil.h
from the following line,

// these internal routines and the binary will not run on Win95.
so removing comment out, it may work fine.

devaster
20th April 2006, 06:10
i have a small problem: i use tortoise cvs(or svn) and i cannot download a source for avisynth its asking me for login name and password ...
how or where can i obtain it ???

esby
20th April 2006, 08:58
try using anonymous and no password ?

esby

devaster
2nd May 2006, 23:36
update: baseclasses are not in latest directx sdk (april 2006) but are in latest platform sdk (2006) => i think than the dx sdk is not in use anymore ...

devaster
12th June 2006, 20:12
i have a small problem : compiler says at :

YUV2RGB_PROC mmx_YUY2toRGB24,0,0
YUV2RGB_PROC mmx_YUY2toRGB32,0,1

this :

Error 1 error A2070: invalid instruction operands h:\comp\Avisynth\src\convert\convert_a.asm 290

huh ???

foxyshadis
12th June 2006, 21:52
Check the last paragraph here: http://forum.doom9.org/showthread.php?t=111960

Point the custom build step to the 7.1 ml.exe (I made new folders for 6 and 7.1), and add -safeseh to the command line.

devaster
13th June 2006, 05:35
thanx fs

devaster
15th June 2006, 21:58
o holy god i have now this problem :

Error 448 error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in SoundTouch.lib(SoundTouch.obj) msvcprt.lib
Error 449 error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in SoundTouch.lib(SoundTouch.obj) msvcprt.lib
Error 450 error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in SoundTouch.lib(SoundTouch.obj) msvcprt.lib
Error 451 error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in SoundTouch.lib(SoundTouch.obj) msvcprt.lib
Error 452 error LNK2005: "public: static unsigned int __cdecl std::char_traits<char>::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in SoundTouch.lib(SoundTouch.obj) msvcprt.lib
Error 453 error LNK2005: __invalid_parameter_noinfo already defined in MSVCRT.lib(MSVCR80.dll) LIBCMT.lib
Error 455 fatal error LNK1169: one or more multiply defined symbols found h:\comp\Avisynth\avisynth\src\Release\avisynth.dll 1


what the hell ... iam so old and stupid ??? :stupid:

VS2005 proffesional,Platform SDK (latest),DirectX SDK (latest),Windows Media SDK (latest), Windows KMDF + DDK (latest)

tsp
15th June 2006, 22:18
did you recompile soundtouch 1.3.0?

IanB
16th June 2006, 04:55
Please state which compiler you are using when asking for help!

The current code base is explicitly for Visual C++ 6 with the Processor Pack add on.

Using both 2003, 2005 and 2005 Express compilers is possible but will require some changes. Please feel free to openly discuss any issues you find so other may benefit from your experiences.

Be aware the 2005 RT environment changes the way system exceptions are handled and processed. So your builds may not respond as expected to error conditions.

devaster
16th June 2006, 21:30
did you recompile soundtouch 1.3.0?

Yes I have the latest source recompiled ...

devaster
16th June 2006, 21:34
I thing i have it :
is the problem in this that I must use a MSVCR60.dll not a MSVCR80.dll ???
MSVCR60.dll is located in distrib dir (i thing )

Sergejack2
9th July 2006, 16:22
I have VS 2005 Express and I want to create a filter.
What do I need to successfully compile it?

Guest
9th July 2006, 16:24
You have everything you need. Have you tried to make one yet?

Sergejack2
9th July 2006, 16:37
You have everything you need. Have you tried to make one yet?

I don't know what I need (some sdk?).
I tried to compile it and I got an error (ml.exe cannot be found).

Guest
9th July 2006, 17:20
If your filter has assembler, you need MASM:

http://www.microsoft.com/downloads/details.aspx?FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64&DisplayLang=en

Sergejack2
9th July 2006, 17:34
If your filter has assembler, you need MASM:

http://www.microsoft.com/downloads/details.aspx?FamilyID=7a1c9da0-0510-44a2-b042-7ef370530c64&DisplayLang=en

My filter doesn't but avisynth does.
Thanks.

EDIT : I can't install it, MASM doesn't recognize my VS2005Express (surely because it's the french version).
Well then "Best regards to Microsoft.".

foxyshadis
9th July 2006, 20:32
You need an updated Win2003 Platform SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en) with every version of VS2005, that might be why MASM is complaining. And even if it isn't, you don't need MASM for filters with inline asm, which is the vast majority. (You also don't need to recompile Avisynth to develop filters.) However, you can still get ahold of it by manually extracting it from the installer.

Sergejack2
10th July 2006, 11:10
You need an updated Win2003 Platform SDK (http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en) with every version of VS2005, that might be why MASM is complaining. And even if it isn't, you don't need MASM for filters with inline asm, which is the vast majority. (You also don't need to recompile Avisynth to develop filters.) However, you can still get ahold of it by manually extracting it from the installer.

It didn't help to install MASM.
Now, I have a solution with the avisynth project and my filter's project but when I try to generate my project only, files from the avisynth project aren't found (ie : avisynth.h).

EDIT : I got through it the heavy way, including each and every dir of avisynth in the directories to include.
I'm sure there's a more convenient yet to be discovered somehow hidden way to do it.

foxyshadis
10th July 2006, 19:32
I usually just start my projects from an existing filter, if you look at their sources the only part of avisynth included is avisynth.h (which usually should be in the same folder as your filter). Simplesample is a good way to start, it should compile a working filter right out of the box.

Fizick
2nd December 2006, 15:27
what is PFC.LIB ? Is it part of foobar2k SDK?
what it doing? :)

IanB
3rd December 2006, 03:17
See avisynth2\avisynth\src\audio\supereq.h and ssrc.h it's used in Naoki Shibata's audio code.

foxyshadis
18th December 2006, 10:02
Ian, the 2.6 branch still isn't populated on sf.net. It it possible to get a source tarball, since the installer doesn't include one, or at a minimum the latest avisynth.h?

IanB
18th December 2006, 12:25
Access branch "avisynth_2_6" in the main tree. The empty 2.6 directory is a furphy caused by someone finger trouble.

See http://avisynth2.cvs.sourceforge.net/avisynth2/avisynth/src/?pathrev=avisynth_2_6

Jocko Homo
8th January 2007, 16:09
I'm having trouble building from the source for 2.5.7-RC3.

I get this error when building DirectShowSource():
avisynth\src\plugins\directshowsource\directshow_source.cpp(590) : error C3861: 'lstrcpyWInternal': identifier not found

Now, I know someone is going to say that it's in wxutil.h but it's commented out (by Microsoft!) and for a reason. It's not available in the library so it will just result in an unresolved symbol.

Any help is greatly appreciated.
Thank you...

Jocko Homo
8th January 2007, 16:10
Perhaps, more importantly, when building the avisynth project, in particular, I get the following error:
.\convert\convert_a.asm(290) : error A2070: invalid instruction operands...in response to this code:
YUV2RGB_PROC MACRO procname,uyvy,rgb32

; ...lots of code in between...

YUV2RGB_PROC mmx_YUY2toRGB24,0,0
How do I get my assembler to assemble this?
Thank you...

Fizick
8th January 2007, 16:16
It seems, that I know aswer to your second question only,
about convert_a.asm
Probably you use masm8. I fixed convert_a.asm in avisynth2.6 branch for masm8 compatibility. See link http://avisynth2.cvs.sourceforge.net/avisynth2/avisynth/src/?pathrev=avisynth_2_6

Jocko Homo
8th January 2007, 22:12
Okay, something seriously weird is going on.

First of all, I guess I should confess that I'm trying to compile Avisynth using the very latest MS development environment, VC++ 2005 Pro. There's absolutely no reason why this shouldn't work but it's not working.

Now, the weird thing is that the project is trying its damndest to link against libc.lib. There are actually two weird things. First, I have no libc.lib library. You'd think that I would have a copy of the standard C library but it's nowhere to be found on my system. Secondly, the project desperately wants to link against this library and ignores anything else I have to say. I have specified that this library should be ignored but the linker is, in fact ignoreing me and tries to link against it anyways! What the hell is that!

I have no idea what's going on anymore and the world makes no sense whatsoever and no one else in the world is experiences what I am if google and the internet mean anything at all...

Any help is greatly appreciated. Thank you...