Problem building mod_harbour libraries

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem building mod_harbour libraries

Post by Antonio Linares »

This is the right way to build rddads.lib in 32 bits from the Harbour contribs rddads folder:

go.bat

Code: Select all

call "%ProgramFiles%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
set HB_WITH_ADS=c:\Program Files\Advantage 11.10\acesdk\
c:\harbour\bin\hbmk2 rddads
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem building mod_harbour libraries

Post by Antonio Linares »

Massimo,

mod_harbour + ADS working in 32 bits !!! :-)

https://github.com/FiveTechSoft/mod_har ... arbour.dll

tested example:
https://github.com/FiveTechSoft/mod_har ... es/ads.prg

Tested using Apache 32 bits from Windows 10 32 bits !!!

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem building mod_harbour libraries

Post by Antonio Linares »

Massimo,

working fine with ADS 64 bits!!! :-)

https://github.com/FiveTechSoft/mod_har ... arbour.dll
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem building mod_harbour libraries

Post by Antonio Linares »

A better solution is to include this in the hbp file:

-depcontrol=ads:force
Antonio Linares wrote:Massimo,

Lets go step by step. First of all lets create the rddads.lib.

We go to folder c:\harbour\contrib\rddads\ and we edit rddads.hbp commenting out these lines:

Code: Select all

-hblib
-inc

-o${hb_name}

-w3 -es2

-stop{!(linux|win)}

#-depkeyhead=ads:ace.h
#-depcontrol=ads:${HB_WITH_ADS}
#-depincpath=ads:/usr/local/ads/acesdk
#-depincpath=ads:${HOME}/ads/acesdk
#{x86_64}-depimplibs=ads:ace64.dll
#{x86}-depimplibs=ads:Redistribute/ace32.dll
#{x86}-depimplibs=ads:32bit/ace32.dll
#{x86}-depimplibs=ads:ace32.dll

# To avoid a warning in ACE header
-cflag+=-Wno-unknown-pragmas{allgcc}

# for ADS headers
-c=gnu90

${hb_name}.hbx

ads1.c
adsfunc.c
adsmgmnt.c
adsx.c
 
Now we run this batch file:
go64.bat

Code: Select all

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
set HB_BUILD_MODE=c
set HB_USER_PRGFLAGS=-l-
c:\harbour\bin\hbmk2 rddads.hbp
And we get rddads.lib in 64 bits mode:
https://github.com/FiveTechSoft/mod_har ... rddads.lib

Next we follow this guide to build libharbour with user libs:
https://github.com/FiveTechSoft/mod_har ... bs/windows

next message...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply