|
|
Subject: GNAT on Mac with AdaCore GNAT GPL 2008 release. - msg#00010
Hello. As GNAT GPL 2008 from AdaCore hasn't come with binary for Mac OS X.A quick recipe for those who want to use GNAT GPL 2008:$ cd /usr/local $ tar xzf ~/Desktop/gcc-4.1-branch-20080417-src.tgz $ tar xzf ~/Desktop/gnat-gpl-2008-src.tgz $ mv gcc-41 src $ mv gnat-gpl-2008-src/src/ada src/gcc $ mkdir gnat-2008 $ cd src $ patch -p0 < ../gnat-gpl-2008-src/src/gcc-41.dif $ touch gcc/cstamp-h.in $ mkdir ../obj $ cd ../obj $ ../src/configure --prefix=/usr/local/gnat-2008 --enable-languages="c,ada" --disable-multilib --disable-libada $ make bootstrap $ make -C gcc gnatlib gnattools $ make install$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.profile$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.bashrc I've built it on Max OS X 10.4 PPC with GNAT GPL 2007 made with GNAT GPL 2006 which was delivered with binaries (at the beginning it was ;-). $ gcc -vUsing built-in specs.Target: powerpc-apple-darwin8.11.0Configured with: ../src/configure --prefix=/Users/pascal/Documents/Programmation/GNAT/gnat-2008 --enable-languages=c,ada --disable-multilib --disable-libadaThread model: posixgcc version 4.1.3 20080522 for GNAT GPL 2008 (20080521) Regards, Pascal. http://blady.pagesperso-orange.fr
Thread at a glance:
Previous Message by Date:
Re: GPS compiled on Leopard - no symbols
Pretty cool Chris,
As to putting it up sure if Chris wants to package it up.
Chris what versions of GTK did you use?
I usually build the gtkada stuff from scratch into a directory called /
opt/local so that i can move it around when i need it. If you did it
against darwin ports or fink its going to be harder, because i am not
sure anyone can download the same versions, so the only way they could
use it is to replace their version of darwin ports with yours.
best jim
On Jun 27, 2008, at 6:59 PM, Jerry wrote:
Is it possible to put this work on macada.org?
Jerry
On Jun 27, 2008, at 8:08 AM, Christopher Broeg wrote:
Well, I got it working.
gps is a shell script starting gps_exe. By disabling the lines
referring to gtk the icons load correctly:
#if [ -f $root/etc/gtk-2.0/gdk-pixbuf.loaders ]; then
# GDK_PIXBUF_MODULE_FILE=$root/etc/gtk-2.0/gdk-pixbuf.loaders
# export GDK_PIXBUF_MODULE_FILE
#fi
To fix the python, I had to modify the PYTHONPATH inside this gps
shell script to include the MacOS python location. Otherwise sys.path
was almost unset within GPS. However, I don't understand where the
'real' python when starting from a regular shell gets it's sys.path
settings.
Anyway, setting the following:
export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/
Current:/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5:/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/lib-dynload
inside gps gives a working python shell.
Thanks again,
Chris
Am 26.06.2008 um 15:11 schrieb Nicolas Setton:
I just solved the puzzle. All is fine, I just have to call gps_exe
not
gps. This sets up the proper environment. Now it looks perfect!
Good!
The
only remaining problem is that the wrong python is loaded. So I get
error messages like 'no module re' on startup. Maybe I'll get that
fixed too...
Hmm... you can play with the variables PYTHONHOME and PYTHONPATH to
point to your python (I advise building python from scratch with
threads disabled). Have a look at gps-main.adb :)
Thanks for your answer anyway!!!
You're very welcome. Congrats for having done this, it's no small
feat.
Nico
*** NOTE: You can read the message archive for this list, or
unsubscribe from it, at http://hermes.gwu.edu/archives/gnat-
osx.html.
*** NOTE: You can read the message archive for this list, or
unsubscribe from it, at http://hermes.gwu.edu/archives/gnat-osx.html.
*** NOTE: You can read the message archive for this list, or unsubscribe from
it, at http://hermes.gwu.edu/archives/gnat-osx.html.
Next Message by Date:
Re: GNAT on Mac with AdaCore GNAT GPL 2008 release.
I tried building GNAT-GPL-2007 on Intel (using one of the existing 4.x builds) and failed, as far as I can remember with bad assembler in Stage 2; 2008 also, though I think in subtly different ways. One was an illegal instruction, the other multiple symbol definition. Anyway, well beyond my skill level!I did manage to build gprbuild, but I'm not finding it easy to grok; I had been using gprmake to build C code using the same GNAT project file as the Ada code, but it's been discontinued in favour of gprbuild. AdaCore say gprmake was only a proof-of-concept.--SOn 28 Jun 2008, at 09:33, Pascal wrote: Hello.As GNAT GPL 2008 from AdaCore hasn't come with binary for Mac OS X.A quick recipe for those who want to use GNAT GPL 2008:$ cd /usr/local $ tar xzf ~/Desktop/gcc-4.1-branch-20080417-src.tgz $ tar xzf ~/Desktop/gnat-gpl-2008-src.tgz $ mv gcc-41 src $ mv gnat-gpl-2008-src/src/ada src/gcc $ mkdir gnat-2008 $ cd src $ patch -p0 < ../gnat-gpl-2008-src/src/gcc-41.dif $ touch gcc/cstamp-h.in $ mkdir ../obj $ cd ../obj $ ../src/configure --prefix=/usr/local/gnat-2008 --enable-languages="c,ada" --disable-multilib --disable-libada $ make bootstrap $ make -C gcc gnatlib gnattools $ make install$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.profile$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.bashrcI've built it on Max OS X 10.4 PPC with GNAT GPL 2007 made with GNAT GPL 2006 which was delivered with binaries (at the beginning it was ;-).$ gcc -vUsing built-in specs.Target: powerpc-apple-darwin8.11.0Configured with: ../src/configure --prefix=/Users/pascal/Documents/Programmation/GNAT/gnat-2008 --enable-languages=c,ada --disable-multilib --disable-libadaThread model: posixgcc version 4.1.3 20080522 for GNAT GPL 2008 (20080521) Regards, Pascal.http://blady.pagesperso-orange.fr
Previous Message by Thread:
GPS compiled on Leopard - no symbols
Hi everyone,
I just managed (finally) to compile the latest GPS GPL 2008 on Mac OS
X Leopard. It seems to be running fine. However, all symbols such as
the save button or load compile,etc. including the splash screen are
missing. Any ideas?
Chris
*** NOTE: You can read the message archive for this list, or unsubscribe from
it, at http://hermes.gwu.edu/archives/gnat-osx.html.
Next Message by Thread:
Re: GNAT on Mac with AdaCore GNAT GPL 2008 release.
I tried building GNAT-GPL-2007 on Intel (using one of the existing 4.x builds) and failed, as far as I can remember with bad assembler in Stage 2; 2008 also, though I think in subtly different ways. One was an illegal instruction, the other multiple symbol definition. Anyway, well beyond my skill level!I did manage to build gprbuild, but I'm not finding it easy to grok; I had been using gprmake to build C code using the same GNAT project file as the Ada code, but it's been discontinued in favour of gprbuild. AdaCore say gprmake was only a proof-of-concept.--SOn 28 Jun 2008, at 09:33, Pascal wrote: Hello.As GNAT GPL 2008 from AdaCore hasn't come with binary for Mac OS X.A quick recipe for those who want to use GNAT GPL 2008:$ cd /usr/local $ tar xzf ~/Desktop/gcc-4.1-branch-20080417-src.tgz $ tar xzf ~/Desktop/gnat-gpl-2008-src.tgz $ mv gcc-41 src $ mv gnat-gpl-2008-src/src/ada src/gcc $ mkdir gnat-2008 $ cd src $ patch -p0 < ../gnat-gpl-2008-src/src/gcc-41.dif $ touch gcc/cstamp-h.in $ mkdir ../obj $ cd ../obj $ ../src/configure --prefix=/usr/local/gnat-2008 --enable-languages="c,ada" --disable-multilib --disable-libada $ make bootstrap $ make -C gcc gnatlib gnattools $ make install$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.profile$ echo 'PATH=/usr/local/gnat-2008/bin:$PATH' >> ~/.bashrcI've built it on Max OS X 10.4 PPC with GNAT GPL 2007 made with GNAT GPL 2006 which was delivered with binaries (at the beginning it was ;-).$ gcc -vUsing built-in specs.Target: powerpc-apple-darwin8.11.0Configured with: ../src/configure --prefix=/Users/pascal/Documents/Programmation/GNAT/gnat-2008 --enable-languages=c,ada --disable-multilib --disable-libadaThread model: posixgcc version 4.1.3 20080522 for GNAT GPL 2008 (20080521) Regards, Pascal.http://blady.pagesperso-orange.fr
|
|