From: mdekauwe <mde...@gm...> - 2010-06-21 11:42:04
|
Hi, So I have successfully built a 64bit version of Numpy, Scipy from svn and am using python version 2.6.5. However in trying to follow the instructions on this blog (http://blog.hyperjeff.net/?p=160), namely... changing the make.osx file to MACOSX_DEPLOYMENT_TARGET=10.6 PREFIX=/usr/local ## You shouldn't need to configure past this point (and yet…) PKG_CONFIG_PATH="${PREFIX}/lib/pkgconfig" CFLAGS="-arch i386 -arch x86_64 -I${PREFIX}/include -I${PREFIX}/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk" LDFLAGS="-arch i386 -arch x86_64 -L${PREFIX}/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk" FFLAGS="-arch i386 -arch x86_64" and uncommenting wxagg = False from the setup.cfg I still seem to run into trouble. Command I am running is sudo make -f make.osx fetch deps mpl_build mpl_install which runs into trouble to do with the libpng lib... x libpng-1.2.39/scripts/makefile.ne12bsd checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/Users/mdekauwe/src/packages/matplotlib_svn/libpng-1.2.39': configure: error: C compiler cannot create executables See `config.log' for more details. make: *** [png] Error 77 I had a look at the config.log file in the libpng directory and the main thing I can see is... configure:3266: checking for C compiler default output file name configure:3288: gcc -arch i386 -arch x86_64 -I/usr/local/include -I/usr/local/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -L/usr/local/lib -syslibroot,/Developer/SDKs/MacOSX10.6.sdk conftest.c >&5 gcc: unrecognized option '-syslibroot,/Developer/SDKs/MacOSX10.6.sdk' cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-arch" cc1: error: unrecognized command line option "-arch" Not sure what the issue with the arch flag is? Would really appreciate some thoughts on this, many thanks Martin -- View this message in context: http://old.nabble.com/building-on-MAC-snow-leopard-tp28947568p28947568.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: Ian Stokes-R. <ijs...@hk...> - 2010-06-21 13:26:18
|
On 6/21/10 7:41 AM, mdekauwe wrote: > So I have successfully built a 64bit version of Numpy, Scipy from svn and am > using python version 2.6.5. However in trying to follow the instructions o Do you have some notes on how you achieved this? It is more than I've been able to do. > I had a look at the config.log file in the libpng directory and the main > thing I can see is... > > configure:3266: checking for C compiler default output file name > configure:3288: gcc -arch i386 -arch x86_64 -I/usr/local/include > -I/usr/local/include/freetype2 -isysroot /Developer/SDKs/MacOSX10.6.sdk > -arch i386 -arch x86_64 -L/usr/local/lib > -syslibroot,/Developer/SDKs/MacOSX10.6.sdk conftest.c >&5 > gcc: unrecognized option '-syslibroot,/Developer/SDKs/MacOSX10.6.sdk' > cc1: error: unrecognized command line option "-arch" > cc1: error: unrecognized command line option "-arch" > cc1: error: unrecognized command line option "-arch" > cc1: error: unrecognized command line option "-arch" > I'm not a build or gcc expert, but am interested in the solution to this -- I have also tried (without success) to get this compiled on OS X 10.6. A few potentially useful pointers: 1. Check that you have the latest version of XCode. 2. Check that you have a recent version of gfortran. 3. Check your path to various tools: http://mail.scipy.org/pipermail/numpy-discussion/2007-January/025669.html Ian -- Ian Stokes-Rees, PhD W: http://hkl.hms.harvard.edu ijs...@hk... T: +1 617 432-5608 x75 NEBioGrid, Harvard Medical School C: +1 617 331-5993 |
From: mdekauwe <mde...@gm...> - 2010-06-21 14:03:20
|
> Do you have some notes on how you achieved this? It is more than I've > been able to do. Yes I firstly setup a brand new python, i.e. not the one that ships with snow leopard (ver2.6.5). Then followed everything on http://blog.hyperjeff.net/?p=160 >I'm not a build or gcc expert, but am interested in the solution to this >-- I have also tried (without success) to get this compiled on OS X >10.6. A few potentially useful pointers: >1. Check that you have the latest version of XCode. yep > 2. Check that you have a recent version of gfortran. yep >3. Check your path to various tools: > http://mail.scipy.org/pipermail/numpy-discussion/2007-January/025669.html yep. I came across this which seems to be the ticket, though this also doesn't work... http://www.trondkristiansen.com/?page_id=79 when I follow it through it builds but I get a seg fault when I run it. I payed more attention to the build and I think the issue stems from the arch flags... eg. [HAL-9000@matplotlib-0.99.3]$ make -f make.osx mpl_build blah, blah ld: warning: in /usr/local/lib/libstdc++.dylib, file was built for unsupported file format which is not the architecture being linked (i386) thanks -- View this message in context: http://old.nabble.com/building-on-MAC-snow-leopard-tp28947568p28948915.html Sent from the matplotlib - users mailing list archive at Nabble.com. |
From: mdekauwe <mde...@gm...> - 2010-06-21 18:30:22
|
This doesn't solve the original problem and I know I worked out a way to do it before my hard disk messed up! But it seems you can get a version going through macports... sudo port install py26-matplotlib sudo port install python_select sudo python_select python26 then edit your .matplotlib/matplotlibrc file (make one if you don't have it). And put backend: macosx into it. Should work fine. Does for me. Now I don't know how one would set python up so it doesn't find my other version, other than moving paths around. Or setting it up so easy_install using the /opt/ version of python. Anyone? thanks Martin -- View this message in context: http://old.nabble.com/building-on-MAC-snow-leopard-tp28947568p28951913.html Sent from the matplotlib - users mailing list archive at Nabble.com. |