Step-by-Step Build Harbour from Linux(eg. Ubuntu 18.04.3)

511 views
Skip to first unread message

Diego F

unread,
Feb 19, 2020, 11:37:47 AM2/19/20
to Harbour Users
Hi, all. I want to share with all those like me, who have nothing or not enough experience in Linux to build Harbour from scratch. Including all needed packages and some contribs.

For those who want I leave a link (below) for an Ubuntu vbox or vmware image, to even avoid installing it. After that, download the script attached, run it, and voila.


Before run the script, give it permission to execute.

sudo chmod +x build_harbour.sh

Diego
build_harbour.sh

mstuff kstuff

unread,
Mar 1, 2020, 7:58:05 PM3/1/20
to Harbour Users
Interesting.
You lit a little fire. I have wondered about Linux.
I'm running win10 64bit. It wouldn't do Hyper-V.

I setup Oracle’s VM/VirtualBox.
Did your link Ubuntu 16.04.6*.vdi
Didn't care for the password protection.
So, I downloaded Mint and Harbour's version.

I'm at the point of trying to get Linux to install
the graphics driver but... at this time.

I'll continue to work on it between 2 and 4 AM
when I have time.

Thanks for getting me started, Mike


Bob Burns

unread,
Mar 2, 2020, 2:18:47 PM3/2/20
to harbou...@googlegroups.com

I now run Linux Mint and Windows 10 Professional via GRUB on a new PC with an NVIDIA GeForce GTX 1650 graphics adaptor. Originally tried Ubuntu as that ran on my previous PC with no problems but it stubbornly refused to load the latest graphics driver on the new PC so I switched to Mint. It too would not load the driver for some days and then suddenly loaded it correctly but no idea why.

Regards

Bob G3OOU

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
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 harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/45ab234a-df46-4ba6-95be-ab9dd38f736a%40googlegroups.com.

José M. C. Quintas

unread,
Mar 2, 2020, 2:46:06 PM3/2/20
to harbou...@googlegroups.com

Windows 10 have Linux, can be under Ubuntu, do not need Virtualbox, but not sure about all graphics feature, may be I test under next Windows 10 20.04

For Windows, some drivers need download from internet.

José M. C. Quintas


Em 02/03/2020 16:18, Bob Burns escreveu:

I now run Linux Mint and Windows 10 Professional via GRUB on a new PC with an NVIDIA GeForce GTX 1650 graphics adaptor. Originally tried Ubuntu as that ran on my previous PC with no problems but it stubbornly refused to load the latest graphics driver on the new PC so I switched to Mint. It too would not load the driver for some days and then suddenly loaded it correctly but no idea why.

Regards

Bob G3OOU

On 02/03/2020 00:58, mstuff kstuff wrote:
Interesting.
You lit a little fire. I have wondered about Linux.
I'm running win10 64bit. It wouldn't do Hyper-V.

I setup Oracle’s VM/VirtualBox.
Did your link Ubuntu 16.04.6*.vdi
Didn't care for the password protection.
So, I downloaded Mint and Harbour's version.

I'm at the point of trying to get Linux to install
the graphics driver but... at this time.

I'll continue to work on it between 2 and 4 AM
when I have time.

Thanks for getting me started, Mike

Appliserver

unread,
Mar 2, 2020, 6:48:48 PM3/2/20
to harbou...@googlegroups.com

IIRC W10 has a shell POSIX-compliant, not exactly a "Linux". I also am not sure it can manage a GUI but further infos are welcome.

Dan

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
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 harbour-user...@googlegroups.com.

mstuff kstuff

unread,
Mar 5, 2020, 9:54:48 PM3/5/20
to Harbour Users

Bob,


I think you have the best idea. Probably less issues.
Just do it dual boot or maybe even 2 drives with a
toggle power switch for the drives.

Mike

Alain Aupeix

unread,
Mar 6, 2020, 2:32:47 AM3/6/20
to harbou...@googlegroups.com, mstuff kstuff
Better, remove Windaube

:)

A+
--

Alain Aupeix
Sites web : JujuLand | Pissobi-Lacassagne | Gadel
X.ubuntu 16.04 [ H.arbour 3.2.0dev (r2019-04-11 15:33) | Hw.gui 2.22-4-r2806 | G.ramps 5.0.1.1


mstuff kstuff

unread,
Mar 6, 2020, 7:52:20 AM3/6/20
to Harbour Users
Alain,

Better, remove Windaube?

Was that for me?

What is a Windaube?

Mike

Srđan

unread,
Nov 29, 2021, 2:31:16 AM11/29/21
to Harbour Users
gcc -I. -I../../../../../include -W -Wall -O3 -oexpropt1.o -c ../../../expropt1.c
In file included from ../../../../../include/hbvmpub.h:50, from ../../../../../include/hbapi.h:55,
from ../../../../../include/hbmacro.h:50,
from ../../../expropt1.c:52:
../../../../../include/hbdefs.h:51:10: fatal error: stdio.h: No such file or directory
51 | #include <stdio.h>
| ^~~~~~~~~
compilation terminated.
make[3]: *** [../../../../../config/rules.mk:88: expropt1.o] Error 1
make[2]: *** [../../config/lib.mk:68: descend] Error 2
make[1]: *** [../config/dir.mk:68: common.inst] Error 2
make: *** [config/dir.mk:68: src.inst] Error 2
./build_harbour.sh: line 27: $'\r': command not found

Alain Aupeix

unread,
Nov 29, 2021, 5:09:54 AM11/29/21
to harbou...@googlegroups.com
Le 29/11/2021 à 08:31, 'Srđan' via Harbour Users a écrit :
> gcc -I. -I../../../../../include -W -Wall -O3 -oexpropt1.o -c
> ../../../expropt1.c
> In file included from *../../../../../include/hbvmpub.h:50*, from
> *../../../../../include/hbapi.h:55*,
> from *../../../../../include/hbmacro.h:50*,
> from *../../../expropt1.c:52*: *
> *
> *../../../../../include/hbdefs.h:51:10:* *fatal error: *stdio.h: No
> such file or directory
> 51 | #include *<stdio.h>*
> | *^~~~~~~~~*
> compilation terminated.
> make[3]: *** [../../../../../config/rules.mk:88: expropt1.o] Error 1
> make[2]: *** [../../config/lib.mk:68: descend] Error 2
> make[1]: *** [../config/dir.mk:68: common.inst] Error 2
> make: *** [config/dir.mk:68: src.inst] Error 2
Hi,

have-you verified that stdio.h is missing ?
for me :

alain@aupeix-GX723:~$ locate -b stdio.h
/usr/include/stdio.h
/usr/include/x86_64-linux-gnu/bits/stdio.h

I think it's the first one

On Xubuntu 16.04.5 :

alain@aupeix-GX723:~$ ll /usr/include/stdio.h
-rw-r--r-- 1 root root 31365 avril 21  2021 /usr/include/stdio.h

and curiously on Xubuntu 18.04.6

eva@Pavilion-eva:~$ ll /usr/include/stdio.h
-rw-r--r-- 1 root root 29665 dec.   7  2020 /usr/include/stdio.h

A+
Reply all
Reply to author
Forward
0 new messages