Sorry for sending so many messages, hopefully this one will be the last. I've now completely changed the build system in relax. The make system has been 100% removed and replaced by the Sconstruct build system. It should be trivial to compile the C modules under Mac OS X now. I've added the necessary flags to enable the correct compilation into shared objects which are loadable by Python. On 25/01/06, Edward d'Auvergne <edward.dauvergne@xxxxxxxxx> wrote: > I forgot to mention that the changes are in the SVN repository. To > get this code, type: > > $ svn co svn://svn.gna.org/svn/relax/1.2 relax > > Since the last post, I've added the ability to detect darwin and to > send the options '-bundle -bundle_loader /usr/bin/python -dynamic' to > the linker. Hopefully the C modules will then compile under OS X. > > > On 25/01/06, Edward d'Auvergne <edward.dauvergne@xxxxxxxxx> wrote: > > I think I have a solution to the OS X compilation problem. It > > involves the Scons build system. I've created a simple script which > > should compile the C modules under most operating systems. > > > > To use this system, you will need the Scons system installed. The > > website is http://www.scons.org/. There the source package (either > > the .tar.gz or .zip file) can be downloaded and installed by typing > > 'python setup.py install'. Alternatively for OS X, have a look at > > http://scons.darwinports.com/. > > > > Make sure you have the Python C headers installed as well. Type > > 'locate Python.h' or 'slocate Python.h' and if nothing is found, > > install the Python development files. The package under my Linux > > system is called libpython2.4-devel. I'm not sure what it would be > > called for Macs. You might also need the Numeric Python development > > files as well. > > > > Once everything is installed, type 'scons' in the relax directory to > > compile the C code. I have a feeling that there will still be a few > > problems with the Python shared object created in OS X. If you have > > problems, I'll try to force the options '-bundle -bundle_loader > > /usr/bin/python -dynamic' after working out how to detect that the > > operating system is Mac OS X. > > > > Edward > > > > > > P.S. To respond to these messages, make sure to reply to all so that > > relax-devel at gna.org is added to the CC list. > > > > > > On 24/01/06, Douglas Kojetin <douglas.kojetin@xxxxxxxxx> wrote: > > > Hello- > > > > > > I am trying to compile the src version of relax (version 1.2.1 under > > > OS X), but I'm seeing some errors (see below). Do you know how I > > > might resolve the problem? > > > > > > Thanks, > > > Doug > > > > > > > > > > > > % make > > > ########################### > > > # Compiling the C modules # > > > ########################### > > > > > > > > > make -C maths_fns > > > cc -I/sw/include/python2.4 -c -o relax_fit.o relax_fit.c > > > cc -I/sw/include/python2.4 -c -o c_chi2.o c_chi2.c > > > cc -I/sw/include/python2.4 -c -o exponential.o exponential.c > > > cc -shared relax_fit.o c_chi2.o exponential.o -o relax_fit.so > > > powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-shared' > > > /usr/bin/ld: Undefined symbols: > > > _main > > > _PyArg_ParseTuple > > > _PyArg_ParseTupleAndKeywords > > > _PyCObject_AsVoidPtr > > > _PyCObject_Type > > > _PyDict_GetItemString > > > _PyImport_ImportModule > > > _PyList_New > > > _PyList_SetItem > > > _PyList_Type > > > _PyModule_GetDict > > > _PyType_IsSubtype > > > _Py_BuildValue > > > _Py_InitModule4 > > > __Py_NoneStruct > > > collect2: ld returned 1 exit status > > > make[1]: *** [relax_fit.so] Error 1 > > > make: *** [maths_fns] Error 2 > > > > > > > > > _______________________________________________ > > > Relax-devel mailing list > > > Relax-devel@xxxxxxx > > > https://mail.gna.org/listinfo/relax-devel > > > > > >