How to make Harbour 32/64 Bit GCC using OpenSSL, Curl with static lib.

448 views
Skip to first unread message

Itamar Lins

unread,
May 24, 2020, 1:43:48 PM5/24/20
to Harbour Users
Hi!
Testing on Win10 OS.

1) Download and install msys2

2) Open MSYS2 box, to update msys2
$ pacman -Syu
$ pacman -Su

2.a) Attention, this command get GCC 32 and 64 Bit
$ pacman -S git base-devel msys2-devel mingw-w64-{i686,x86_64}-toolchain
&& Exit of msys2 box3

2.b)Now get OpenSSL,Curl, this link of Viktor Szakats.
https://github.com/curl/curl-for-win#binary-package-downloads
>set HB_STATIC_CURL=yes
>set HB_STATIC_OPENSSL=yes
>set HB_WITH_OPENSSL=C:\openssl-1.1.1g-win64-mingw\include
>set HB_WITH_CURL=C:\curl-7.70.0-win64-mingw\include

3) Open a CMD box, and get harbour font of git into \hb32-code
>git clone -depth=20 https://github.com/harbour/core.git hb32-code

3.a) Fix! to extract static lib of CURL. 64Bit
cd \hb32-code\contrib\hbcurl
&&Edit hbcurl.hbp and add this.
-depimplibs=curl:../bin/libcurl-x64.dll

3.b) Now add in PATH to GCC "SEE" your maker harbour 64 .or 32 Bits
&& Here! if your want GCC64
>set PATH=C:\msys64\mingw64\bin;%PATH%
&& And for 32 bit set path like this
>set PATH=C:\msys64\mingw32\bin;%PATH%
4) Make harbour "bin" files!
>cd \hb32-code
>set HB_INSTALL_PREFIX=c:\hb32
>mingw32-make clean install
&& Now Wait! make install harbour files EXE/DLL/LIB(.a) into \hb32
>set PATH=C:\hb32\bin;%PATH%
>cd tests
>hbmk2 speed.prg

Best regards,
Itamar M. Lins Jr.

Massimo Belgrano

unread,
May 25, 2020, 7:04:41 AM5/25/20
to harbou...@googlegroups.com
Thanks
i need ths suggestion for Windows for switch from custom MinGW distribution to MSYS2 like RubyInstaller from prev post of  Viktor Szakats   i have isteas
pacman --noconfirm -S git {base,msys2}-devel mingw-w64-{i686,x86_64}-{clang,toolchain}



--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/3c96ae79-9783-4f31-a99b-93c299362dc5%40googlegroups.com.


--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 
Reply all
Reply to author
Forward
0 new messages