Page 1 of 2
Mac ..
Posted: Fri Mar 09, 2007 5:40 am
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
Posted: Fri Mar 09, 2007 9:18 am
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
Posted: Fri Mar 09, 2007 5:37 pm
by ramirezosvaldo
Thanks a lot
I will try and I will wait ...
Best Regards
Osvaldo Ramirez
Posted: Sat Mar 10, 2007 8:32 pm
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
Posted: Sat Mar 10, 2007 8:50 pm
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
Posted: Sat Mar 10, 2007 9:20 pm
by Antonio Linares
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
Posted: Sat Mar 10, 2007 10:53 pm
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
Posted: Sat Mar 10, 2007 10:57 pm
by R.F.
jejeje... comenzando por hablar en Español desde un principio...
Yo pense.... miren al Osvaldo, domina el ingles....
Posted: Sun Mar 11, 2007 12:14 am
by ramirezosvaldo
Hola Rene
Jajajajaja, bueno le hacemos intento ... pero si, suena raro...
Dime como estas ?
Has escho algo con Mac. ?
Saludos
Osvaldo Ramirez
Posted: Sun Mar 11, 2007 12:45 am
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
Posted: Sun Mar 11, 2007 1:02 am
by Antonio Linares
Osvaldo,
Te preparo mañana un build.sh para que construyas aplicaciones en Mac en modo consola
![Smile :-)](./images/smilies/icon_smile.gif)
Aqui es tarde ya...
Posted: Sun Mar 11, 2007 2:31 am
by ramirezosvaldo
Te lo agradesco
Aqui aun hay cuerda son las 7:31pm
Saludos
Posted: Sun Mar 11, 2007 9:32 am
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
Posted: Sun Mar 11, 2007 9:36 am
by Antonio Linares
A sample of use:
Hello.prg:
Code: Select all
function Main()
? "Hello world!"
return nil
./build.sh hello
![Image](http://img291.imageshack.us/img291/5605/picture3lq7.png)
Posted: Sun Mar 11, 2007 12:06 pm
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
![Smile :-)](./images/smilies/icon_smile.gif)