Problem building mod_harbour libraries

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 27, 2019 7:47 pm

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

go.bat
Code: Select all  Expand view
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: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 27, 2019 8:18 pm

Massimo,

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

https://github.com/FiveTechSoft/mod_harbour/blob/master/contribs/windows/ads32/libharbour.dll

tested example:
https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/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: 41462
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Sat Jul 27, 2019 9:36 pm

regards, saludos

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

Re: Problem building mod_harbour libraries

Postby Antonio Linares » Wed Apr 29, 2020 8:31 am

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 view
-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 view
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.lib

Next we follow this guide to build libharbour with user libs:
https://github.com/FiveTechSoft/mod_harbour/tree/master/contribs/windows

next message...
regards, saludos

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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 123 guests