Página 1 de 1

hbgd

Enviado: 25 Fev 2024 16:06
por sygecom
Pessoal,
Alguém teria a libgd em DLL( bgd.dll ) em 64bits e também as lib para harbour+Mingw

A lib seria : libbgd.a

Nota: a libhbgd.a consigo gerar, mas a DLL que tenho só tem em 32 bits.

Versão do Mingw64
>mingw32-make --version
GNU Make 4.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

>gcc --version
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hbgd

Enviado: 25 Fev 2024 17:13
por sygecom
Acabei achando o caminho das pedras e, consegui gerar aqui graças a algumas ajudinha do chatgpt kkkkk

Passo a passo que tive que fazer.
Para compilar vamos precisar de:
libgd ( https://libgd.github.io/pages/downloads.html ) - Baixar e descompactar a ultima versão, nesse teste usei a: libgd-2.3.3
Mingw64 ( https://sourceforge.net/projects/mingw-w64/ )
Cmake ( https://cmake.org/download/ )

Criar um .bat conforme abaixo e abrir ele:
SET PATH=D:\devel\MinGW64\bin;d:\devel\hb64\bin;D:\devel\MinGW64\cmake-3.29.0-rc2\bin;%PATH%
SET INCLUDE=D:\devel\MinGW64\include;D:\devel\MinGW64\include\sys
SET LIB=%LIB%;D:\devel\MinGW64\lib
SET CC=x86_64-w64-mingw32-gcc
%SystemRoot%\system32\cmd.exe

Depois que tiver com o CMD acima aberto tem que dar os seguintes comando para compilar:

Código: Selecionar todos

mkdir build

Código: Selecionar todos

cd build

Código: Selecionar todos

cmake .. -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=D:/devel/MinGW64/bin/mingw32-make.exe -DCMAKE_INSTALL_PREFIX=d:/devel/gd-2.3.3/install

Código: Selecionar todos

mingw32-make

Código: Selecionar todos

mingw32-make install
Com esses passos acima vai compilar a LIB, apenas precisa pro seu ambiente ajustar os caminhos:
-DCMAKE_MAKE_PROGRAM=D:/devel/MinGW64/bin/mingw32-make.exe
-DCMAKE_INSTALL_PREFIX=d:/devel/gd-2.3.3/install