Page 1 of 1
Help to Install Ubuntu
Posted: Mon Feb 25, 2008 12:15 pm
by fafi
Before buy FLH
Hi Antonio, Willy or xProgrammer.
I have ubuntu 7.10 , the first is Installer CD and the others are repository.
I Finished with Installer CD, but how to Install the others ?
to many error when I used this command line :
sudo apt-get install libgtk2.0-dev
sudo apt-get install gcc
sudo apt-get install libncurses5-dev
sudo apt-get install libgpmg1-dev
sudo apt-get install libgnomeprintui2.2-dev
sudo apt-get install glade-2
sudo apt-get install libglade2-dev
and how to install harbour on ubuntu ?
Thank's for help
Regards
Fafi
Posted: Mon Feb 25, 2008 1:31 pm
by Antonio Linares
You have to activate all the sources repositories using the main Ubuntu menu: System - Administration - Software Sources
We provide you an already built Harbour (and xHarbour) for Linux, that you just have to unzip to bin, lib and include (same folders structure as Clipper)
Alternatively you can download Harbour from the SVN (xHarbour from CVS) and build it yourself
Posted: Mon Feb 25, 2008 2:11 pm
by fafi
Thank Antonio !
Installed on /home/myname/xharbour....
Is that true ?
How to test a small prg just with xHarbour like clipper command line ?
I did /home/myname/bin/harbour test.prg become c file. Done
Can you give me a sample makefile for gcc command line ?
Here is test.prg
Code: Select all
function test()
alert("Hello Linux")
return nil
Thank's
Regards
Fafi
Posted: Tue Feb 26, 2008 9:37 am
by xProgrammer
Hi Fafi
The best way to start is probably to build and run the samples. If everything is installed properly you can do this as follows:
From a terminal window go
cd /home/yourname/fivelinux/samples
(That gets you into the correct directory)
sudo chmod a+x ./buildx.sh
(That gives execute permission on file buildx.sh which automates compilation to C code, compiling the C code and linking it with the necessary libraries. Finally it runs the executable file. You only need to run chmod once (until you download a new version of fivelinux)
Then you can install and run any of the samples. For example if you want to compile and run tutor01 you go:
./buildx.sh tutor01
Let us know how you go.
Regards
Doug
(xProgrammer)
Posted: Tue Feb 26, 2008 10:27 am
by fafi
Hi Doug
I don't have fivelinux yet, before I buy this product, just test my firs prg to compile with xHarbour and without ./buildx.sh.
Please compile this prg without buildx.sh, can you ?
Code: Select all
function test()
alert("Hello linux")
return nil
That's only with xHarbour lib.
Let's me know, is work or no ?
Regards
Fafi
Posted: Tue Feb 26, 2008 11:57 am
by xProgrammer
Hi Fafi
All my work has been xHarbour / FiveLinux but this worked:
fafi.prg was as follows:
FUNCTION Main()
CLEAR
@2,2 SAY "Hello World"
@4,0 SAY "Hit any key to continue"
INKEY(0)
CLEAR
RETURN nil
Above code built and run using buildy.sh as follows:
# ./buildx.sh
clear
echo compiling...
./../../xharbour/bin/harbour $1 -n -I./../include -I./../../xharbour/include $2
echo compiling C module...
gcc $1.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+-2.0`
echo linking...
gcc $1.o -o$1 -L./../lib -L./../../xharbour/lib -Wl,--start-group -lfivex -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lusrrdd -ltip -lct -lcgi -lgtnul -lgtstd -lgtcgi -lgtcrs -lhbodbc -ldebug -lm -lgpm -lncurses -Wl,--end-group
rm $1.c
rm $1.o
echo done!
./$1
Some of those lib files may be fivelinux and not required (and you may not have them) but hopefully this will be enough to get you going.
I haven't done any straight xHarbour applications under Linux so I have always used buildx.sh as supplied by Antonio, or other build scripts derived from it.
Regards
Doug
(xProgrammer)
Posted: Tue Feb 26, 2008 12:36 pm
by fafi
Hi Doug
Thank's I will try it
Regards
Fafi