Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
same issue with him
#1
I make a python extension bar_extension with distutils bar_extension
 need a shared object libfoo.dylib
 which is made by cmake
 Here is my setup.py:

 
from distutils.core import setup, Extension
module1 = Extension('bar_extension', libraries=['libfoo2.dylib', ],
    library_dirs=['/Users/xiazhibin/CLionProjects/study/lib', ],
    include_dirs=['/Users/xiazhibin/CLionProjects/study/include', ], language="c++",
    extra_compile_args = ['-v', '--std=c++98', ], sources=['main.cpp'])

setup(name='PackageName', version='1.0', description='This is a demo package', ext_modules=[module1])
But it can find my shared object libfoo.dylib

Here is my question in stackoverflow: http s://stackoverflow.com/questions/45323055/python-extension-link-dylib-on-osx

Thanks
Reply
#2
i have a same topic with bin381

I make a python extension bar_extension with distutils bar_extension
need a shared object libfoo.dylib
which is made by cmake
Here is my setup.py:

from distutils.core import setup, Extension
module1 = Extension('bar_extension', libraries=['libfoo2.dylib', ],
library_dirs=['/Users/xiazhibin/CLionProjects/study/lib', ],
include_dirs=['/Users/xiazhibin/CLionProjects/study/include', ], language="c++",
extra_compile_args = ['-v', '--std=c++98', ], sources=['main.cpp'])

setup(name='PackageName', version='1.0', description='This is a demo package', ext_modules=[module1])
But it can find my shared object libfoo.dylib

Here is my question in stackoverflow: http s://stackoverflow.com/questions/45323055/python-extension-link-dylib-on-osx

Thanks

there have no replies
thx all!

User has been warned for this post. Reason: No tags, Not enough info in the post
Reply
#3
This post should include the exact error message. "But it can find my shared object libfoo.dylib" is paraphrasing and not enough.

That said, I'm not experienced on this topic, but if there was sufficient information here to reproduce, then I could help investigate.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020