Menu

#46 Hwgui Linux GCC 9.3 64Bit "sqrt@@GLIBC_2.2.5"

v1.0_(example)
closed
nobody
None
1
2020-11-30
2020-07-01
No

Hi!
I get this error while make designer, tutor...

Harbour 3.2.0dev (r2006301601)
Copyright (c) 1999-2020, https://harbour.github.io/

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r2006301601)
Compiler: GNU C 9.3 (64-bit)
Platform: Linux 5.4.0-39-generic x86_64
PCode version: 0.3
ChangeLog last entry: 2020-06-30 18:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
ChangeLog ID: 65ceb79e734ecdf381da0cd86c8b53302c04bde3
Built on: Jul  1 2020 12:40:27
Build options: (Clipper 5.3b) (Clipper 5.x undoc) 
...
Generating C source output to '/tmp/hbmk_bgdo54.dir/editor.c'... Done.
/usr/bin/ld: ../../lib/libhwgui.a(draw.o): referência indefinida a símbolo "sqrt@@GLIBC_2.2.5"
/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: erro ao adicionar símbolos: DSO em falta da linha de comandos
itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'
ii  libgtk-3-0:amd64       3.24.18-1ubuntu1 amd64        GTK graphical user interface library
ii  libgtk-3-bin           3.24.18-1ubuntu1 amd64        programs for the GTK graphical user interface library
ii  libgtk-3-common        3.24.18-1ubuntu1 all          common files for the GTK graphical user interface library
ii  libgtk2.0-0:amd64      2.24.32-4ubuntu4 amd64        GTK graphical user interface library - old version
ii  libgtk2.0-bin          2.24.32-4ubuntu4 amd64        programs for the GTK graphical user interface library
ii  libgtk2.0-common       2.24.32-4ubuntu4 all          common files for the GTK graphical user interface library
ii  libgtk2.0-dev:amd64    2.24.32-4ubuntu4 amd64        development files for the GTK library
ii  libgtk3-nocsd0:amd64   3-1ubuntu1       amd64        Library to disable Gtk+ 3 client side decorations (CSD)
itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ 

Best regards,
Itamar M. Lins Jr.

Discussion

  • Wilfried Brunken

    Hello Itamar,
    try to move all $SYSTEM_LIBS at the end of the commands.
    (Build script for tutorial in attachment.
    (see closed ticket #4, seemed to be similar).
    On my Ubuntu AMD_x86_64 system i can compile and run the tutor.

    If you have succes, send me a response.
    Then i will check in the modification for all build.sh

    With regards,
    MNI TNX, 73 es 55 de

    Wilfried, DF7BE

     
  • Itamar M. Lins Jr.

    Hi!
    This file build.sh not work on Kubuntu not found Harbour bin and file "PRG"
    Harbour 3.2 install default /usr/local/bin

    tamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ nano build.sh 
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ ./build.sh progbars.prg 
    ./build.sh: linha 39: progbars: comando não encontrado
    gcc: error: progbars.c: Arquivo ou diretório inexistente
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ ./build.sh progbars.prg 
    ./build.sh: linha 39: progbars: comando não encontrado
    gcc: error: progbars.c: Arquivo ou diretório inexistente
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ nano build.sh 
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ pwd
    /home/itamar/hwgui-fonte/hwgui/samples/gtk_samples
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ cd ..
    

    I modify build.sh but not success... the sintaxe bash shell not understand
    I use hbmk2 is very, very simple use...

    Best regards,
    Itamar M. Lins Hr.

     
  • Itamar M. Lins Jr.

    Hi!

    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ cp ~/Downloads/build.sh ../../utils/tutorial/
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ cd ../../utils/tutorial/
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ ls -l
    total 96
    -rw-rw-r-- 1 itamar itamar  1375 jul  1 13:25 bld.bat
    -rw-rw-r-- 1 itamar itamar  1553 jul  1 13:25 bldgw.bat
    -rwxrwxr-x 1 itamar itamar   918 jul  1 13:25 bldow.bat
    -rw-rw-r-- 1 itamar itamar  1325 jul  2 10:34 build.sh
    -rw-rw-r-- 1 itamar itamar    57 jul  1 13:25 hwgrun.hbp
    -rw-rw-r-- 1 itamar itamar  3660 jul  1 13:25 hwgrun.prg
    -rw-rw-r-- 1 itamar itamar   142 jul  1 13:25 hwgrun.xml
    -rw-rw-r-- 1 itamar itamar 45569 jul  1 13:25 tutor_eng.xml
    -rw-rw-r-- 1 itamar itamar   115 jul  1 13:25 tutor.hbp
    -rw-rw-r-- 1 itamar itamar 12074 jul  1 13:25 tutor.prg
    -rw-rw-r-- 1 itamar itamar   998 jul  1 13:25 tutor.xml
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ chmod +x build.sh 
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ ./build.sh tutor.prg 
    ./build.sh: linha 30: /home/itamar/Harbour/core-master/bin/linux/gcc/harbour: Arquivo ou diretório inexistente
    gcc: error: tutor.c: Arquivo ou diretório inexistente
    ./build.sh: linha 33: /home/itamar/Harbour/core-master/bin/linux/gcc/harbour: Arquivo ou diretório inexistente
    gcc: error: hwgrun.c: Arquivo ou diretório inexistente
    rm: não foi possível remover 'tutor.c': Arquivo ou diretório inexistente
    rm: não foi possível remover 'hwgrun.c': Arquivo ou diretório inexistente
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/utils/tutorial$ 
    

    Best regards,
    Itamar M. Lins Jr.

     
  • Itamar M. Lins Jr.

    Hi!
    I change build.sh and works!
    See this line; export HRB_LIB=/usr/local/lib64/harbour
    Default Harbour 3.2 is /lib64 not /lib

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    #!/bin/bash
    #
    # build.sh
    #
    
    export HRB_BIN=/usr/local/bin
    export HRB_INC=/usr/local/include/harbour
    export HRB_LIB=/usr/local/lib64/harbour
    
    export SYSTEM_LIBS="-lm"
    export HARBOUR_LIBS="-lhbdebug -lhbvm -lhbrtl -lgtcgi -lhbdebug -lhblang -lhbrdd -lhbmacro -lhbpp -lrddntx -lrddcdx -lrddfpt -lhb>
    export HWGUI_LIBS="-lhwgui -lprocmisc -lhbxml -lhwgdebug"
    export HWGUI_INC=../../include
    export HWGUI_LIB=../../lib
    
    $HRB_BIN/harbour tutor -n -i$HRB_INC -i$HWGUI_INC -w2 -d__LINUX__ -d__GTK__
    gcc tutor.c -otutor -I $HRB_INC -L $HRB_LIB -L $HWGUI_LIB -Wl,--start-group $HWGUI_LIBS $HARBOUR_LIBS  -Wl,--end-group `pkg-confi>
    
    $HRB_BIN/harbour hwgrun -n -i$HRB_INC -i$HWGUI_INC -w2 -d__LINUX__ -d__GTK__
    gcc hwgrun.c -ohwgrun -I $HRB_INC -L $HRB_LIB -L $HWGUI_LIB -Wl,--start-group $HWGUI_LIBS $HARBOUR_LIBS  -Wl,--end-group `pkg-con>
    
    rm tutor.c
    rm hwgrun.c
    
    # =================== EOF of build.sh =======================
    

    Now I will test files hbmk2 .hbp

    Best regards,
    Itamar M. Lins Jr.

     
  • Itamar M. Lins Jr.

    Hi!
    Tip to resolve warning (tutor:75916): Gtk-WARNING **: 10:48:29.810: Unable to locate theme engine in module_path: "adwaita"
    $sudo apt-get install gnome-themes-standard

    Best regards,
    Itamar M. Lins Jr.

     
  • Itamar M. Lins Jr.

    Hi!
    Please add flag "-lm" into hbp files and -static

    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ hbmk2 a.prg ../../hwgui.hbc -lm -static
    Harbour 3.2.0dev (r2006301601)
    Copyright (c) 1999-2020, https://harbour.github.io/
    Compiling 'a.prg'...
    Lines 3750, Functions/Procedures 7
    Generating C source output to '/tmp/hbmk_fssm67.dir/a.c'... Done.
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ 
    

    Compile fine now, and works fine, no warnigs GTK while open.

    Best regards,
    Itamar M. Lins Jr.

     
  • Wilfried Brunken

    Hello Itamar,
    i committed r2861 with your sugestions.
    I added HRB_LIB=/usr/local/lib64/harbour
    as a comment, then the user must comment this line out on a
    64bit system.
    Building Harbour, HWGUI and a program as a non root build, it is here really a 64 bit
    executable:
    cltest@afulinux4:~/svnwork/hwgui-code/hwgui/utils/tutorial$ file tutor
    tutor: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=113579500ee4d018544d206fc7565ede9fe69416, not stripped

    Please check modifications and give feedback.
    Ready for close this ticket ?

    MNI TNX fer ur support.

    With regards. 73 es 55 de
    Wilfried, DF7BE

     
  • Itamar M. Lins Jr.

    Hi!
    More one tip! Not necessary many, several files *.hbp
    Make only 1(one) file hbmk.hbm with:
    File hbmk.hbm -> hbmk2 get it and set defatult config for all files into folder

    -n -w
    -lm
    -static
    -strip
    -d__LINUX__ -d__GTK__
    
    ../../hwgui.hbc
    

    See, message of hbmk2, -> //hbmk2: Process script local: hbmk.hbm

    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ hbmk2 a.prg
    hbmk2: Processando script local: hbmk.hbm
    Harbour 3.2.0dev (r2006301601)
    Copyright (c) 1999-2020, https://harbour.github.io/
    Compiling 'a.prg'...
    a.prg(16) Warning W0002  Ambiguous reference, assuming memvar 'CIMAGEDIR'
    a.prg(16) Warning W0002  Ambiguous reference, assuming memvar 'OFONT'
    a.prg(26) Warning W0001  Ambiguous reference 'CIMAGEDIR'
    a.prg(32) Warning W0001  Ambiguous reference 'OFONT'
    a.prg(32) Warning W0001  Ambiguous reference 'OFONT'
    a.prg(34) Warning W0001  Ambiguous reference 'NCOLOR'
    a.prg(34) Warning W0001  Ambiguous reference 'NCOLOR'
    a.prg(34) Warning W0001  Ambiguous reference 'NCOLOR'
    a.prg(34) Warning W0001  Ambiguous reference 'NCOLOR'
    a.prg(89) Warning W0001  Ambiguous reference 'OFONT'
    a.prg(90) Warning W0001  Ambiguous reference 'OFONT'
    a.prg(135) Warning W0001  Ambiguous reference 'NCOLOR'
    a.prg(135) Warning W0001  Ambiguous reference 'NCOLOR'
    Lines 3750, Functions/Procedures 7
    Generating C source output to '/tmp/hbmk_sewdqb.dir/a.c'... Done.
    itamar@itamar-desktop:~/hwgui-fonte/hwgui/samples/gtk_samples$ 
    

    Best regards,
    Itamar M. Lins Jr.

     

    Last edit: Itamar M. Lins Jr. 2020-07-04
  • Itamar M. Lins Jr.

     

    Last edit: Itamar M. Lins Jr. 2020-07-04
  • Itamar M. Lins Jr.

    Hi!
    size a.prg striped. flag -strip into file hbmk.hbm
    -rwxrwxr-x 1 itamar itamar 1799232 jul 4 12:06 a
    size a.prg not striped.
    -rwxrwxr-x 1 itamar itamar 2026808 jul 4 12:10 a

    Ready for close this ticket ?
    Close this ticket!

    Best regards,
    Itamar M. Lins Jr.

     

    Last edit: Itamar M. Lins Jr. 2020-07-04
  • Maurizio la Cecilia

    • status: open --> closed
     

Log in to post a comment.