Enjoying CLion with macOS at the moment, but this vs 2022 feature sounds amazing for DSP and UI development:
CMake support is also planned. Someone already tried this with juce?
Enjoying CLion with macOS at the moment, but this vs 2022 feature sounds amazing for DSP and UI development:
CMake support is also planned. Someone already tried this with juce?
Just tried it without success.
Matt
I hoped so much that it works. Maybe we will find a way to make it work in the future. I thought about building a standalone plugin and use this as a basis for hot reload. Hope i have time to try this in the next time.
I believe Projucer did this long time before Visual Studio and many similar others (Runtime Compiled C/C++, Ctoy, hotreload, blazor, etcâŠ)
Its already there inside Projucer. Enjoy it!
God blesses!!!
Best regards,
Sanyaade
I donât use Projucer anymore and switched to CMake a while ago. I tried it in the past with Projucer, but i had not much success with that feature.
Okay! I was planning to use this in my programming classes.
Could it be just turn a off/on features or will it be removed entirely?
I will do more research this weekend on other possibilities. I need this for HND/FDSc lessons.
God blesses!!!
Best regards,
Sanyaade
In the topic linked above they say that itâs removed with JUCE 6.1. I havenât used the Projucer for over a year now since we ported all our projects to use CMake, so I canât even say if itâs really no longer part of the current Projucer since itâs not installed on my machine anymore.
However, incremential rebuild times are fairly fast on modern computers for simple showcase projects anyway, so is the live build engine really that crucial for your use-case?
Slightly off-topic: Especially if you are giving classes, why not teaching modern approaches from the beginning on and show your students how modern industry standard projects are developed with CMake instead of sticking to the old Projucer approach? With tools like VScode you have the advantage of being able to use the same free tools for every operating system, so this is what Iâd probably pick today if I was giving classes. But you might have good reasons to do it differently, so just a thought
I could have gone that way but:
With Visual Studio, I spent more time supporting my students, getting to run for my students than teaching the classes, etcâŠ
CMake: I used it in my other projects. CMake is a project/packager manager along line of Make, Scons, Cargo, Alire (Ada), etc⊠that I am using in my other projects
I will spend the weekend on this!
God blesses!!!
Best regards,
Sanyaade
It works if I set the projucer setting as,
Hot reloading does not make much of a difference on my machine though.
Please can you share more about what you did to get this working? So keen to get this working, but no progress yet!
Hi Jamie,
In the projucer, under the âVisual Studio 2022â, for the âDebugâ configuration, set the âDebug Information Formatâ to "Program Database for Edit And Continue (/ZI) "and âIncremental Linkingâ to âEnabledâ like it is in the above picture.
In Visual Studio, make sure you have selected the âDebugâ configuration and run the program. Now, make any changes in any functions and press hot reload. It should recompile only what you have edited and link it on the fly.
Here the project that was used,
NewProject.zip (65.7 KB)
Thank you so much for taking the time to make this demo project!
I now realise the problem I had was not using the VS2022 exporter instead of using the VS2019 exporter which was then opening VS2022 since it was the default program for .sln files.
Working all well and good on my end! Thank you so much
As of recently, if you set the âVisual Studio Version Selectorâ program as the default program for .sln files, JUCE projects will automatically open with the version of VS that matches the exporter.
Iâm pretty sure something is up with my setup, since even with I âOpen Withâ âVisual Studio Version Selectorâ it immediately opens VS2019 without any prompting.
I had that too until I used Open With and clicked âalways use this app to openâŠâ
Did someone have success enabling hot reload when opening the cmake solution in visual studio 2022 for a standalone plug-in?
I added the following lines to the cmake file without success:
set(CMAKE_CXX_FLAGS_DEBUG "/ZI")
set(CMAKE_EXE_LINKER_FLAGS "/INCREMENTAL")
Always get the message that hot reload is not possible. It works when I open the visual studio solution and enable it manually in the project settings.