Page 3 of 3
Re: Problem building mod_harbour libraries
Posted: Sat Jul 27, 2019 7:47 pm
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 | Expand
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
Re: Problem building mod_harbour libraries
Posted: Sat Jul 27, 2019 8:18 pm
by Antonio Linares
Re: Problem building mod_harbour libraries
Posted: Sat Jul 27, 2019 9:36 pm
by Antonio Linares
Re: Problem building mod_harbour libraries
Posted: Wed Apr 29, 2020 8:31 am
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 | Expand
-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 | Expand
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_harbour/blob/master/contribs/windows/ads64/rddads.libNext we follow this guide to build libharbour with user libs:
https://github.com/FiveTechSoft/mod_harbour/tree/master/contribs/windowsnext message...