Moderador: Moderadores
mas dentro da pasta mingw32/64 nao tem nada , esta vazio
18/03/2020 04:19 5.630 xzfgrep
18/03/2020 04:19 5.630 xzgrep
18/03/2020 04:19 1.799 xzless
18/03/2020 04:19 2.162 xzmore
22/05/2019 09:06 93.720 zlib1.dll
194 arquivo(s) 169.683.993 bytes
2 pasta(s) 195.934.613.504 bytes disponÃveis
C:\msys32\mingw64\bin>
pacman -S mingw-w64-i686-gcc
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-i686-clang
pacman -S mingw-w64-x86_64-clang
pacman -Ss gcc
pacman -S mingw-w64-i686-qt5
pacman -S mingw-w64-x86_64-qt5
marcosgambeta escreveu:Com respeito ao MSYS2, seguem algumas informações:
O desenvolvedor deve instalar a versão de 32-bit ou 64-bit conforme seu sistema operacional.
Depois de instalar e atualizar o MSYS2, conforme as instruções na página do projeto, o desenvolvedor pode instalar os arquivos conforme sua necessidade/interesse.
Os arquivos costumam seguir este padrão:
para 32-bit
mingw-w64-i686-<arquivo>
para 64-bit
mingw-w64-x86_64-<arquivo>
No caso do GCC, seria isto:
para 32-bit
mingw-w64-i686-gcc
para 64-bit
mingw-w64-x86_64-gcc
Já no caso do CLANG, seria:
para 32-bit
mingw-w64-i686-clang
para 64-bit
mingw-w64-x86_64-clang
O comando para instalar, no shell do MSYS2, é o pacman -S <arquivo>. Veja a sintaxe abaixo:pacman -S mingw-w64-i686-gcc
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-i686-clang
pacman -S mingw-w64-x86_64-clang
Os arquivos instalados irão para as pastas mingw32 e mingw64, conforme forem i686 ou x86_64. Pode-se ter um ou outro ou ambos.
Para pesquisar por arquivos, use o comando pacman-Ss <texto>:pacman -Ss gcc
Note que o desenvolvedor terá 3 shell's para usar. O principal, para manter o MSYS2 atualizado, e mais dois, sendo um para o MINGW 32-bit e outro para o MINGW 64-bit.
Eu não tenho uma lista pronta dos arquivos que devem ser instalados, mas através da pesquisa é possÃvel localizar o que falta. Apenas se lembre de sempre usar o shell principal para proceder com as instalações e atualizações.
Uma informação final:
Para instalar o Qt 5, caso precise dele:pacman -S mingw-w64-i686-qt5
pacman -S mingw-w64-x86_64-qt5
>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.1.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.1.0 (Rev2, Built by MSYS2 project)
Agora a coisa funcionou, era isso que faltava, dei uma olhada no YT ontem e vi que tinha de baixar os arquivo pois o -Syu -Su so baixava/atualizava o shell.
If needed, close MSYS2, run it again from Start menu. Update the rest with:
:\HB64\tests>hbmk2 test.prg
hbmk2: Processing environment options: -comp=mingw64
hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r2004201301)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'test.prg'...
Lines 22, Functions/Procedures 2
Generating C source output to 'C:\Users\m5200\AppData\Local\Temp\hbmk_ffhisr.dir\test.c'... Done.
C:\HB64\tests>test
32
0
32
32
109
97
98
32
32
0
32
  mab  
"  mab   "
"   mab  "
"  mab  "
C:\HB64\tests>hbmk2 test.prg
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Processing configuration: C:\hb32\bin\hbmk.hbc
Harbour 3.2.0dev (r2002240732)
Copyright (c) 1999-2020, https://harbour.github.io/
Compiling 'test.prg'...
Lines 22, Functions/Procedures 2
Generating C source output to 'C:\Users\m5200\AppData\Local\Temp\hbmk_k0fq4v.dir\test.c'... Done.
pacman -S git base-devel msys2-devel mingw-w64-{i686,x86_64}-toolchain
C:\devl\hb32-code>set hb
HB_INSTALL_PREFIX=c:\hb32
HB_STATIC_CURL=yes
HB_STATIC_OPENSSL=yes
HB_WITH_CURL=C:\curl-7.70.0-win64-mingw\include
HB_WITH_FREEIMAGE=C:\FreeImage\Dist\x64
HB_WITH_MYSQL=C:\mysql-8.0.19-winx64\include
HB_WITH_OPENSSL=C:\openssl-1.1.1g-win64-mingw\include
C:\devl\hb32-code>mingw32-make install
! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: mingw32-make 4.3 sh.exe install
! HB_INSTALL_PREFIX: c:\hb32
! HB_HOST_PLAT: win (x86_64) HB_SHELL: nt
! HB_PLATFORM: win (x86_64) (auto-detected)
! HB_COMPILER: mingw64 (auto-detected: C:/msys64/mingw64/bin/)
set PATH=C:\HB32\BIN;C:\msys64\mingw64\bin;%PATH%
Usuários vendo este fórum: Nenhum usuário registrado online e 1 visitante