MSys2安装QT5

Posted ParamousGIS

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MSys2安装QT5相关的知识,希望对你有一定的参考价值。


1. MSYS2 shell

# pacman –Syuu


2. Reopen MSYS2

# pacman –Syuu


3.添加国内源

msys64\etc\pacman.d 目录下有三个文件

1. mirrorlist.msys

Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/

2. mirrorlist.mingw64

Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/

3. mirrorlist.mingw32

Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/


4. install GCC and common build tools

pacman -S --needed base-devel

pacman -S --needed mingw-w64-i686-toolchain

pacman -S --needed mingw-w64-x86_64-toolchain

pacman -S --needed git subversion mercurial

pacman -S --needed mingw-w64-i686-cmake

pacman -S --needed mingw-w64-x86_64-cmake


安装包

pacman -S vim

查找包

pacman -Sl |grep tar


5.修改环境变量

Add  

D:\GISSoft\msys64\mingw64\x86_64-w64-mingw32\bin

D:\GISSoft\msys64\mingw64\bin

D:\GISSoft\msys64\mingw64\local\bin

to your PATH


6.安装基本组件

pacman -S mingw-w64-x86_64-nasm

pacman -S mingw-w64-x86_64-lld

pacman -S mingw-w64-x86_64-pkg-config

pacman -S mingw-w64-x86_64-python3-pkgconfig

pacman -S m4

pacman -S autoconf

pacman -S automake

pacman -S mingw-w64-x86_64-cyrus-sasl

pacman -S mingw-w64-x86_64-extra-cmake-modules

pacman -S mingw-w64-x86_64-libzip

pacman -S libiconv

pacman -S mingw-w64-x86_64-iconv

pacman -S mingw-w64-x86_64-libjpeg-turbo

pacman -S mingw-w64-x86_64-libpng

pacman -S liblzma-devel

pacman -S lz4

pacman -S liblz4-devel

pacman -S mingw-w64-x86_64-python3-lz4

pacman -S mingw-w64-x86_64-libwebp

pacman -S mingw-w64-x86_64-libgeotiff

pacman -S sqlite

pacman -S libsqlite-devel

pacman -S mingw-w64-x86_64-libfreexl

pacman -S mingw-w64-x86_64-readosm

pacman -S mingw-w64-x86_64-glib-openssl

pacman -S openssl-devel

pacman -S mingw-w64-x86_64-glib-openssl

pacman -S mingw-w64-x86_64-python3-pyopenssl

pacman -S mingw-w64-x86_64-libxml2

pacman -S libxml2-devel

pacman -S libxml2-python

pacman -S mingw-w64-x86_64-tinyxml2

pacman -S mingw-w64-x86_64-freetype

pacman -S mingw-w64-x86_64-fontconfig

pacman -S mingw-w64-x86_64-cairo

pacman -S mingw-w64-x86_64-python3-cairo

pacman -S libcurl-devel

pacman -S mingw-w64-x86_64-minizip2


7.安装QT

pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-clang-tools-extra mingw-w64-x86_64-clang-analyzer


pacman -S mingw-w64-x86_64-qt5 mingw-w64-x86_64-qt-creator

以上是关于MSys2安装QT5的主要内容,如果未能解决你的问题,请参考以下文章

如何在 MSYS2 中通过 CMake 构建 c++ Qt5 应用程序

win10安装msys2(转)

MSYS2/MinGW-w64安装

如何在 MSYS2 上安装 libpng?

使用 Msys2 为 mingw 安装 Rust 和 Cargo 的分步说明?

MSYS2 - 安装 gcc 或工具链?