Mac ..

Mac ..

Postby ramirezosvaldo » Fri Mar 09, 2007 5: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
ramirezosvaldo
 
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua

Postby Antonio Linares » Fri Mar 09, 2007 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ramirezosvaldo » Fri Mar 09, 2007 5:37 pm

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

Postby ramirezosvaldo » Sat Mar 10, 2007 8: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
ramirezosvaldo
 
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua

Postby ramirezosvaldo » Sat Mar 10, 2007 8: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 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
ramirezosvaldo
 
Posts: 101
Joined: Mon Oct 10, 2005 6:48 pm
Location: Cd. Juarez Chihuahua

Postby Antonio Linares » Sat Mar 10, 2007 9:20 pm

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

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

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

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

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

Postby Antonio Linares » Sun Mar 11, 2007 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ramirezosvaldo » Sun Mar 11, 2007 2:31 am

Te lo agradesco

Aqui aun hay cuerda son las 7:31pm

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

Postby Antonio Linares » Sun Mar 11, 2007 9:32 am

Osvaldo,

Here it is:

build.sh
Code: Select all  Expand view
# ./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: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Sun Mar 11, 2007 9:36 am

A sample of use:

Hello.prg:
Code: Select all  Expand view
function Main()
   ? "Hello world!"
return nil

./build.sh hello
Image
regards, saludos

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

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

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 67 guests