[f2py] Basic question (fwd)
KASSBOHM <[email protected]> Mon, 20 Aug 2012 08:03:56 +0200 (CEST)
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <alpine.DEB.2.02.1208200800430.5263@thnkpd> |
Hello, I sent the question below some days ago as a non-member. Now trying as a member of the mailing list. I guess, my question is about how I can force f2py to link shared libs as well. Any help? Regards, Sven ---------- Forwarded message ---------- Date: Fri, 17 Aug 2012 18:46:43 +0200 (CEST) To: f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] Subject: Basic question Hello, I am new to f2py. So: Sorry for my stupid question in advance. I am building an xxx.so file locally with f2py from my Fortran-source like this: f2py -c -m xxx -L/opt/.../lib/ -l... xxx.f Then I can do: import xxx in my Python program. Everything works fine. That is: On my local box with Intel-Compiler. But actually: I would like to use this xxx.so on other boxes than mine as well. In fact, this is the most important reason for me to use f2py. I assume, that I do not need to have an Intel-Compiler installed everywhere... When I try to import my xxx.so on a box without Intel, I get (since libifport.so.5 is an Intel-Object) the error message: ImportError: libifport.so.5: cannot open shared object file: No such f... But isn't the thrilling thing about f2py, that one can COMPLETELY WRAP a Fortran subroutine and use it with Python? What is it, I most definitely need to understand, before I go any step further... Can you help? Sven