Hi Wilfried,
Trying to build it using a modified makefile.linux, I have an error (missing windows.h) :
alain@VB-Xubuntu20:/opt/TuxPrograms/trunks/harbour/addons/hwgui-src/hwgui/contrib$ make -f mymake.linux
../../../../bin/linux/gcc/harbour ext_controls/hbrowsex.prg -n -w -I../../../../include -i/usr/include/hwgui -d__LINUX__ -d__GTK__ -oobj/hbrowsex.c ext_controls/hbrowsex.prg
Harbour 3.2.0dev (r2303091450)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'ext_controls/hbrowsex.prg'...
Lines 9025, Functions/Procedures 84
Generating C source output to 'obj/hbrowsex.c'... Done.
Compiling 'ext_controls/hbrowsex.prg'...
Lines 9025, Functions/Procedures 84
Generating C source output to 'obj/hbrowsex.c'... Done.
gcc -Wall -O3 -c -I/usr/include/hwgui -I../../../../include -o obj/hbrowsex.o obj/hbrowsex.c
../../../../bin/linux/gcc/harbour ext_controls/hctrlex.prg -n -w -I../../../../include -i/usr/include/hwgui -d__LINUX__ -d__GTK__ -oobj/hctrlex.c ext_controls/hctrlex.prg
Harbour 3.2.0dev (r2303091450)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'ext_controls/hctrlex.prg'...
Lines 5877, Functions/Procedures 50
Generating C source output to 'obj/hctrlex.c'... Done.
Compiling 'ext_controls/hctrlex.prg'...
Lines 5877, Functions/Procedures 50
Generating C source output to 'obj/hctrlex.c'... Done.
gcc -Wall -O3 -c -I/usr/include/hwgui -I../../../../include -o obj/hctrlex.o obj/hctrlex.c
../../../../bin/linux/gcc/harbour ext_controls/hcomboex.prg -n -w -I../../../../include -i/usr/include/hwgui -d__LINUX__ -d__GTK__ -oobj/hcomboex.c ext_controls/hcomboex.prg
Harbour 3.2.0dev (r2303091450)
Copyright (c) 1999-2021, https://harbour.github.io/
Compiling 'ext_controls/hcomboex.prg'...
Lines 5856, Functions/Procedures 43
Generating C source output to 'obj/hcomboex.c'... Done.
Compiling 'ext_controls/hcomboex.prg'...
Lines 5856, Functions/Procedures 43
Generating C source output to 'obj/hcomboex.c'... Done.
gcc -Wall -O3 -c -I/usr/include/hwgui -I../../../../include -o obj/hcomboex.o obj/hcomboex.c
In file included from ext_controls/hcomboex.prg:28:
/usr/include/hwgui/hwingui.h:19:10: fatal error: windows.h: Aucun fichier ou dossier de ce type
19 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
make: *** [mymake.linux:33 : obj/hcomboex.o] Erreur 1
rm obj/hbrowsex.c obj/hcomboex.c obj/hctrlex.c
I join my modified version (mymake.linux)
Does this contrib only build under Windows ?
Thanks
A+
Hi, removing hcomboex from mymake.linux, it builds correctly.
Could it be en error in hcomboex.prg ? A typo between windows.h and windows.ch ?
Thanks
A+
Hello Alain,
see Readme.txt:
this feature is "Windows only".
MNI TNX, 73 es 55 de
DF7BE
Yes, I see, but modifying the Makefile it builds for other functions.
You can make it if you want.
You can close
A+
Hello Alain,
i copied your modification into the real makefile and committed and checked is with r3217
./clean.sh
cleaning: left libraries:
/svnwork/hwgui-code/hwgui/lib$ ls
empty.txt libhbqrencode.a libqrcodegen.a
New HWGUI compile:
./make_gtk.sh -hb
cd contrib/
~/svnwork/hwgui-code/hwgui/contrib
make -f makefile.linux
Check for symbols:
~/svnwork/hwgui-code/hwgui/lib$ nm libhwg_extctrl.a | grep hbrowsex
hbrowsex.o:
nm libhwg_extctrl.a | grep hctrlex
hctrlex.o:
MNI TNX, 73 es 55 de
DF7BE
nm libhwg_extctrl.a | grep HBROWSEX
0000000000000000 t hb_vm_SymbolInit_HBROWSEX
Now i close this ticket.