>
> > I'd like to avoid the kind of parsing like that. Such information
> > should be passed through hbmk.cfg if needed for hbmk2 workings.
> > gtcrs and gtsln should also be picked up from hbmk.cfg.
>
> But they aren't so please fix it.
> I also do not understand this logic. So why GTXWC is in the linked
> library list?


It's there by default, but it probably shouldn't, so I'll remove it. (line
397)

Can you please post the content of your hbmk.cfg file, and also
tell whether it's picked by hbmk2? There should now be a screen
message about this, unless you use -quiet.

Installation should put these lines in hbmk2.cfg, when these GTs are
built (respectively):
libdynhas=gtxwc
libdynhas=gtcrs
libdynhas=gtsln


> > Please provide some example I can do testing on, because
> > it was very difficult to decipher the original logic of these, and
> > it's possible that I didn't test some scenarios, or missed some
> > things.
>
> 1-st the very basic functionality. We will talk about other features
> when this part will be ready:
>
> 1. hbcmp -> create .o file from given .prg ones
> 2. hbcc -> C wrapper which set -I, -L paths and -l libraries.
> 3. hblnk -> C link time wrapper. It should respect link time hbmk2
>   parameters like -gt*, -main=*
>
> Basic test.
>   echo "? 'hello'" > t.prg
>   harbour t.prg -o tc.c -I<hbincdir>
>
>   hbmk t               # result t[.<exeext>]


OK


>   hbcmp t              # result t.<objext>


OK (== hbmk2 -hbcmp t)


>   hblnk t.<objext>     # result t[.<exeext>]


OK (== hbmk2 t.<objext>)


>   hbcc -c t.c          # result t.<objext>


OK (== hbmk2 -hbcc t.c)


> When it will work you can try to compile XHGTK.
> Just simply create hbcmp and hbcc links to hbmk2 and check if it works.


So, none of these work for you?

I don't understand -c option as it's not documented
in hbmk script help, nor is it a Harbour option.

It means that this binaries will not work with any other libharbour.so
> location so I cannot distribute them.


Okay, thanks, it seems like a typo, can you
please retry after changing line 951 to 955 from this:
---
      IF lSysLoc
         cPrefix := PathNormalize( s_cHB_LIB_INSTALL, .T. )
      ELSE
         cPrefix := ""
      ENDIF
---
to this:
---
      IF lSysLoc
         cPrefix := ""
      ELSE
         cPrefix := PathNormalize( s_cHB_LIB_INSTALL, .T. )
      ENDIF
---

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to