Running harbour\contrib\hbfimage\test

Issues and Discussions related to Harbour

Moderator: Rathinagiri

User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Running harbour\contrib\hbfimage\test

Post 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
Just Hmg It !
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Running harbour\contrib\hbfimage\test

Post 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.
Attachments
harbour.jpg
harbour.jpg (43.37 KiB) Viewed 6189 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Running harbour\contrib\hbfimage\test

Post 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.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Running harbour\contrib\hbfimage\test

Post 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 http://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
hbfreeimage.jpg (26.56 KiB) Viewed 6130 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.......
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Running harbour\contrib\hbfimage\test

Post by hmgchang »

My thanks to Masters for the guidance,
I will try it... :)
Just Hmg It !
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Running harbour\contrib\hbfimage\test

Post by hmgchang »

hbfimage.PNG
hbfimage.PNG (6.97 KiB) Viewed 6108 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
Just Hmg It !
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Running harbour\contrib\hbfimage\test

Post 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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Running harbour\contrib\hbfimage\test

Post by hmgchang »

Thks Mr. Daniel,
but getting this after compile :
hbfimage.PNG
hbfimage.PNG (53.25 KiB) Viewed 6059 times
Pls advise...

TIA
Just Hmg It !
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Running harbour\contrib\hbfimage\test

Post by danielmaximiliano »

exists freeimage.dll in \dist\x32 folder ?
freeimage.jpg
freeimage.jpg (32.12 KiB) Viewed 6055 times
http://sourceforge.net/projects/freeimage/
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
hmgchang
Posts: 273
Joined: Tue Aug 13, 2013 4:46 am
Location: Indonesia

Re: Running harbour\contrib\hbfimage\test

Post by hmgchang »

compilelib.PNG
compilelib.PNG (27.25 KiB) Viewed 6020 times
I think i failed to build the .a lib...

here a attach the content of the folder,
pls advise whats wrong.



TIA
hbfimage.zip
(2 MiB) Downloaded 324 times
Just Hmg It !
Post Reply