Page 3 of 3
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Fri Apr 29, 2016 7:56 am
by Antonio Linares
Tim,
I have built the libs using hbmk2 this way:
1. I have downloaded this file and installed it:
https://sourceforge.net/projects/openssl100g/files/Win32OpenSSL-1_0_0g.exe/download2. Open a cmd window at c:\harbour\contrib\hbssl
3. set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
4. if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
5. c:\harbour\bin\hbmk2 hbssl -comp=msvc
Four libraries were built: hbssl.lib, hbssls.lib, libeay32.lib and ssleay32.lib
Here you have them:
https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_32_hbssl_vsc2015_20160429.zip
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Fri Apr 29, 2016 11:44 am
by Horizon
Antonio,
Is there any dll with this library.
Thanks,
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Fri Apr 29, 2016 3:27 pm
by TimStone
You have to do it with hbmk2 hbtipssl.hbp which will bring in the hbssl build. I've done that, plus used three of the files you built, and now it finally works. xHarbour.com does it all in one tipssl.lib which would be so much easier ...
The end files are to be linked as:
echo $(HBDIR)\lib\hbtipssl.lib >> msvc.tmp
echo $(HBDIR)\lib\ssleay32.lib >> msvc.tmp
echo $(HBDIR)\lib\libeay32.lib >> msvc.tmp
echo $(HBDIR)\lib\hbtip.lib >> msvc.tmp
echo $(HBDIR)\lib\hbssl.lib >> msvc.tmp
This combination works. I've tried all the other options and they do not.
That is the combo the harbour contributor said we need to do.
Nothing was said about .dll files
Tim
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Fri Apr 29, 2016 7:04 pm
by Antonio Linares
Tim,
> You have to do it with hbmk2 hbtipssl.hbp
Where did you get hbtipssl.hbp from ? I don't find it in the Harbour contribs folder.
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Fri Apr 29, 2016 7:23 pm
by TimStone
It is in contrib\hbtip
I would suggest you add all of those libs to your harbour download so they are available as we get more people working with MSVC / FWH / Harbour.
Also we will need a set of 64 bit libs.
Tim
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Sat Apr 30, 2016 7:27 am
by Antonio Linares
Tim,
hbtipssl.hbp is not here:
https://github.com/harbour/core/tree/master/contrib/hbtipCan you please post its contents here ? thanks
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Sat Apr 30, 2016 8:20 pm
by TimStone
hbtipssl.hbc
- Code: Select all Expand view
#
# $Id: hbtipssl.hbc 16259 2011-02-09 15:58:45Z vszakats $
#
incpaths=.
libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
libs=../hbssl/hbssl.hbc
hbtipssl.hbp
- Code: Select all Expand view
#
# $Id: hbtipssl.hbp 15168 2010-07-23 11:08:33Z vszakats $
#
hbtip.hbm
../hbssl/hbssl.hbc
-DHB_HAS_OPENSSL
hbtip.hbm
- Code: Select all Expand view
#
# $Id: hbtip.hbm 16788 2011-05-19 02:34:16Z vszakats $
#
-hblib
-inc
-o${hb_targetname}
-workdir=${hb_work}/${hb_plat}/${hb_comp}/${hb_targetname}
-w3 -es2
-instfile=inc:tip.ch
-instfile=inc:thtml.ch
-instfile=inc:hbtip.hbx
hbtip.hbx
encurlc.c
utils.c
cgi.prg
client.prg
credent.prg
encb64.prg
encoder.prg
encqp.prg
encurl.prg
ftpcli.prg
httpcli.prg
log.prg
mail.prg
popcli.prg
sendmail.prg
sessid.prg
smtpcli.prg
thtml.prg
url.prg
hbssl.hbc
- Code: Select all Expand view
#
# $Id: hbssl.hbc 16927 2011-07-16 11:17:40Z vszakats $
#
incpaths=.
skip={dos}
{!(HB_STATIC_OPENSSL&!hbdyn)}libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
{ (HB_STATIC_OPENSSL&!hbdyn)}libs=${_HB_DYNPREF}${hb_name}s${_HB_DYNSUFF}
{unix}libs=ssl crypto
{os2}libs=libssl_s libcrypto_s
{!(HB_STATIC_OPENSSL&!hbdyn)&win}libs=ssleay32 libeay32
{ (HB_STATIC_OPENSSL&!hbdyn)&win&!allmingw}libs=ssleay32 libeay32
{ (HB_STATIC_OPENSSL&!hbdyn)&allmingw}libs=ssl crypto
{ (HB_STATIC_OPENSSL&!hbdyn)&allwin}libs=crypt32
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Tue May 17, 2016 9:29 am
by richard-service
Antonio,
I upgrade FWH64 1604B2 and need it hbtipssl.lib, but I can't find it.
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Tue May 17, 2016 10:10 am
by Antonio Linares
Re: Tip Client = Harbour / MSVC 2015 Error
Posted:
Tue May 17, 2016 10:43 am
by richard-service
Thanks a lot. It's working.