DBraun / TD-JUCE

JUCE audio and VSTs in TouchDesigner
Other
36 stars 3 forks source link

F5 doesn't rebuild all projects #2

Open elvin101 opened 3 years ago

elvin101 commented 3 years ago

Greetings from Poland!

First of all thanks for sharing this repo. I am look for some reverb for TouchDesigner audio for my art school project.

Back to the point, after doing everything just like you wrote in "README.md" (I have Windows 10 x64), I came across an issue when I have build in Release in Visual Studio. There is no sound in "cplusplus1". Also I don't see a file called "TD-JUCE-Reverb.dll" in directory /Plugins. I use TouchDesigner Build 2020.26630.

image

image

I would be grateful if you could help me with this.

I am looking forward to hearing from you.

DBraun commented 3 years ago

Hello! Thanks for trying out the repo.

It's definitely a problem that there's no TD-JUCE-Reverb.dll in the plugins folder. Can you check that it isn't somewhere inside the build directory? Were there any errors when building in Release with Visual Studio? I just did the instructions again and got Build: 4 succeeded, 0 failed, 0 up-to-date on the first run.

Also, I see that you're putting files in C:/Program Files/Derivative/TouchDesigner/Samples. I would recommend putting your github repositories somewhere else such as C:\Github or C:\users\myaccount\Github.

If you want plugins to appear in all TouchDesigner projects then you'd put the DLLs in C:\Users\myusername\Documents\Derivative\Plugins not in the C:/Program Files area.

elvin101 commented 3 years ago

Thanks for quick response! I can't find Plugins directory anywhere on my computer, looked also in C:\Users\myusername\Documents\Derivative\Plugins but it isn't there.

Today I gave my issue one more shot, I have compiled individualy TD-JUCE-Reverb.dll and it has appeared!

image

But unfortunately the cplusplus1 still doesn't work :(

image

Later I have deleted everything and done as you wrote. Still doesn't work. Would you mind looking on this?

`1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------

1>Checking Build System

2>------ Build started: Project: TD-JUCE, Configuration: Release x64 ------

2>Building Custom Rule C:/Users/Elvin/Documents/GitHub/TD-JUCE/CMakeLists.txt

2>include_juce_audio_basics.cpp

2>include_juce_audio_formats.cpp

2>include_juce_core.cpp

2>include_juce_data_structures.cpp

2>include_juce_dsp.cpp

2>include_juce_events.cpp

2>Generating Code...

2> Creating library C:/Users/Elvin/Documents/GitHub/TD-JUCE/build/Release/TD-JUCE.lib and object C:/Users/Elvin/Documents/GitHub/TD-JUCE/build/Release/TD-JUCE.exp

2>TD-JUCE.vcxproj -> C:\Users\Elvin\Documents\GitHub\TD-JUCE\build\Release\TD-JUCE.dll

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

As you see TD-JUCE-Reverb.dll is not creating on its own.

Maybe I am doing something wrong in Visual Studio? I choose here Realese and click F5 button.

image

Also I am sending you debug.txt if it matters. Sorry for trouble, I am from an art habitat and programming is for me something completly new.

DBraun commented 3 years ago

Yes you have to create C:\Users\myusername\Documents\Derivative\Plugins yourself, but that isn't a necessary step for this project.

The behavior I want to happen is for F5 to build all the projects. I've realized F5 is only building TD-JUCE and not projects such as TD-JUCE-Reverb. If instead you use the Build drop-down menu, you can build all solutions and then use F5 to debug.

2020-10-24 13_18_17-TD-JUCE - Microsoft Visual Studio

I will leave this issue open until the F5 behavior is improved.

elvin101 commented 3 years ago

Thank you for your reply.

Build Solutions seems to have worked quiet good. Here is what have happened Build.txt. 4 succeeded, 1 skipped.

Later I debuged and it has launched TouchDesigner as before, but the situation in the project is still the same with cplusplus1. I don't know but maybe this files can help us: Build Debug.txt, Debug Debug.txt?

It seems we are close to the solution :)

DBraun commented 3 years ago

Cool, I'm not too worried about the skipped one. Do you have TD-JUCE-Reverb.dll now in the repo's plugin folder? Once the TouchDesigner project opens do you toggle the "Unload plugin" parameter on the Reverb plugin CHOP? I keep it unloaded in case I want to make a change to the network before I load it.

elvin101 commented 3 years ago

Oh yes, it works! Sorry I was everytime toggling it before, but yesterday it was middle of the night in Poland, I was tired and forgot to do that this time. Big thanks mate!