Replies: 1 comment 4 replies
-
You have to add MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
"${MINGW_PREFIX}"/bin/cmake.exe \
-GNinja \
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
"${extra_config[@]}" \
-DBUILD_{SHARED,STATIC}_LIBS=ON \
../${_realname}-${pkgver} Here is a template file for cmake builds https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-PKGBUILD-templates/PKGBUILD.CMake-tarball.sh |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I create a PKGBUILD file to build 'bgfx' library and to create MSYS2/MinGW-64 package. The build goes well, the package is created too, but the package is installed in the wrong directories. I expect to be installed in c:/msys64/mingw64, but it is done in c:/msys64, * .exe files are installed in c:/msys64/bin . What should be done to install to c:/msys64/mingw64?
My PKGBUILD file:
My environment variables:
Beta Was this translation helpful? Give feedback.
All reactions