You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,30 +59,44 @@ Note that the configure command when building Lame is slightly different from in
47
59
### Prerequisites:
48
60
*[CMake version >= 3.24.1](https://cmake.org/download/) (This link actually takes you to the latest version)
49
61
* ninja
50
-
* ccache (Ensure that ccache is actually on the path: `which g++ gcc` should return `/usr/local/opt/ccache/libexec/g++ /usr/local/opt/ccache/libexec/gcc
51
-
`, or something similar.)
52
62
53
63
### Steps:
54
64
55
65
1. Clone the repository, making sure to use `--recurse-submodules` to clone JUCE as well.
2. Build Lame. This project includes a quirked up version of [LAME](https://lame.sourceforge.io/), so even if you have LAME installed already, you still need to do this step.
2. Clone the repo with `git clone --recurse-submodules https://github.com/ArdenButterfield/Maim` (Recursive to make sure git clone also hits JUCE).
98
124
99
-
3. Inside your local project, navigate to `Source/lib/lame`. (This is a quirked up version of [LAME](https://lame.sourceforge.io/) included in the project, so even if you have LAME already installed, you still need to do this step.)
125
+
3. Inside your local project, navigate to `lib/lame`. (This is a quirked up version of [LAME](https://lame.sourceforge.io/) included in the project, so even if you have LAME already installed, you still need to do this step.)
100
126
101
127
4. Copy the file called `configMS.h` into `libmp3lame/config.h` (you would presumably copy one of the other config files if you were on a different OS).
102
128
103
129
5. Launch the command window `x64 Native Tools Command Prompt for VS 2022` which you can find from the start menu if you have Build Tools for Visual Studio 2022 installed.
104
130
105
-
6. Inside the command window, run `cd [Path to root directotry of local project]/Source/lib/lame`.
131
+
6. Inside the command window, run `cd [Path to root directory of local project]\lib\lame`.
106
132
107
133
7. Then run `nmake dll -f Makefile.MSVC comp=msvc asm=n`.
108
134
109
-
8. Hopefully the build should succeed, and you can now see the built file `Source/lib/lame/output/libmp3lame-static.lib`.
135
+
8. Hopefully the build should succeed, and you can now see the built file `lib/lame/output/libmp3lame-static.lib`.
110
136
111
137
9. Before we open up the project in CLion, there's even more hoops we need to jump through. (Isn't that what you wanted to hear?) CLion must be run with administrator privileges to install the VST file correctly. If you installed CLion yourself, then you can probably right-click, "Run as Administrator". If you installed CLion through JetBrains Toolbox, click on the vertical dots next to CLion in the list, click "Settings" in the dropdown, the click on "Configuration". Toggle "Run as administrator".
112
138
113
139
10. Open up the project in CLion. It's gonna start trying to load the CMake project and there's going to be errors because we need to change the CMake settings first.
114
140
115
-
11. Go to `File | Settings | Build, Execution, Deployment | CMake`. In the `CMake options:` field, place in `-DLAME_LIB=Source\lib\lame\output\libmp3lame-static.lib`, the path to our built file.
141
+
11. Go to `File | Settings | Build, Execution, Deployment | CMake`. In the `CMake options:` field, place in `-DLAME_LIB=lib\lame\output\libmp3lame-static.lib`, the path to our built file.
* If the build fails and you get a message like `file INSTALL cannot set permissions on "C:\Program Files\Common File/VSt3/Maim.vst3": Permission denied.`, it might be for two reasons. The first is that you didn't follow my instructions on giving the build adminsitrator privileges. The second is because your audio workstation is currently using the previously built VST file. You have to close it to rebuild.
156
+
* If the build fails and you get a message like `file INSTALL cannot set permissions on "C:\Program Files\Common File/VSt3/Maim.vst3": Permission denied.`, it might be for two reasons. The first is that you didn't follow my instructions on giving the build administrator privileges. The second is because your audio workstation is currently using the previously built VST file. You have to close it to rebuild.
0 commit comments