FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tip Client = Harbour / MSVC 2015 Error
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Fri Apr 29, 2016 07:56 AM
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/download

2. 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Fri Apr 29, 2016 11:44 AM

Antonio,

Is there any dll with this library.

Thanks,

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Fri Apr 29, 2016 03:27 PM
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
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Fri Apr 29, 2016 07:04 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Fri Apr 29, 2016 07:23 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Sat Apr 30, 2016 07:27 AM
Tim,

hbtipssl.hbp is not here:

https://github.com/harbour/core/tree/master/contrib/hbtip

Can you please post its contents here ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Sat Apr 30, 2016 08:20 PM
hbtipssl.hbc

Code (fw): Select all Collapse
#
# $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 (fw): Select all Collapse
#
# $Id: hbtipssl.hbp 15168 2010-07-23 11:08:33Z vszakats $
#

hbtip.hbm

../hbssl/hbssl.hbc

-DHB_HAS_OPENSSL


hbtip.hbm

Code (fw): Select all Collapse
#
# $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 (fw): Select all Collapse
#
# $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
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Tue May 17, 2016 09:29 AM

Antonio,

I upgrade FWH64 1604B2 and need it hbtipssl.lib, but I can't find it.

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Tue May 17, 2016 10:10 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Tip Client = Harbour / MSVC 2015 Error
Posted: Tue May 17, 2016 10:43 AM
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit

Continue the discussion