Install_dependecies not working with 0.10.1 msys2 (windows 10)

Hello,
I have been able to follow the OF installation guide seemingly successfully up until I have to run the command ./install_dependencies.sh`

which just returns this

>

no errors or anything. Is this normal? I have no experience with msys2 so I have no idea. And when I try to run the make file in …/libs/openFrameworksCompiled/project with mingw32 I get this

HOST_OS=MINGW32_NT-10.0-18362
checking pkg-config libraries:   cairo zlib openssl glew glfw3 libcurl
with PKG_CONFIG_LIBDIR=
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
/bin/sh: /mingw32/bin/pkg-config: No such file or directory
/bin/sh: line 0: return: can only `return' from a function or sourced script
makefileCommon/config.shared.mk:291: *** couldn't find cairo zlib openssl glew glfw3 libcurl 0 pkg-config package or it's dependencies, did you run the latest install_dependencies.sh?.  Stop.

so i figure the install_dependencies.sh did not work for some reason

Same for me, using Windows 10 Pro, trying to install dependencies for of 10.1 with no luck.

Hello,

The install_dependencies script indeed has a bug.

Please see this answer to have a temporary solution.

The fix is already in the master branch.

I had the same list of errors, when accidentally run ./install_dependencies.sh under msys2.exe and not mingw64.exe, that I should be using for my msys-x64 and openFrameworks-x64.

From OF Install Guide

You must use the correct corresponding shell. ie: mingw32.exe shell to run the 32bit OF release and mingw64.exe to run the 64bit OF release.