- 1 year ago
Building AGG in msys2 causes error Invalid configuration `x86_64-pc-msys': system `msys' not recognized
Comment
1 / 1
The error "Invalid configuration x86_64-pc-msys': system
msys' not recognized" typically occurs when trying to build a package in MSYS2 that requires the `msys' system configuration, but the configuration is not recognized.
To resolve this issue, you can try the following steps:
Update MSYS2:
- Open the MSYS2 terminal.
- Update the package database and core system packages by running the following commands:csharp
pacman -Sy
pacman -S --needed base-devel
Check the MSYS2 system configuration:
- Open the MSYS2 terminal.
- Run the following command to check the system configuration:bash
uname -a
- Ensure that the output includes the
msys
keyword, such asMINGW64_NT-10.0-XXX-MSYS
.
Install required packages:
- Ensure that the required build tools and dependencies are installed in MSYS2.
- You can install packages using the
pacman
package manager. For example, to install the necessary build tools, run:pacman -S mingw-w64-x86_64-toolchain
Set the MSYS2 environment variables:
- Make sure that the MSYS2 environment variables are set correctly.
- Open the MSYS2 terminal and run the following command:arduino
export MSYS=winsymlinks:nativestrict
After performing these steps, try building AGG again in MSYS2. If the issue persists, please provide more details about the specific steps you are following and any additional error messages you encounter.