Linking armadillo with Xcode

后端 未结 2 1761
故里飘歌
故里飘歌 2021-01-06 14:30

I have a large existing Xcode project and now I want to add the armadillo library to it .

http://arma.sourceforge.net/

I have downloaded it (with macports)

2条回答
  •  自闭症患者
    2021-01-06 14:58

    Try to add libz.lib to your build target:

    Add libz to your Link Binary With Libraries Build Phase

    1. Select your Project in the Project Navigator
    2. Select the target you want to enable the SDK for
    3. Select the Build Phases tab
    4. Open the Link Binary With Libraries Phase
    5. Click the + to add a new library
    6. Find libz.dylib in the list and add it
    7. Repeat Steps 2 - 6 until all targets you want to use the SDK with have libz.dylib

    Source: https://testflightapp.com/sdk/doc/1.1/

提交回复
热议问题