Mac ..
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
Mac ..
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
"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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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
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
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 101
- Joined: Mon Oct 10, 2005 6:48 pm
- Location: Cd. Juarez Chihuahua
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Osvaldo,
Here it is:
build.sh
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
A sample of use:
Hello.prg:
./build.sh hello
Hello.prg:
Code: Select all
function Main()
? "Hello world!"
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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
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