FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Mac ..
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Fri Mar 09, 2007 05:40 AM

Dear Antonio

"Por fin" I have a minimac ...
My client lend me one, so I want to testing my Xbase++ and app using two proccesor, but off course, I want to tesing harbour on Mac, but I want to ask:

1.- Please If you have time, the steep to compile the harbour on mac
2.- What are the news about FiveMac ...

Thanks in Advance ...

Best Regards
Osvaldo Ramirez

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Fri Mar 09, 2007 09:18 AM

Osvaldo,

First install xcode tools on the Mac. You may download them from www.Apple.com or install them from the OSX installation DVD.

> 1.- Please If you have time, the steep to compile the harbour on mac

Exactly the same as building Harbour for Linux:

First, do a checkout from Harbour CVS. Create a file named checkout.sh with this content:

cvs -z3 -d:pserver:anonymous@harbour-project.cvs.sourceforge.net:/cvsroot/harbour-project co -P harbour

Then do a chmod +x ./checkout.sh to give it execution permission. Now run ./checkout.sh to download Harbour.

Now locate harbour/make_gnu.sh and do again chmod +x ./make_gnu.sh and then run ./make_gnu.sh and you get Harbour for Mac built and ready to be used :-)

> 2.- What are the news about FiveMac ...

We are working on it, though we are delayed

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Fri Mar 09, 2007 05:37 PM

Thanks a lot

I will try and I will wait ...

Best Regards
Osvaldo Ramirez

Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sat Mar 10, 2007 08:32 PM

Dear Antonio

I dit that you suggest me, appear that all was success, but When I try to find or try to execute somethings similar like ./harbour harbour, dont happend nothing.

Any hints

Best Regards
Osvaldo Ramirez

Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sat Mar 10, 2007 08:50 PM

This is a message :

cvs checkout: warning: failed to open /Users/mac/.cvspass for reading: No such file or directory

And when I try to run make_gnu, appear this :

macs-computer:~/harbour mac$ ./make_gnu.sh
make[2]: Nothing to be done for first'. make[2]: Nothing to be done forfirst'.
make[1]: Nothing to be done for first'. make[3]:libcommon.a' is up to date.
make[3]: libpp.a' is up to date. make[3]:libcompiler.a' is up to date.
make[3]: harbour' is up to date. make[3]:librtl.a' is up to date.
make[4]: libgtcgi.a' is up to date. make[4]:libgtcrs.a' is up to date.
make[4]: libgtpca.a' is up to date. make[4]:libgtstd.a' is up to date.

Maybe I need install other things

Best Regards
Osvaldo Ramirez

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Sat Mar 10, 2007 09:20 PM
Osvaldo,

Its ok :-)

Use spotlight and type harbour and you will find it



harbour is located at the directory where you have done the checkout, at harbour/source/main/gcc/darwin/gcc

I suggest you to create a bin, lib and include directories and copy the usual files there
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sat Mar 10, 2007 10:53 PM

Hola Antonio

"ojala eso de 'dear' " no suene "diferente"

Ya lo localize el harbour y lo copie a /harbour/bin
ya existe include y lib ....

Algun comentario adicional ...

Saludos
Osvaldo Ramirez

Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Mac ..
Posted: Sat Mar 10, 2007 10:57 PM

jejeje... comenzando por hablar en Español desde un principio...

Yo pense.... miren al Osvaldo, domina el ingles....

Saludos

R.F.
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sun Mar 11, 2007 12:14 AM

Hola Rene

Jajajajaja, bueno le hacemos intento ... pero si, suena raro...

Dime como estas ?

Has escho algo con Mac. ?

Saludos
Osvaldo Ramirez

Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sun Mar 11, 2007 12:45 AM

This is my next question ...

macs-computer:~/harbour/bin mac$ ./bld.sh ac_test
Harbour devel build 1.1-0 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'ac_test.prg'...
Lines 644, Functions/Procedures 2
Generating C source output to 'ac_test.c'... Done.
/usr/bin/ld: unknown flag: -oac_test
collect2: ld returned 1 exit status

Best Regards to all mexicas
Osvaldo Ramirez

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Sun Mar 11, 2007 01:02 AM

Osvaldo,

Te preparo mañana un build.sh para que construyas aplicaciones en Mac en modo consola :-) Aqui es tarde ya...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 101
Joined: Mon Oct 10, 2005 06:48 PM
Mac ..
Posted: Sun Mar 11, 2007 02:31 AM

Te lo agradesco

Aqui aun hay cuerda son las 7:31pm

Saludos

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Sun Mar 11, 2007 09:32 AM
Osvaldo,

Here it is:

build.sh
# ./build.sh for Mac OSX - (c) FiveTech Software 2007

clear

if [ $# = 0 ]; then
   echo syntax: ./build.sh file [options...]
   exit
fi

echo compiling...
./../bin/harbour $1 -n -I./../include $2
if [ $? = 1 ]; then
   exit
fi   

echo compiling C module...

gcc $1.c -c -I./../include

echo linking...
gcc $1.o -o ./$1 -L./../lib -ldebug -lvm -lrtl -llang -lrdd -lrtl -lgtstd -lvm -lmacro -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lcommon
rm $1.c
rm $1.o

echo done!
./$1
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Sun Mar 11, 2007 09:36 AM
A sample of use:

Hello.prg:
function Main()
   ? "Hello world!"
return nil

./build.sh hello
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Mac ..
Posted: Sun Mar 11, 2007 12:06 PM

Osvaldo,

We have created a first Harbour setup for OSX.

You may download it from here:

http://www.filefactory.com/file/76fac8/

I appreciate your feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com