Menu

#72 please test editor.hbp on linux with these changes

v1.0_(example)
closed
nobody
None
1
2021-01-10
2020-12-04
No

A hbp is a command line on a file.
May be anybody try to use {linux}-d__LINUX__ -d__GTK__ and this is equivalent to:
{linux}-d__LINUX__
-d__GTK__
When declare -d, need to declare {linux} for each parameter.

-n -w

{linux}-lm
{linux}-static
{linux}-d__LINUX__
{linux}-d__GTK__

-oeditor

-L../..
hwgui.hbc
hbct.hbc

editor.prg
hcediext.prg
calc.prg

Please check this new editor.hbp on linux, and if it works ok, delete editor_linux.hbp

Discussion

  • José M. C. Quintas

    Attention on -L and hbc
    -L../.. hwgui.hbc is ok, but hwgui.hbc -L../.. is wrong.
    hbmk2 needs to know the path, BEFORE check hwgui.hbc

     
  • Wilfried Brunken

    Hello José,
    done with commit r2909. Look also at bugfix of HCEDIT class.
    Please Check and give feedback.
    Tested with Windows 10 and Ubuntu 16.04 LTS.

    MNI TNX fer your support.

    With regards,
    73 es 55 de
    DF7BE, Wilfried

     
  • José M. C. Quintas

    more hbps for windows/linux, check, and if ok, delete xxx_linux.hbp from folders:
    on previous hbp, linux name for dbch/hwgdebug is not the same for windows/linux, not sure if can be used the same name.

    hwgui/utils/debugger/sample.hbp
    hwgui/utils/debugger/hwgdebug.hbp
    hwgui/utils/dbc/dbchw.hbp
    hwgui/utils/bincnt/file2hex.hbp
    hwgui/utils/bincnt/bincnt.hbp
    hwgui/utils/designer/designer.hbp
    hwgui/utils/tutorial/tutor.hbp
    hwgui/utils/tutorial/hwgrun.hbp

     

    Last edit: José M. C. Quintas 2020-12-05
  • Wilfried Brunken

    Hello José,
    done with commit r2910.
    Please Check and give feedback.
    Tested with Windows 10 and Ubuntu 16.04 LTS.

    MNI TNX fer your support.

    With regards,
    73 es 55 de
    DF7BE, Wilfried

     
  • Oleksii Myronenko

    Hi!

    To compile any samples, tests, projects with hwgui, just specify the location of hwgui.hbc, no need to use the option -L.
    And the option -o, why use it, if output file name does not changed?

    Best regards

     
  • Wilfried Brunken

    Hello Oleksii,
    yes, i know about it, this is an alternative way to
    declare path settings in hbc files.
    With last commit, i added some descriptive remarks in file
    samples/sample.hbp for the user. This helps him to
    use this file as template for building his own program.

    With regards,
    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     
  • José M. C. Quintas

    yes, or include on harbour/bin/hbmk.hbc libpaths=hwguipath

    harbour/bin/hbmk.hbc define default for all harbour compilation - I define hbc path only
    on folders: hbmk.hbm or hbmk.hbc define defaults for folder - good for samples folder
    on project.hbp: define for project, if others have path, here needs hwgui.hbc only.

    and for hwgui, may be you like the container option of hbmk2, with sub-projects
    file; hwgui.hbp
    -hbcontainer
    source/hwgui.hbp
    source/hbxml.hbp
    source/procmisc.hbp
    source/hwgdebug.hbp
    contrib/hwg_extctrl.hbp
    contrib/hwg_qhtm.hbp
    contrib/hbactivex.hbp
    source/hwguidyn.hbp

     
    • Oleksii Myronenko

      Hi again, sorry, but you are looking for a difficult way for simple things.

       
  • Oleksii Myronenko

    Hi!

    Some clarifications on editor.hbp (and *.hbp)

    #
    # $Id: editor.hbp 2909 2020-12-05 11:06:22Z df7be $
    #
    
    # Make script for HWGUI editor using hbmk2 utility
    
    -n -w
    
    -oeditor
    
    {linux}-static
    {linux}-d__LINUX__
    {linux}-d__GTK__
    -L../..
    -lhbct
    {linux}-lm
    
    editor.prg
    hcediext.prg
    calc.prg
    
    ..\..\hwgui.hbc
    
    # --------------------- EOF of editor.hbp -------------------------
    
    • if you does not change the output filename, option -o not required
    • in this case we use hbct lib (it's a core lib), then just use hbct.hbc and -L../.. does not required
      and we have the smaller and clear hbp file
    #
    # $Id: editor.hbp 2909 2020-12-05 11:06:22Z df7be $
    #
    
    # Make script for HWGUI editor using hbmk2 utility
    
    -n -w
    
    {linux}-static
    {linux}-d__LINUX__
    {linux}-d__GTK__
    {linux}-lm
    
    hbct.hbc
    
    editor.prg
    hcediext.prg
    calc.prg
    
    ..\..\hwgui.hbc
    
    # --------------------- EOF of editor.hbp -------------------------
    

    regards

     

    Last edit: Oleksii Myronenko 2020-12-17
  • Wilfried Brunken

    Hello Oleksii,
    done with r2918,please check.

    With regards,
    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     
    • Oleksii Myronenko

      It's ok, thanks

       
  • Maurizio la Cecilia

    • Status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB