Help to Install Ubuntu

Help to Install Ubuntu

Postby fafi » Mon Feb 25, 2008 12:15 pm

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
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Postby Antonio Linares » Mon Feb 25, 2008 1:31 pm

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
regards, saludos

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

Postby fafi » Mon Feb 25, 2008 2:11 pm

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  Expand view  RUN
function test()
alert("Hello Linux")
return nil



Thank's
Regards
Fafi
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Postby xProgrammer » Tue Feb 26, 2008 9:37 am

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)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby fafi » Tue Feb 26, 2008 10:27 am

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  Expand view  RUN
function test()
alert("Hello linux")
return nil


That's only with xHarbour lib.
Let's me know, is work or no ?

Regards
Fafi
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Postby xProgrammer » Tue Feb 26, 2008 11:57 am

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)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby fafi » Tue Feb 26, 2008 12:36 pm

Hi Doug

Thank's I will try it :lol:

Regards
Fafi
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am


Return to FiveLinux / FiveDroid (Android)

Who is online

Users browsing this forum: No registered users and 3 guests

cron