MSys2安裝QT5


1. MSYS2 shellpython

# pacman –Syuugit


2. Reopen MSYS2web

# pacman –Syuusql


3.添加國內源shell

msys64\etc\pacman.d 目錄下有三個文件vim

1. mirrorlist.msyscurl

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

2. mirrorlist.mingw64url

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

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

相關文章
相關標籤/搜索