Dear OF community,
for our current project, we’ve forked OpenFrameworks 0.11.0 and made a few changes to its code that fixed some minor warnings and made our lives easier. We worked very hard to produce clean code without any compiler warnings, apart from some minor warnings in OpenFrameworks itself.
Yesterday, an additional programmer was added to the team and he cloned our Git repository, containing our OpenFrameworks fork as a submodule.
After running the
openframeworks/scripts/vs/download_libs.ps1 script from the command line, we would have expected the solution to compile without problems. Instead, it complained about a missing “fmod.h” header file and one or more preprocessor definitions.
We tracked the source of the problem: the
download_libs.ps1 script points to an updated version of OpenFrameworks (0.11.1), which has updated the Fmod library from
fmod. This change was made only a few weeks ago. However, our project files are still for version 0.11.0 and contain no include folders pointing at the new fmod version, nor any additional required settings.
- How can we use the script to download the libraries for 0.11.0 instead of 0.11.1? Is there a way to do this?
- What is the reason we need to run a script to download files? Git provides all the tools to efficiently download all required files of a project, either as part of the repository or as submodules. Solely relying on Git would have prevented us from running a script that points to the wrong (newer) version of OpenFrameworks and break our compilation.
We could of course upgrade to 0.11.1 and rebase our changes onto it, but we’d run into the same problem later on if the download script is changed again. We’d like to prevent this at all cost. In the future, it should always be easy to clone the Git repo and reliably compile the project.