Page 1 of 2
Running harbour\contrib\hbfimage\test
Posted: Tue Jun 09, 2015 11:11 pm
by hmgchang
Dear Masters,
There are alot of harbour\contrib programs and samples,
like the hbfimage, but i cant compile with the build.bat
from the hm 3.3.1... Pls help and advise how to do it...
TIA...
best rgds,
Chang
Re: Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 1:15 am
by danielmaximiliano
Contiene un error Warnning W0032 que corresponde a la linea 51 y 53
im := fi_Load( FIF_JPEG, IMAGES_IN + "nothere.jpg", JPEG_DEFAULT )
im := fi_Load( FIF_JPEG, IMAGES_IN + "nothere.jpg", JPEG_DEFAULT )
todavia no encontre el error de codigo.
Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 2:25 pm
by Pablo César
This is Harbour issues and these examples are in console mode.
Daniel, ese test para ser compilado correctamente, irá precisar generar la biblioteca hbfimage.
Re: Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 7:17 pm
by danielmaximiliano
Pablo César wrote:This is Harbour issues and these examples are in console mode.
Daniel, ese test para ser compilado correctamente, irá precisar generar la biblioteca hbfimage.
Correct ....
Download Freeimage from
https://sourceforge.net/projects/freeimage
Unrar to : C:\
Goto sources in C:\harbour\contrib\hbfimage
create compile.bat
Code: Select all
set Backup=%path%
set HB_WITH_FREEIMAGE=C:\FreeImage\Dist\x32
set path=%path%;C:\hb32\bin
hbmk2 hbfimage.hbp
set path=%backup%

- hbfreeimage.jpg (26.56 KiB) Viewed 6802 times
change folder Test.
create compile.bat
Note : Add hbfimage.hbc to your hbmk2 project or line command.
Code: Select all
set Backup=%path%
set Backup=%path%
set path=%path%;C:\hb32\bin
hbmk2 test.prg hbfimage.hbc
set path=%backup%
copy hbfimage.hbc to folder Tests.
copy libhbfimage.a to folder Tests.
copy FreeImage.dll to folder Tests.
execute compile.bat........
execute tests.exe ... DONE.......
Re: Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 10:33 pm
by hmgchang
My thanks to Masters for the guidance,
I will try it...

Re: Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 11:16 pm
by hmgchang

- hbfimage.PNG (6.97 KiB) Viewed 6780 times
I am using hmg.3.3.1, can i change the path to set path=%path%;C:\hmg.3.3.1 ?
Sorry, but I dont see any .hbp or .a files....
what have i done wrong ?
TIA
best rgds
Chang
Re: Running harbour\contrib\hbfimage\test
Posted: Wed Jun 10, 2015 11:57 pm
by danielmaximiliano
libhbfimage.a es creado a partir de la ejecucion de compile.bat
es raro pero la descarga de los sources desde Github trae hbfimage.hbp
libhbfimage.a is created from the execution of compile.bat
It is rare but downloading the sources from Github brings hbfimage.hbp
code in hbfimage.hbp
Code: Select all
-hblib
-inc
-o${hb_name}
-w3 -es2
-stop{dos|os2}
-depkeyhead=freeimage:FreeImage.h
-depcontrol=freeimage:no{HB_BUILD_3RDEXT='no'}
-depcontrol=freeimage:${HB_WITH_FREEIMAGE}
-depincpath=freeimage:/usr/include
-depincpath=freeimage:/usr/local/include
-depincpath=freeimage:/opt/local/include
-depimplibs=freeimage:../Dist/FreeImage.dll
# For FreeImage headers
-c=gnu90
${hb_name}.hbx
fi_wrp.c
Re: Running harbour\contrib\hbfimage\test
Posted: Thu Jun 11, 2015 9:55 pm
by hmgchang
Thks Mr. Daniel,
but getting this after compile :

- hbfimage.PNG (53.25 KiB) Viewed 6731 times
Pls advise...
TIA
Re: Running harbour\contrib\hbfimage\test
Posted: Thu Jun 11, 2015 10:29 pm
by danielmaximiliano
exists freeimage.dll in \dist\x32 folder ?

- freeimage.jpg (32.12 KiB) Viewed 6727 times
https://sourceforge.net/projects/freeimage/
Re: Running harbour\contrib\hbfimage\test
Posted: Fri Jun 12, 2015 10:04 pm
by hmgchang

- compilelib.PNG (27.25 KiB) Viewed 6692 times
I think i failed to build the .a lib...
here a attach the content of the folder,
pls advise whats wrong.
TIA