LibPyin icon indicating copy to clipboard operation
LibPyin copied to clipboard

How to have a ".a" file format for macOS compiling instead of ".dylib" ?

Open happyriri opened this issue 1 year ago • 1 comments

Hi,

I success compile for macOS so thanks for your previous answer and I get a ".dylib" file.

But I need a ".a" format and I don't know how to change command or Makefile to get a ".a" file.

Do you have an answer ?

Thanks a lot !

happyriri avatar Mar 28 '24 14:03 happyriri

I think you want to change SHARED to STATIC in CMakeLists.txt and possibly remove add_definitions(-DLIBPYIN_BUILD_SHARED)

acheo avatar Jul 13 '24 04:07 acheo