Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
18th January 2021, 16:59 | #1 | Link |
Registered User
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
|
Compiling with Microsoft Visual Studio 2019 community edition
Is there a guide somewhere to compile avisynth plugins with Microsoft Visual Studio 2019 community edition? I tried (not sure what I'm doing) but I get random errors, fix one and 10 show up.
|
18th January 2021, 18:45 | #3 | Link |
Registered User
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
|
The fact is that I want to learn how to do it. I'm studying C++ and I'm at a good point so I thought to make some basic plugin (maybe I didn't specify it) so I started with the basic InvertNeg but I can't compile it so I can't get started.
|
18th January 2021, 20:41 | #4 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Fair enough. Try this:
http://rationalqm.us/misc/InvertNeg.rar Just double click on the solution (.sln) file and away you go. |
18th January 2021, 23:29 | #6 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Happy it was useful to you.
You don't need a template or anything. You just create a new bare (empty) DLL project (basic VS 2019 usage), because Avisynth plugins are DLLs. Add your source code and you're done. That includes proper Avisynth/Vapoursynth headers. Most people look for a sample full project like I sent you. The problem is that your InvertNeg link just gives the filter source code and not the full project. Pretty soon you'll be whipping these things out like...confetti? Last edited by videoh; 18th January 2021 at 23:35. |
19th January 2021, 00:04 | #7 | Link |
Registered User
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
|
I see how it works now, didn't occur to me. If I may ask another thing then I promise I'm on my own
I tried compiling Non-clip sample and all of them don't compile giving me errors and warnings while nothing of this happens with InvertNeg and simple-sample. I tried fixing minor mistakes but not much is changed. All the warnings are about avisynth.h that is strange since it gives no problems with the other filters. Can you help me on this? pretty please |
19th January 2021, 03:59 | #8 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
You have to use AvisynthPluginInit3() as shown in my sample. Your linked code is for older Avisynth versions.
Generally, you need to show your actual code and the compiler errors if you want help. We cannot read your mind. |
Thread Tools | Search this Thread |
Display Modes | |
|
|