How to rebuild FWH libs

How to rebuild FWH libs

Postby Antonio Linares » Sun Oct 09, 2011 10:22 pm

You can run this batch file from c:\fwh\source\classes and from c:\fwh\source\function:

rebuild.bat
Code: Select all  Expand view
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc582\bin\tlib fiveh.lib -+ %%f /0 /P32,,


And this one from c:\fwh\source\winapi and c:\fwh\source\function:

rebuildc.bat
Code: Select all  Expand view
for %%f in (*.c) do c:\bcc582\bin\bcc32 -c -Ic:\bcc582\include;c:\harbour\include %%f
for %%f in (*.obj) do c:\bcc582\bin\tlib fivehc.lib -+ %%f /0 /P32,,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to rebuild FWH libs

Postby Roberto Parisi » Thu Nov 07, 2013 7:48 am

What about rebuild against msvc?

How to replace obj files with lib.exe?

Regards,
Roberto Parisi
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Postby Antonio Linares » Thu Nov 07, 2013 9:27 am

Roberto,

if you are using a Windows 64 bits, then you have to replace ProgramFiles with ProgramFiles(x86)

Code: Select all  Expand view
call "%ProgramFiles%\Microsoft Visual Studio 11.0\VC\vcvarsall.bat"
for %%f in (*.prg) do c:\harbour\bin\harbour %%f /n /ic:\fwh\include;c:\harbour\include
for %%f in (*.c) do "%VCINSTALLDIR%"bin\cl -c -Ic:\harbour\include %%f
for %%f in (*.obj) do "%VCINSTALLDIR%"bin\lib c:\fwh\lib\fiveh32.lib /OUT:c:\fwh\lib\fiveh32.lib %%f
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to rebuild FWH libs

Postby Roberto Parisi » Thu Nov 07, 2013 11:58 am

Thx,
but lib.exe for each obj give me the error _HB_FUN__*** already defined in fiveh.lib (***) ; second definition ignored

Regards,
Roberto Parisi
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Postby cnavarro » Thu Nov 07, 2013 2:13 pm

Maybe you need to make a backup and delete the lib so when creating it does not exist
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to rebuild FWH libs

Postby Antonio Linares » Thu Nov 07, 2013 3:00 pm

Roberto,

Yes, Cristobal advise seems ok as if the OBJs have different paths from the ones used when it was originally build, then you may get those warnings
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to rebuild FWH libs

Postby Roberto Parisi » Thu Nov 07, 2013 3:07 pm

Ok. I'll try.

Regards,
Roberto Parisi
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Postby Roberto Parisi » Fri Nov 08, 2013 1:16 pm

Hi Antonio,
I added new compiled objs to fiveh32.lib and fivewhc32.lib (FWH 13.9) and now I get the following errors in linking exe.

fiveh32.lib(xbrowse.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(window.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(bitmap.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(btnbmp.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
fiveh32.lib(control.obj) : error LNK2001: unresolved external symbol _HB_FUN_SETBRUSHORGEX
...

Thx in advance,
Roberto Parisi
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Postby cnavarro » Fri Nov 08, 2013 1:48 pm

You have to look at the file fwh \ source \ winapi \ createso.c
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to rebuild FWH libs

Postby Roberto Parisi » Fri Nov 08, 2013 4:35 pm

Many thx,
I forgotten _FLAT_ define.

Now it works.

Regards,
Roberto Parisi
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: How to rebuild FWH libs

Postby devtuxtla » Fri Oct 06, 2017 6:55 pm

Hello Antonio

With the indications of this post, I could not generate the libs of FW1705 with BCC73 ...
Can you tell me how to generate and / or what considerations should I have to generate FW1705 with BCC73 and the latest version of xHarbour for BCC73?

regards
Visite Chiapas, el paraiso de México.
devtuxtla
 
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: How to rebuild FWH libs

Postby Antonio Linares » Mon Oct 09, 2017 10:01 am

Gustavo,

Please review FWH\samples\buildx.bat to see the flags to use
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 3 guests