Oddly when I then launch the MSYS2 MinGW 64 bit shell, and the CD to where I git cloned Rack… and then run make dep, the build fails at openssl …
I then restarted the MSYS2 MinGW 64 bit shell itself, but it now seems make is somehow missing/not in my path.
Any ideas? Is the VCV documentation horribly out of date and thus I’m doomed to fail? Or am I slow and there is some basic MSYS2 issue here I need to fix first?
I’m not on widows, but this could be caused by one of two things:
First, its possible that you don’t have the Borne Shell (or equivalent) installed. Make sure that you install it as part of the MinGW installation. Most probably this is your issue.
If you do have it installed it is possible that cross-platform line ending issues are hitting you. It is trying to execute /bin/sh, but if you have your line ending messed up there could be garbage at the end of the line that you don’t see. GIT is usually smart enough to handle text files for you, but if it is checked in as a binary and you are checking it out as binary it can get confused. Look at the file it is trying to run with a really good editor and see if that’s the case.
As an example, if I transfer a Windows text file as a binary, that line would show up on my machine (Linux) as /bin/sh^M, because text files in Linux end with a line feed, whereas in Windows it is a carriage return/line feed, so the carriage return (^M) is misinterpreted as part of the line. If I were to try to execute it it would fail, because there is no file called sh^M on my machine. This has happened to me numerous times, but like I said, GIT tends to be pretty good, so it’s probably the former.
I had no problems building rack on windows about 3 months ago. It looks like openssl has had a minor version bump since then but I wouldn’t think that would be a problem.
Thanks all for the help. OK looks like I was missing bash … so that’s missing from the VCV rack development enviroment instructions. Think you need an extra “pacman -S sh” in the environment setup instructions.
However, it’s now still failing the openssl build… seems like it’s looking for a directory while compiling, guessing it’s “Rack/dep/lib/engines-1_1” … any ideas?
So weird very … seems like it’s something to do with msys2.
If I , within a msys2 64 bit shell, do a pacman -S mingw-w64-x86_64-gcc make mingw-w64-x86_64-binutils … it re-installs these packages (which are previously installed)… then I run a make dep , it seems to work. Weirdly if i leave the shell it all stops working (i’ve checked my path is OK )… so strange, any ideas?
Now I try to run make (not make dep) … and it’s failing at
$ make
make: *** No rule to make target ‘build/dep/pffft/pffft.c.o’, needed by ‘Rack.exe’. Stop.
OK I went to deps folder and did a make pffft which fixed that issue. It seems like the build instructions are just terribly out of date/wrong/make file needs edits. Now having issues with nanovg / other dep headers…
OK managed to copy a bunch of headers over, build rtaudio (note I had to rename header folder), and install mingw-w64-x86_64-libzip and mingw-w64-x86_64-speexdsp … and still more failures… I am about to just give up.
winmm -lksuser -lshlwapi -lmfplat -lmfuuid -lwmcodecdspuuid -ldbghelp
g++.exe: error: dep/lib/libspeexdsp.a: No such file or directory
g++.exe: error: dep/lib/libsamplerate.a: No such file or directory
g++.exe: error: dep/lib/libzip.a: No such file or directory
g++.exe: error: dep/lib/libz.a: No such file or directory
g++.exe: error: dep/lib/libcurl.a: No such file or directory
g++.exe: error: dep/lib/libssl.a: No such file or directory
g++.exe: error: dep/lib/libcrypto.a: No such file or directory
g++.exe: error: dep/lib/librtaudio.a: No such file or directory
g++.exe: error: dep/lib/librtmidi.a: No such file or directory
Hi all - sorry for my frustration earlier. I reinstalled everything and it’s working fine now… very odd, not sure what the issue was. Anyhow, thanks again for the tips. Now to code some cool stuff hopefully .