Mac ..

ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Mac ..

Post by ramirezosvaldo »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Thanks a lot

I will try and I will wait ...

Best Regards
Osvaldo Ramirez
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

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
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

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 for `first'.
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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Osvaldo,

Its ok :-)

Use spotlight and type harbour and you will find it

Image

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
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

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
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post by R.F. »

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

Yo pense.... miren al Osvaldo, domina el ingles....
Saludos
R.F.
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Hola Rene

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

Dime como estas ?

Has escho algo con Mac. ?


Saludos
Osvaldo Ramirez
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
ramirezosvaldo
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua
Contact:

Post by ramirezosvaldo »

Te lo agradesco

Aqui aun hay cuerda son las 7:31pm

Saludos
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Osvaldo,

Here it is:

build.sh

Code: Select all

# ./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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

A sample of use:

Hello.prg:

Code: Select all

function Main()
   ? "Hello world!"
return nil
./build.sh hello
Image
regards, saludos

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

Post by Antonio Linares »

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
Post Reply