Viktor,

Viktor Szakáts wrote:

> Normally you don't need it. If you leave this envvar 
> empty hbmk2 will attempt to detect Harbour root 
> automatically, based on the location of hbmk2.exe
> (and the relative position of harbour.exe). If that fails,
> it will look for the HB_*_INSTALL envvars, and in this
> case you need to have all three of them setup.


No, it stops before testing if hb_bin_install has something, see lines 357 and
364 of hbmk2.prg at level 10309.

> 
> hbmk2 will show the final settings for bin/include/lib 
> dirs in this line: "hbmk: Using Harbour:"
> 
> If autodetection doesn't work, please send me the 
> output of hb_DirBase() (possibly when you run the 
> program from path, with explicit dir, relative dir, and 
> no dir), this function hasn't been tested on OS/2 yet, 
> and it should return an absolute path for autodetection 
> to work.

hb_DirBase() is empty if I don't write the full path to hbmk2.exe when calling
it (either absolute or relative).

It seems that argv[0] does not contain executable path, but just executable
name (I did just a quick test).

Best regards.

Maurilio.

> 
> Brgds,
> Viktor
> 
> On Tue, Feb 17, 2009 at 5:49 PM, Maurilio Longo
> <maurilio.lo...@libero.it <mailto:maurilio.lo...@libero.it>> wrote:
> 
>     Hi Viktor,
> 
>     latest hbmk2 does not work anymore on OS/2 because it looks for
>     HB_INSTALL_PREFIX which I never had to set to build/install harbour.
> 
>     I have hbmk2.exe inside HB_BIN_STALL with all the other .EXEs.
> 
>     Is HB_INSTALL_PREFIX required as of now, in which case what do I
>     have to set
>     it to?
> 
>     Thanks.
> 
>     Maurilio.
> 
>     --
>      __________
>     |  |  | |__| Maurilio Longo
>     |_|_|_|____| farmaconsult s.r.l.
> 
> 
>     _______________________________________________
>     Harbour mailing list
>     Harbour@harbour-project.org <mailto:Harbour@harbour-project.org>
>     http://lists.harbour-project.org/mailman/listinfo/harbour
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour

-- 
 __________
|  |  | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.


_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to