Menu

#77 adjust to compile using -w3 -es2

v1.0_(example)
open
nobody
None
1
2021-03-15
2021-02-16
No

folder winapi

1 Attachments

Discussion

<< < 1 2 (Page 2 of 2)
  • José M. C. Quintas

    all ok.

     
  • Itamar M. Lins Jr.

    Hi!
    Wilfried, see attached file of warnings.
    GCC 10.2.1
    Linux Ubuntu 10.2.1
    Changelog 2950 2021-03-01 10:06:39Z df7be

    Best regards,
    Itamar M. Lins Jr.

     
  • Wilfried Brunken

    Hello Itamar,
    done with r2951, referenced by your output messages list.
    Please check.

    Here the list of modified files, please be shure,
    that you have the newest version:

    include/warnings.h
    source/gtk/commond.c
    source/gtk/control.c
    source/gtk/draw.c
    source/gtk/drawtext.c
    source/gtk/window.c
    source/gtk/wprint.c
    source/gtk/menu_c.c
    source/gtk/message.c
    source/gtk/misc.c
    source/gtk/inter.c

    Be shure, that the c files contain:

    include "warnings.h"

    The following 3 files have not the newest version
    on your local copy, but were commited in earlier revisions:
    source\gtk\control.c
    source\gtk\misc.c
    source\gtk\window.c

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

     
  • José M. C. Quintas

    More files changed.
    - hbc include some windows libs
    - XHarbour compatibitily and unify to hb_Eol()/hb_PS()
    - allhbp.hbp to compile all samples
    - -stop{win} to do not compile linux on windows
    - same order on hbp files
    - delete hgt on test/, once it is on samples
    - note about harbour 3.4 do not have some codepages
    -zip contain changed files on linux format and original folders

     

    Last edit: José M. C. Quintas 2021-03-08
  • Wilfried Brunken

    Hello José,
    done, comitted with r2957.
    Please check.

    Here some additional comments:

    I modified "allhbp.hbp" and added some comments.
    Must set out GTK samples on Windows (try to modify later):
    hbmk2[allhbp]: Warning: Project reference ({linux}..\samples\gtk_samples\a.hbp)
    ignored. File not found.
    because: -d__LINUX__ -d__GTK__

    Here some facts:

    Hwreport:
    Borland resource files are not compatible to
    MinGW with windres compiler and GTK/LINUX.
    I started a task for port of Borland resource files to HWGUI commands.
    The hwreport utility is started, so i do not copy the files.
    "repbuild.rc" will be deleted, if task ended.
    Please don't modify prg files of hwreport, until a am ready.
    I'll need yet a few day's.

    Referenced by "samples\Readme.txt",
    you find some hints for outdated features and more information:

    • MS Agent, outdated.
      Not contained in Windows 7 and higher, support ended.

    • Support for ActiveX ended, substituted by HTML5 and Java.

    • harbour 3.4 do not have codepage DE858/DEWIN:
      It is very important for Euro currency sign !
      19 Countries in Europe have the Euro currency.
      https://de.wikipedia.org/wiki/Eurozone
      Use recent code snapshot of Harbour for editor,
      The Harbour group added this codepage very fast last year
      because of my ticket.

    • Some samples have bugs (freezing and/or must be ported from BCC rc to HWGUI).
      Also the hbp must be completed with all working sample programs.

    Compile on my Windows 10 laptop with MingW32 compiles without errors.
    Tested also with my app "CLLOG".

    Some work to do on LINUX:
    Copyright (c) 1999-2020, https://harbour.github.io/
    /usr/bin/ld: ../lib/libprocmisc.a(procs7.o): Die Umlagerung von
    ../lib/libprocmisc.a: error adding symbols: Ungültiger Wert
    collect2: error: ld returned 1 exit status
    hbmk2[hwguidyn]: Error: Running dynamic lib link command. 1
    gcc -shared -o ../lib/libhwguidyn.so '/tmp/hbmk_7u70m6.dir/drawwidg.o' '/tmp/hbmk_7u70m6.dir/herrsys.o' '/tmp/hbmk_7u70m6.dir/gtkmain.o' '/tmp/hbmk_7u70m6.dir/hbincnt.o' '/tmp/hbmk_7u70m6.dir/hbrowse.o' '/tmp/hbmk_7u70m6.dir/hcwindow.o' '/tmp/hbmk_7u70m6.dir/hcheck.o' '/tmp/hbmk_7u70m6.dir/hcombo.o' '/tmp/hbmk_7u70m6.dir/hcontrol.o' '/tmp/hbmk_7u70m6.dir/hdialog.o' '/tmp/hbmk_7u70m6.dir/hedit.o' '/tmp/hbmk_7u70m6.dir/hfrmtmpl.o' '/tmp/hbmk_7u70m6.dir/hgraph.o' '/tmp/hbmk_7u70m6.dir/hhyper.o' '/tmp/hbmk_7u70m6.dir/hownbtn.o' '/tmp/hbmk_7u70m6.dir/hpanel.o' '/tmp/hbmk_7u70m6.dir/hprinter.o' '/tmp/hbmk_7u70m6.dir/hradio.o' '/tmp/hbmk_7u70m6.dir/hsayimg.o' '/tmp/hbmk_7u70m6.dir/hsplit.o' '/tmp/hbmk_7u70m6.dir/htab.o' '/tmp/hbmk_7u70m6.dir/htimer.o' '/tmp/hbmk_7u70m6.dir/htool.o' '/tmp/hbmk_7u70m6.dir/htree.o' '/tmp/hbmk_7u70m6.dir/hupdown.o' '/tmp/hbmk_7u70m6.dir/hwindow.o' '/tmp/hbmk_7u70m6.dir/hwinprn.o' '/tmp/hbmk_7u70m6.dir/hprogres.o' '/tmp/hbmk_7u70m6.dir/hmonthc.o' '/tmp/hbmk_7u70m6.dir/hmisc.o' '/tmp/hbmk_7u70m6.dir/menu.o' '/tmp/hbmk_7u70m6.dir/commond.o' '/tmp/hbmk_7u70m6.dir/control.o' '/tmp/hbmk_7u70m6.dir/draw.o' '/tmp/hbmk_7u70m6.dir/drawtext.o' '/tmp/hbmk_7u70m6.dir/window.o' '/tmp/hbmk_7u70m6.dir/wprint.o' '/tmp/hbmk_7u70m6.dir/menu_c.o' '/tmp/hbmk_7u70m6.dir/message.o' '/tmp/hbmk_7u70m6.dir/misc.o' '/tmp/hbmk_7u70m6.dir/inter.o' -Wl,--start-group -lhwgui -lprocmisc -lhbxml -lhwgdebug -lhbcplr -lhbdebug -lharbour -Wl,--end-group -L'/home/cltest/Harbour/core-master/lib/linux/gcc' -L../lib

    But the 4 basic static libraries are built and my "CLLOG" works, too.

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

     
  • Wilfried Brunken

    Hello José.
    here additional information about EOL characters and directory separators:
    In HWGUI you find the following two functions:
    hwg_GetDirSep() and hwg_EOLStyle()
    These functions work also on GTK cross development environment.
    They should be used in newer application and be compatible
    with XHarbour. Later they will also return the correct values for MacOS, if
    the port is done in future.

    Now i continue the port of BCC resources to HWGUI commands in hwreport.

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

     
  • José M. C. Quintas

    About {linux} on container.
    Are you sure?

    hbmk2 [allhbp]: Warning: Project reference
    ({linux}..\samples\gtk_samples\graph.hbp) ignored. File not
    found.
    hbmk2 [allhbp]: Warning: Project reference
    ({linux}..\samples\gtk_samples\progbars.hbp) ignored. File not
    found.

    seems this option is not valid for container.
    because of this, I use stop={win} on hbp files of gtk
    or... may be this is another difference between harbour 3.2 and 3.4

     

    Last edit: José M. C. Quintas 2021-03-10
  • Wilfried Brunken

    Hello José,
    now for hwreport port from Borland resource file to HWGUI commands finished.
    Runs with MinGW32.
    But needs some bugfix:
    - print of report crashes (also in old version with BCC)
    - need to make example prg compilable.
    - Some Windows only function needs to port or substituted for GTK.

    Now in the next few days i will look for your hbp files to avoid
    the warn message to insert -stop in the hbp files and add the samples for WinAPI
    (if runs with no errors).
    Also a new ticket #80 needs to be looked for.

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

     
  • Wilfried Brunken

    Hello José,
    started the conversion of your hbcontainer project,
    to be continued for all samples, on Windows.

    There is a lot work, i will inform you,
    if am ready. I added a list of sample programs in "allhbp.hbp".
    Also a lot warnings "Ambiguous reference" must be fixed.

    With r2960 i committed the first experimental state.
    Following the messages of subproject ignored for WinAPI by using "-stop={win}".

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

    Harbour 3.2.0dev (r2002101434)
    Copyright (c) 1999-2020, https://harbour.github.io/
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\a.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\dbview.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\escrita.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\example.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\GetWinVers.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\graph.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\progbars.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\pseudocm.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\sample.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\testget2.hbp
    hbmk2: Building sub-project (level 2): ..\samples\gtk_samples\winprn.hbp
    hbmk2: Building sub-project (level 2): ..\utils\bincnt\bincnt.hbp

     
  • Wilfried Brunken

    Hello José,
    with commit r2961 i finished your project "hbcontainer" for Windows.
    Need some work for LINUX, will do as soon as possible.
    It is not possible yet to create a shared library (with extension *.so) for LINUX,
    this is simular to a DLL on Windows.
    Some sample programs could not be compiled or have errors, i handle it with low priority.

    Please check.

    MNI TNX fer your support.

    With regards,
    73 es 55 de
    DF7BE, Wilfried

     
  • Wilfried Brunken

    Hello José,
    project "hbcontainer" for LINUX with commit r2964 now completed.
    Protocol of run appended to this post.

    The trouble with DBC was very simple,
    the function "WndOut()" was also defined in
    source\common\procmisc\procscri.prg
    and was empty in utils\dbc\dbchw.prg
    (about line 1145).
    So it was easy to fix by delete 2 lines.

    Please look into Changelog for all modifications
    and check.

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

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.