How to build hbssl.lib

462 views
Skip to first unread message

Budyanto Dj.

unread,
Oct 18, 2020, 11:55:04 AM10/18/20
to harbou...@googlegroups.com
Hello,

I tried to do some test inside contrib/hbtip/tests, but it seems to
depend on hbssl.lib.
Is there some step by step guide on how to build hbssl.lib?

thanks and regards,
budyanto

Auge & Ohr

unread,
Oct 18, 2020, 10:22:37 PM10/18/20
to Harbour Users
hi,

are you using MinGW or BCC ?
are you using IDE or *.BAT in CMD Box ?

normal you have a *.HBC here C:\harbour\contrib\hbssl\hbssl.hbc to include

libs=hbssl.HBC

if you have a different Directory Structure try set LIB and Path direct

libpaths=C:\harbour\lib\win\mingw\

libs
=hbssl.a

greetings
Jimmy

Budyanto Dj.

unread,
Oct 18, 2020, 11:35:36 PM10/18/20
to harbou...@googlegroups.com
Hello Jimmy,


are you using MinGW or BCC ?
I am using MSVC


are you using IDE or *.BAT in CMD Box ?
I am using hbmk2 from CMD box.



normal you have a *.HBC here C:\harbour\contrib\hbssl\hbssl.hbc to include
Yes there is hbssl.hbc in C:\harbour\contrib\hbssl.
From the command prompt I did:
hbmk2 hbssl

and got this in response:
hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2[hbssls]: Warning: Missing dependency: openssl

Should I download "openssl" first?
I did look at https://www.openssl.org/source/, but I am not sure what to download from there.

regards,
budyanto

Auge & Ohr

unread,
Oct 19, 2020, 2:42:15 AM10/19/20
to Harbour Users
hi,

hbmk2: Building sub-project (level 2): hbssls.hbp
hbmk2[hbssls]: Warning: Missing dependency: openssl

when have download harbour "only" than search for
x:\harbour\lib\win\msvc\hbtipssl.lib //

so change
libs=hbssl.a

to
libpaths=x:\harbour\lib\win\msvc\
libs
=tipssl.a

hope it help

greetings
Jimmy

Antonio Linares

unread,
Oct 19, 2020, 5:18:36 AM10/19/20
to Harbour Users
https://github.com/FiveTechSoft/Harbour_builder

Harbour builder builds all Harbour flavours automatically using GitHub Actions 

best regards

Antonio 

Budyanto Dj.

unread,
Oct 19, 2020, 9:52:31 AM10/19/20
to harbou...@googlegroups.com
Hello again Jimmy,

Thank you very much for your further info.
Unfortunately, I failed to relate it to my environment/need.

In the mean time, Antonio provide the solution I am looking for.
I will report my results in there.

thanks and regards,
budyanto
--
--
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/75248a2e-772f-4933-b354-eef158795fabo%40googlegroups.com.

Budyanto Dj.

unread,
Oct 19, 2020, 10:17:26 AM10/19/20
to harbou...@googlegroups.com
Hello Antonio,

Thank you! It solves my problem.
(I don't know how to execute .yml files, but it is readable that I can do it manually using command line.)

For those who are looking for the same question, here are the steps I did in accordance with https://github.com/FiveTechSoft/Harbour_builder, using MSVC32.
(The question "how to build hbssl.lib using MSVC?" has been answered with superset info "how to build Harbour and its contribs")

0. Download Harbour source

1. Download OpenSSL (required by hbssl)
a. https://bitbucket.org/lorenzodla/mod_harbour_actions_resources/downloads/OpenSSL-Win32.zip
b. extract the contents into c:\OpenSSL

2. Download cUrl (required by hbcurl)
a.
https://bitbucket.org/lorenzodla/mod_harbour_actions_resources/downloads/curl-7.54.0-win32-mingw.zip
b. extract the contents into c:\curl

3. execute win-make after setting environment vars properly
cd harbour
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_BUILD_CONTRIBS=
set HB_WITH_OPENSSL=C:\OpenSSL\include
set HB_WITH_CURL=C:\curl\include
set HB_STATIC_OPENSSL=yes
set HB_STATIC_CURL=yes
set HB_COMPILER=msvc
win-make.exe

This will make Harbour and all its contribs.

thanks and regards,
budyanto
Reply all
Reply to author
Forward
0 new messages