FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to use HBMK2
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

How to use HBMK2

Posted: Wed May 27, 2020 01:50 PM

Hi Guys,

I want to try HBMK2. Is there any link or doc that explain how to use it ?
My main Project is very big. I have almost 500 prgs divided in 6 directories. I need generate EXE from one diretory and HRB files from the other.
Could you help me ?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: How to use HBMK2

Posted: Wed May 27, 2020 03:20 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

Re: How to use HBMK2

Posted: Wed May 27, 2020 04:45 PM

Thank You AntĂ´nio,
I already read the contente of this link, But I didn't understand how to use it. As I saw before, I have almost 500 prgs divided in 6 directories. I need generate the EXE from files of the first diretory and HRB files from the others.
I also have some .RES files to join and a private .LIB. to link. Could you help me ?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: How to use HBMK2

Posted: Wed May 27, 2020 05:39 PM

Vilian,

Create six different hbp files and from the main one, include the name of the others

So the main one will launch the creation of the others

Thats how we do it with mod_harbour. There is a main modharbour.hbp and another mod.hbp.
modharbour.hbp launches mod.hbp before doing its own work.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

Re: How to use HBMK2

Posted: Wed May 27, 2020 05:57 PM

Could you show me a sample/structure of hbp file ?
How can I include .RES files in the Project ?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 55
Joined: Tue Jun 30, 2015 02:26 AM

Re: How to use HBMK2

Posted: Wed May 27, 2020 08:24 PM
I'm working with Vilian in this project.

We are kinda struggling to use hbmk2.

There's some situations that we can't work around...

first, our code references some procedures inside DLL's and we are trying to link the DLL in our .hbp using -depimplibs, but we are getting this message:

hbmk2[SGV90]: Warning: Missing dependency: ter21

this is our .hbp

Code (fw): Select all Collapse
#
# $Id: sample.hbp $
#

#PRGs
E:\TEC2000\SGV90VS\PRG\SGV.PRG      
E:\TEC2000\SGV90VS\PRG\SIF130.PRG   
E:\TEC2000\SGV90VS\PRG\SIF160.PRG 
E:\TEC2000\SGV90VS\PRG\SIF211.PRG   
E:\TEC2000\SGV90VS\PRG\SIF221.PRG   
E:\TEC2000\SGV90VS\PRG\SIF241.PRG   
E:\TEC2000\SGV90VS\PRG\SIF273.PRG   
E:\TEC2000\SGV90VS\PRG\SIF280.PRG   
E:\TEC2000\SGV90VS\PRG\DANFE.PRG    
E:\TEC2000\SGV90VS\PRG\FUNCUSR.PRG  
E:\TEC2000\SGV90VS\PRG\FUNCCPR.PRG  
E:\TEC2000\SGV90VS\PRG\FUNCOES.PRG  
E:\TEC2000\SGV90VS\PRG\FUNCUSR.PRG  
E:\TEC2000\SGV90VS\PRG\FUNCFTP.PRG  
E:\TEC2000\SGV90VS\PRG\FUNCSIG.PRG  
E:\TEC2000\SGV90VS\PRG\GERACPR.PRG  
E:\TEC2000\SGV90VS\PRG\DANFE.PRG    
E:\TEC2000\SGV90VS\PRG\VONFE2G.PRG  
E:\TEC2000\SGV90VS\PRG\VONFEUT.PRG  
E:\TEC2000\SGV90VS\PRG\VONFSEUT.PRG 
E:\TEC2000\SGV90VS\PRG\TPRODUTO.PRG 
E:\TEC2000\SGV90VS\PRG\VFATXT32.PRG 


-Ic:\FWH19\include

-Lc:\FWH19\lib
-lvfawin40
-lTwBrw32h                                            
-lBarLib32                                            
-lFileXls                                             
-lLibMySql
-lFiveH
-lFiveHC

-Lc:\Harbour19\lib
-lhbwin
-lgtgui
-lhbrtl
-lhbvmmt
-lhblang
-lhbmacro
-lhbrdd
-lrddntx
-lrddcdx
-lrddfpt
-lhbsix
-lhbcommon
-lhbpp
-lhbcpage
-lhbcplr
-lhbct
-lhbpcre
-lxhb
-lhbziparc
-lhbmzip
-lhbzlib
-lminizip
-lhbusrrdd
-lhbtip

-Lc:\Bcc73\lib
-lcw32mt
-luuid 
-limport32
-lws2_32

-Lc:\Bcc73\lib\psdk
-lodbc32
-lnddeapi
-liphlpapi 
-lmsimg32
-lpsapi
-lrasapi32
-lgdiplus
-lshell32

-depimplibs=ter21:E:\TEC2000\SGV90VS\ter21.dll


we don't really know what this "dependency" is and what we are supposed to do (we already looked in some documentations availabe in github and medium.com, but we didn't find anything about that)

And the second situation is about the .RES file (which contain some resources) that we need to link to our .EXE.
We used to do that with a .RMK file and using the make.exe inside bcc\bin.
Sds,
Ricardo Arraes
ricardo@vfatec.com.br
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: How to use HBMK2

Posted: Thu May 28, 2020 05:18 AM
To manage .rc files, simply include the rc filename, in example:
https://github.com/harbour/core/blob/master/contrib/hbwin/tests/dlg.hbp
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

Re: How to use HBMK2

Posted: Thu May 28, 2020 10:53 AM

Thank you Antonio,

Now there is only one question. I have 2 DLL (Image2pdf e TER21) from third, that i use with our program. When we try generate the exe file, we receive messages about functions of these DLL missing. How could us solve this?

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: How to use HBMK2

Posted: Thu May 28, 2020 11:27 AM

How do you access the DLLs functions ?

  1. Using an import library and using some wrappers functions ? (static linking)

  2. Using DLL FUNCTION ... commands ? (dynamic linking)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM

Re: How to use HBMK2

Posted: Thu May 28, 2020 11:38 AM

please forget this. it is a mistake mine.

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
Posts: 55
Joined: Tue Jun 30, 2015 02:26 AM

Re: How to use HBMK2

Posted: Thu May 28, 2020 12:20 PM
Thanks Antonio, for all the replies!

about the DLL, we figured out what was wrong.

Just one more question (for now :-) )...

after the build using hbmk2, our exe started to show a dialog right after initialization. Do you what is happening? could it be a missing parameter?




thanks for yout time!
Sds,
Ricardo Arraes
ricardo@vfatec.com.br
Posts: 55
Joined: Tue Jun 30, 2015 02:26 AM

Re: How to use HBMK2

Posted: Thu May 28, 2020 12:45 PM

Never mind, Antonio!

We figured out! -gtgui was missing, now everything seems fine!

Thank you again!

Sds,
Ricardo Arraes
ricardo@vfatec.com.br
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: How to use HBMK2

Posted: Thu May 28, 2020 05:10 PM

very good! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion