FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Off Topic / Otros temas Compiling Harbour from source code
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Compiling Harbour from source code
Posted: Fri Aug 04, 2023 04:15 PM

Dear friends, I'm trying to compile Harbour from source code. All is working but some of the include files and libraries are missing (as an example, hbarc4.h). Do you know what could be the cause?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compiling Harbour from source code
Posted: Sat Aug 05, 2023 03:05 PM

Dear Enrico,

hbarc4.h is at c:\harbour\include\ so it seems as your include path it is not pointing to harbour/include

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Compiling Harbour from source code
Posted: Sat Aug 05, 2023 03:21 PM

Dear Antonio,

I'm compiling Harbour from source code. So win-make should take care of copying all the Harbour's include directory to the HB_INSTALL_PREFIX directory. It does except some files. Anyway, Harbour is working fine at the end. I only wonder why some files are missing.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compiling Harbour from source code
Posted: Sun Aug 06, 2023 06:10 AM

Dear Enrico,

oHrb = hb_compileFromBuf( cCode, .T., "-n", "-q2", "-I c:\harbour\include" )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Compiling Harbour from source code
Posted: Sun Aug 06, 2023 07:28 AM

I don't understand.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compiling Harbour from source code
Posted: Mon Aug 07, 2023 05:53 AM

Dear Enrico,

> I'm trying to compile Harbour from source code

How are you doing it ?

Usually to compile Harbour code at runtime we use hb_compileFromBuf()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Compiling Harbour from source code
Posted: Mon Aug 07, 2023 07:39 AM
I'm using this batch:
Code (fw): Select all Collapse
@ ECHO OFF

SET MSC=e:\msc32\msc

SET PATH=%MSC%\bin
SET HB_INSTALL_PREFIX=e:\fw\temp\harbour\harbour

SET INCLUDE=%MSC%\include\ucrt;%MSC%\include;%MSC%\include\sdk
SET LIB=%MSC%\lib;%MSC%\lib\sdk

SET HB_USER_CFLAGS=-MD -O1

win-make clean install

PAUSE
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compiling Harbour from source code
Posted: Mon Aug 07, 2023 08:05 AM
Dear Enrico,

The Harbour compiler itself is inside hbcplr.lib, you don't need to call harbour.exe :-)

you can directly compile and execute from your EXE !!!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Compiling Harbour from source code
Posted: Mon Aug 07, 2023 08:30 AM

Dear Antonio,

you are missing the point. I wanted Harbour from the latest source code in the git repository. Anyway, never mind. I'm happy with the result.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compiling Harbour from source code
Posted: Mon Aug 07, 2023 04:35 PM
ok, very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion