-
Hi, The provided project located in libusb-1.0.27/Xcode is for dynamic library. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Probably because libusb is LGPL, static linking is discouraged. |
Beta Was this translation helpful? Give feedback.
-
If you plan to use XCode project specifically, you can poke around in XCode project settings locally to change it. If XCode project is not a requirement for you - use Autotools to build the project and static library may be selected during configuration (check CI scripts if you need an example how to do so). The other alternative is to use libusb-cmake. It even allows you to generate an XCode project for static variant of the library build. |
Beta Was this translation helpful? Give feedback.
If you plan to use XCode project specifically, you can poke around in XCode project settings locally to change it.
There is no external option to change it. (Some projects even have (technically) different XCode projects for different build variants, like shared/static).
If XCode project is not a requirement for you - use Autotools to build the project and static library may be selected during configuration (check CI scripts if you need an example how to do so).
The other alternative is to use libusb-cmake. It even allows you to generate an XCode project for static variant of the library build.
NOTE: that project is not portable/movable, i.e. you need to generate it each time you need to …