From: Alain A. <ala...@wa...> - 2016-01-29 09:11:30
|
Le 28/01/2016 22:28, Alain Aupeix a écrit : > Le 28/01/2016 22:16, Qatan a écrit : >> Hello Alain, >> >> Just to confirm... where is the latest version of HwGUI? > http://svn.code.sf.net/p/hwgui/code/trunk > > As I think it ought to be, jharbour locates hwbuild in > > harbour/addons/hwgui > As svn creates a new hwgui filder, I name the first one hwgui-src > So finally, svn will create harbour addons/hwgui-src/hwgui .... > > Use svn located in addons/hwgui-src > > svn co http://svn.code.sf.net/p/hwgui/code/trunk . Just adding some infos: HwGui website http://www.kresin.ru/en/hwgui.html HwGui online doc http://www.kresin.ru/en/hwgdoc.html HwGui Mailing list hwg...@li... But I don't remember how to subscribe to the list Perhaps Alexander can tell us. A+ on the Hwgui mailing list ;) -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-01-28 23:33) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2523) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2016-03-12 08:43:09
|
Le 11/03/2016 22:46, 'Srdjan' via Harbour Users a écrit : > Generating C source output to '/tmp/hbmk_wFKB0Z.dir/mybrowse.c'... Done. > /usr/bin/ld: /usr/lib/hwgui/libhwgui.a(misc.o): undefined reference to > symbol 'cos@@GLIBC_2.0' > //lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO missing from > command line > collect2: error: ld returned 1 exit status > hbmk2[kl]: Error: Running linker. 1 > gcc '/tmp/hbmk_wFKB0Z.dir/Kasa.o' '/tmp/hbmk_wFKB0Z.dir/login.o' > '/tmp/hbmk_wFKB0Z.dir/Fiskal.o' '/tmp/hbmk_wFKB0Z.dir/fsccmd.o' > '/tmp/hbmk_wFKB0Z.dir/EDITOR.o' '/tmp/hbmk_wFKB0Z.dir/Cassa.o' > '/tmp/hbmk_wFKB0Z.dir/tbchoice.o' '/tmp/hbmk_wFKB0Z.dir/F9.o' > '/tmp/hbmk_wFKB0Z.dir/INI.o' '/tmp/hbmk_wFKB0Z.dir/FAKTURA9.o' > '/tmp/hbmk_wFKB0Z.dir/SLOVIMA.o' '/tmp/hbmk_wFKB0Z.dir/placanje.o' > '/tmp/hbmk_wFKB0Z.dir/mybrowse.o' > '/tmp/hbmk_wFKB0Z.dir/hbmk_YCbP7w.o' -Wl,--start-group -lhwgui > -lprocmisc -lhbxml -lhwgdebug -lhbcplr -lhbdebug -lharbour > -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 > -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfontconfig > -lgobject-2.0 -lglib-2.0 -lfreetype -Wl,--end-group -oKasa > -L/usr/lib/harbour -L/usr/lib/hwgui > > What is wrong? How do you built your program ? Can you give here the script or the commands you use ? A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2015-01-19 12:24) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2360) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2016-03-12 10:48:39
|
Le 12/03/2016 10:20, 'Srdjan' via Harbour Users a écrit : > In *kl.hbc* > incpaths=/usr/include/hwgui > libpaths=/usr/lib/hwgui > {win}gt=gtgui > libs=hwgui procmisc hbxml hwgdebug > {win&!allmingw}libs=hbactivex > {unix}ldflags+="`pkg-config --libs gtk+-2.0`" Well, kl.hbc is equal to hwgui.hbc located in hwgui folder > in *kl.hbp* > kl.hbc > Kasa.PRG > login.prg > Fiskal.prg > fsccmd.prg > EDITOR.PRG > Cassa.prg > tbchoice.prg > F9.PRG > INI.PRG > FAKTURA9.PRG > SLOVIMA.PRG > placanje.prg > mybrowse.prg > ikone.res if you compare your hbp file with editor.hbp, you will see that there is a difference: hbc file is located at the end of editor.hbp, and if prefixed by its path. I suppose that your hbc file is located in the same folder. > > > /usr/bin/ld: /usr/lib/hwgui/libhwgui.a(misc.o): undefined > reference to > > symbol 'cos@@GLIBC_2.0' > > //lib/i386-linux-gnu/libm.so.6: error adding symbols: DSO > missing from > > command line > > collect2: error: ld returned 1 exit status > > hbmk2[kl]: Error: Running linker. 1 > Searching for this string gave me the solution, it was to put a system lib at the end of the gcc command line. If you have a look to build.sh which are located in hwgui source, you will find that there is a system library which is used: -lm In the first version I used, there where a such error or something with is similar to you error. After some search for the error, I found it must be located at the end of the command outside of the group Now, I think this error, I signaled to Alexander is corrected. I have created a script to compil my programs, and which is located in usr/bin or /usr/local/bin, which done the trick. Unfortunatly this script is only for one prg. ________________________________________________________________________ #!/bin/bash # hwbuild v 1.00 # 2014-2015 (c) Alain Aupeix if [ $# = 0 ]; then . colors echo if [ "x$noColor" == "x" ]; then echo "syntax: hwbuild file [options...]" echo " where file is the prg filename without extension" echo " where options could be -b to access to the debugger" else echo -e "syntax:$gGre hwbuild$gRed file $gCya[options...]$noColor" echo -e " where$gRed file$noColor is the$gMag prg filename$gCya without extension$noColor" echo -e " where$gCya options$noColor could be$gMag -b$noColor to access to the$gCya debugger$noColor" fi echo exit fi if [ -d hbwlibs.ini ]; then export HRB_BIN=$(sed -n 1p hbwlibs.ini) export HRB_BIN=$(sed -n 2p hbwlibs.ini) export HWGUI_INC=$(sed -n 3p hbwlibs.ini) export HWGUI_LIB=$(sed -n 4p hbwlibs.ini) else export HRB_INC=/usr/include/harbour export HRB_LIB=/usr/lib/harbour export HWGUI_INC=/usr/include/hwgui export HWGUI_LIB=/usr/lib/hwgui fi export SYSTEM_LIBS="-lm" export HARBOUR_LIBS="-lhbdebug -lhbvm -lhbrtl -lgtcgi -lhbdebug -lhblang -lhbrdd -lhbmacro -lhbpp -lrddntx -lrddcdx -lrddfpt -lhbsix -lhbcommon -lhbcpage -lhbcplr" export CONTRIB_LIBS="-lhbct" export HWGUI_LIBS="-lhwgui -lprocmisc -lhbxml -lhwgdebug" harbour $1 -n -ql -i$HRB_INC -i$HWGUI_INC -w2 -d__LINUX__ $2 if [ $? == 0 ]; then gcc $1.c -o$1 -I $HRB_INC -L $HRB_LIB -L $HWGUI_LIB -Wl,--start-group $HWGUI_LIBS $HARBOUR_LIBS $CONTRIB_LIBS -Wl,--end-group `pkg-config --cflags gtk+-2.0` `pkg-config gtk+-2.0 --libs` $SYSTEM_LIBS rm $1.c 2>/dev/null fi echo " " ________________________________________________________________________ But I think it could be easily modified to compil a few prg. For now, I think you can try to add -lm at the beginning of your hbp file, and test. If it always failed, you can modify hwbuild to just build using your .o files. It ought to work. Please, send the solutions you tried, and what appends then. Just 2 remarks: 1) dont send to harbour user mailist when concerning hwgui like now 2) resfiles aren't used under linux. To add an icon to you program (it seems to be what you want to do), use this syntax: // cImageDir is the path where to find your images and icons. It must obviously set to your config cImageDir := cspath+"/"+"images/" oIcon := HIcon():Addfile( cImageDir+"myicon.png" ) .... INIT WINDOW oMainWindow MAIN TITLE "My program title" ICON oIcon AT 200,50 SIZE 844,422 A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.8-1 | H.arbour 3.2.0dev (2015-01-19 12:24) | HbIDE (Rev.316) | Five.Linux (r138) | Hw.Gui (2360) ------------------------------------------------------------------------ |
From: Alain A. <ala...@wa...> - 2016-01-29 09:13:49
|
Le 29/01/2016 10:11, Alain Aupeix a écrit : > Le 28/01/2016 22:28, Alain Aupeix a écrit : > But I don't remember how to subscribe to the list Perhaps Alexander > can tell us. A+ on the Hwgui mailing list ;) I found it : http://sourceforge.net/p/hwgui/mailman/ A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-01-28 23:33) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2523) ------------------------------------------------------------------------ |
From: oleksa <m.o...@uk...> - 2016-01-29 09:15:02
|
Hi! Try http://lists.sourceforge.net/lists/listinfo/hwgui-developers Best regards, Alexey Myronenko 29 січня 2016, 11:11:26, від "Alain Aupeix" < ala...@wa... >: Le 28/01/2016 22:28, Alain Aupeix a écrit : > Le 28/01/2016 22:16, Qatan a écrit : >> Hello Alain, >> >> Just to confirm... where is the latest version of HwGUI? > http://svn.code.sf.net/p/hwgui/code/trunk > > As I think it ought to be, jharbour locates hwbuild in > > harbour/addons/hwgui > As svn creates a new hwgui filder, I name the first one hwgui-src > So finally, svn will create harbour addons/hwgui-src/hwgui .... > > Use svn located in addons/hwgui-src > > svn co http://svn.code.sf.net/p/hwgui/code/trunk . Just adding some infos: HwGui website http://www.kresin.ru/en/hwgui.html HwGui online doc http://www.kresin.ru/en/hwgdoc.html HwGui Mailing list hwg...@li... But I don't remember how to subscribe to the list Perhaps Alexander can tell us. A+ on the Hwgui mailing list ;) -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-01-28 23:33) | HbIDE (Rev.316) | Five.Linux (r143) | Hw.Gui (2523) ------------------------------------------------------------------------ -- -- You received this message because you are subscribed to the Google Groups "Harbour Users" group. Unsubscribe: har...@go... Web: http://groups.google.com/group/harbour-users --- You received this message because you are subscribed to the Google Groups "Harbour Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to har...@go... . For more options, visit https://groups.google.com/d/optout . |