Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Massimo Belgrano
Can be uptated harbour faq? http://www.harbour-project.org/faq/harbour23.html#23 2009/2/17 Viktor Szakáts > >> Is still required bison? >> must SET BISON_SIMPLES ? > > > No, it's not required at all for hbmk. > It's not even needed to build Harbour, since long. > > You can forget about it. > (un

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Viktor Szakáts
Nice, this means it works. Thank you. Brgds, Viktor On Wed, Feb 18, 2009 at 5:34 PM, Maurilio Longo wrote: > Viktor, > > after my last commit, having HB_BIN_INSTALL set, having the directory > containing hbmk2.exe inside PATH, I can issue a command like > > hbmk2 -mt speedtst > > inside tests and

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Maurilio Longo
Viktor, after my last commit, having HB_BIN_INSTALL set, having the directory containing hbmk2.exe inside PATH, I can issue a command like hbmk2 -mt speedtst inside tests and it builds speedtst.exe correctly. So, now it works even without setting HB_INSTALL_PREFIX. Best regards. Maurilio. Vi

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Viktor Szakáts
Hi Maurilio, Okay, so if I understand correctly argv[0] works just like everywhere else, and with the help of our cmdarg.c internals, you're actually getting full paths, if you use Harbour functions hb_DirBase() / hb_ProgName(), is that right? Brgds, Viktor On Wed, Feb 18, 2009 at 5:19 PM, Mauril

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Maurilio Longo
Viktor, command line hasn't got the full path of the command (argv[0]); there is an api which gives such an information, but only for loaded .DLLs. Best regards. Maurilio. Viktor Szakáts wrote: > > I've used your idea since in OS/2 I have a function which gives me > the command > >

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Viktor Szakáts
> > > I've used your idea since in OS/2 I have a function which gives me the > command > > line, but the command name is as it has been entered and as such it lacks > full > > path and extension. > Full path and extension is the main point of hb_progname() and hb_dirbase() (both based on this low

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Przemyslaw Czerpak
On Wed, 18 Feb 2009, Maurilio Longo wrote: Hi, > > hbmk2.exe. In such case if OS2 does not have function like MS-Win > > GetModuleFileName() then you may try to set the default extension. > > Before: > > while( pNextPath ) > > { > > add this lines: > > #ifdef HB_OS_OS2 > >

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Maurilio Longo
Przemyslaw, > hbmk2.exe. In such case if OS2 does not have function like MS-Win > GetModuleFileName() then you may try to set the default extension. > Before: > while( pNextPath ) > { > > add this lines: > > #ifdef HB_OS_OS2 > if( !pFName->szExt ) >

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Maurilio Longo
Przemyslaw Czerpak wrote: > On Tue, 17 Feb 2009, Maurilio Longo wrote: > > Hi Maurilio, > >> 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 >> na

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-18 Thread Maurilio Longo
Viktor, > Thanks, we need fix this for OS/2, more closely hb_cmdargInit(), > argv[0] detection. > > Could you help here? Does OS/2 have a native call to determine this? > Yes, it has a function which returns: --8<-- This is the address of the ASCIIZ argument strings pa

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Mindaugas Kavaliauskas
Is still required bison? must SET BISON_SIMPLES ? Hi, see ChangeLog entry: 2006-11-28 19:30 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) Regards, Mindaugas ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.or

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Viktor Szakáts
Found this code (from git): http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/progreloc.c Maybe there are some hints in it. Brgds, Viktor On Tue, Feb 17, 2009 at 7:30 PM, Przemyslaw Czerpak wrote: > On Tue, 17 Feb 2009, Maurilio Longo wrote: > > Hi Maurilio, > > > hb_DirBase()

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Viktor Szakáts
> > Audodetect is based on search of compiler in path? No, first it checks the dir where the executed hbmk executable is located. If it finds a harbour executable there, it assumes a regular binary install with root/bin, root/include, root/lib structure. Then it looks a few directory level upper,

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Przemyslaw Czerpak
On Tue, 17 Feb 2009, Maurilio Longo wrote: Hi Maurilio, > 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). Please look

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Viktor Szakáts
> > > 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 wor

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Maurilio Longo
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, an

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Massimo Belgrano
Audodetect is based on search of compiler in path? better way if will possible is set path of your c compiler as only works and call a compilation batch that like hbmk2 show the detected compiler and go Is still required bison? must SET BISON_SIMPLES ? 2009/2/17 Viktor Szakáts : > Hi Maurilio, >

Re: [Harbour] hbmk2 and HB_INSTALL_PREFIX

2009-02-17 Thread Viktor Szakáts
Hi Maurilio, > 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 >