How to make libhbssl on windows

318 views
Skip to first unread message

Emmer

unread,
Oct 20, 2016, 3:25:34 PM10/20/16
to Harbour Users
Hello All,

I try to compile libhbssl on windows platform, but with no succes.

in the README.MD it says:
The http://www.openssl.org/related/binaries.html gives an 404 (openssl.org does not provide binaries), so i downloaded and extracted 'openssl-1.1.0b.tar.gz' which is the source.
I set the SET HB_WITH_OPENSSL to the correct path:

  SET HB_WITH_OPENSSL=X:\harbour_extern\openssl-1.1.0b\include

but when i do
    X:\Harbour\contrib\hbssl>hbmk2 hbssl.hbp
it gives me many errors like:

X:\Harbour32\contrib\hbssl>hbmk2 hbssl.hbp
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2: Dependency 'openssl' found: X:\harbour_extern\openssl-1.1.0b\include
hbmk2: Compiling...
In file included from X:/harbour_extern/openssl-1.1.0b/include/openssl/ssl.h:45:0,
                 from ../../../../hbssl.h:59,
                 from ../../../../ssl_hb.c:53:
X:/harbour_extern/openssl-1.1.0b/include/openssl/e_os2.h:13:34: fatal error: openssl/opensslconf.h: No such file or directory
compilation terminated.

which is correct because in the include\openssl dir, the file is named opensslconf.h.in instead of opensslconf.h

So i probably used the wrong download but don't know the right one. What to do?

Kind regards,
Emmer

Klas Engwall

unread,
Oct 20, 2016, 4:34:25 PM10/20/16
to harbou...@googlegroups.com
Hi Emmer,

> I try to compile libhbssl on windows platform, but with no succes.
>
> in the README.MD it says:
>
> HB_WITH_OPENSSL - OpenSSL [multiplatform, free, open-source]
>
> o http://www.openssl.org/
> o http://www.openssl.org/related/binaries.html
> o http://wiki.opensslfoundation.com/
>
> The http://www.openssl.org/related/binaries.html gives an 404
> (openssl.org does not provide binaries), so i downloaded and extracted
> 'openssl-1.1.0b.tar.gz' which is the source.

How about the binaries linked to here:
https://wiki.openssl.org/index.php/Binaries

Regards,
Klas

DaNiEl MaXiMiLiAnO

unread,
Oct 20, 2016, 5:49:41 PM10/20/16
to harbou...@googlegroups.com
Hi :

download Harbour sources from GitHub
Install it C:\openssl

go to your folder C:\harbour\contrib\hbssl

Create and use build.bat
@echo off
Title Build %1 in 32 bits
rem *************************************
set HB_WITH_OPENSSL=C:\openssl\include
rem *************************************

set Backup=%path%
set path=%path%;C:\hb32\bin
rem build hbcurl.hbp
hbmk2 hbssl.hbp
set path=%backup%

 
Saludos / Regards 
                DaNIEl MaXiMiLiAnO




--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsub...@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-users+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages