getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] Installation of python interface on mac os 10.5


From: Julien Pommier
Subject: Re: [Getfem-users] Installation of python interface on mac os 10.5
Date: Mon, 26 May 2008 11:28:08 +0200
User-agent: Internet Messaging Program (IMP) 3.2.6

Quoting Jelle Feringa <address@hidden>:

> Dear Julien,
>
> Many thanks for your suggesting to set the --with-blas=builtin flag
> for ./configure.
> GetFem++ builds fine right now, though I'm still experiencing issues
> with building the python extension.

Hi Jelle,

It looks like the python library is not linked. I can't test right now, so I'm
not sure, but you can try to append something like "-framework Python" to the
command line (is it exactly the command like that is failing when you do "make"
?)

--
Julien

>
>
> > make
> > (the build fails on the python error)
> > cd interface/src/python
> > GCC -shared ././getfem_python.o -L../../../src/.libs -L../.libs -
> > lgetfemint
> > -lstdc++ -lm -lgetfem -o ./_getfem.so
> > (the module should now build since I removed the -arch xxxx options)
> > cd ../../..
> > make
> > (the build should complete)
>
> Ok, so this is where I left off.
> When compiling with .so with the command written above, I get the
> following output.
> What's going wrong here? Any ideas?
> Its just too bad; I'm getting _so_ close ;')
>
> brutus:python jelleferinga$ GCC -shared ././getfem_python.o -L../../../
> src/.libs -L../.libs -lgetfemint -lstdc++ -lm -lgetfem -o ./_getfem.so
> Undefined symbols:
>    "_PyObject_Str", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyComplex_RealAsDouble", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyFloat_Type", referenced from:
>        _PyFloat_Type$non_lazy_ptr in getfem_python.o
>    "_Py_FatalError", referenced from:
>        _init_getfem in getfem_python.o
>        _copy_PyArray_data in getfem_python.o
>        _gfi_array_to_PyObject in getfem_python.o
>        _gfi_array_to_PyObject in getfem_python.o
>        _gfi_array_to_PyObject in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyTuple_Type", referenced from:
>        _PyTuple_Type$non_lazy_ptr in getfem_python.o
>    "_PyType_IsSubtype", referenced from:
>        _PyObject_is_GetfemObject in getfem_python.o
>        _PyObject_is_GetfemObject in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_main", referenced from:
>        start in crt1.10.5.o
>    "_PyCObject_AsVoidPtr", referenced from:
>        _init_getfem in getfem_python.o
>    "__Py_NoneStruct", referenced from:
>        __Py_NoneStruct$non_lazy_ptr in getfem_python.o
>    "_PyList_SetItem", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>    "_PyType_Ready", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyErr_Occurred", referenced from:
>        _init_getfem in getfem_python.o
>        _call_getfem_ in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_PyExc_ImportError", referenced from:
>        _PyExc_ImportError$non_lazy_ptr in getfem_python.o
>    "_PyList_New", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>    "_PyModule_GetDict", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyExc_RuntimeError", referenced from:
>        _PyExc_RuntimeError$non_lazy_ptr in getfem_python.o
>    "_PyComplex_Type", referenced from:
>        _PyComplex_Type$non_lazy_ptr in getfem_python.o
>    "_PyComplex_ImagAsDouble", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyImport_ImportModule", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyString_FromStringAndSize", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>    "_PyString_FromFormat", referenced from:
>        _GetfemObject_name in getfem_python.o
>    "_PyCallable_Check", referenced from:
>        _register_python_factory in getfem_python.o
>    "_PyTuple_New", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_PyInt_Type", referenced from:
>        _PyInt_Type$non_lazy_ptr in getfem_python.o
>    "_PyString_Type", referenced from:
>        _PyString_Type$non_lazy_ptr in getfem_python.o
>    "_Py_BuildValue", referenced from:
>        _PyGetfemObject_FromObjId in getfem_python.o
>    "_PyErr_Clear", referenced from:
>        _PyObject_is_GetfemObject in getfem_python.o
>    "_PyInt_FromLong", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>    "_PyCObject_Type", referenced from:
>        _PyCObject_Type$non_lazy_ptr in getfem_python.o
>    "_PyFloat_AsDouble", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyErr_SetString", referenced from:
>        _register_python_factory in getfem_python.o
>        _PyArray_IsFortranCompatible in getfem_python.o
>        _copy_PyArray_data in getfem_python.o
>        _gfi_array_to_PyObject in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_PyEval_CallObjectWithKeywords", referenced from:
>        _PyGetfemObject_FromObjId in getfem_python.o
>    "_PyInt_AsLong", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>    "_PyString_AsString", referenced from:
>        _PyObject_to_gfi_array in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_PyModule_AddObject", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyExc_AssertionError", referenced from:
>        _PyExc_AssertionError$non_lazy_ptr in getfem_python.o
>    "_PyObject_GetAttrString", referenced from:
>        _PyObject_is_GetfemObject in getfem_python.o
>    "_PyDict_GetItemString", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyErr_Print", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyArg_ParseTuple", referenced from:
>        _register_python_factory in getfem_python.o
>    "_PyErr_Format", referenced from:
>        _init_getfem in getfem_python.o
>        _gc_alloc in getfem_python.o
>        _gfi_array_to_PyObject in getfem_python.o
>        _PyObject_to_gfi_array in getfem_python.o
>        _call_getfem_ in getfem_python.o
>    "_PyType_GenericNew", referenced from:
>        _PyType_GenericNew$non_lazy_ptr in getfem_python.o
>    "_PyExc_TypeError", referenced from:
>        _PyExc_TypeError$non_lazy_ptr in getfem_python.o
>    "_Py_InitModule4", referenced from:
>        _init_getfem in getfem_python.o
>    "_PyFloat_FromDouble", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
>    "__PyObject_New", referenced from:
>        _PyGetfemObject_FromObjId in getfem_python.o
>    "_PyComplex_FromDoubles", referenced from:
>        _gfi_array_to_PyObject in getfem_python.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]