Professional Web Applications Themes

Can't get application to use correct dynamic library - Mac Programming

I have a complex Xcode projects that builds several dynamic libraries, and applications that use those libraries. The libraries need to install in a certain location, and the applications need to install in another location. I set the "Installation Path" of the Build Style to the portion of the path that is common between both the libraries and applications. I then created a Copy Build Phase for each target which uses the $(INSTALL_PATH) value defined in the Build Style to copy its product to the correct subdirectory under the common installation path. When I try to run an application, it ...

  1. #1

    Default Can't get application to use correct dynamic library

    I have a complex Xcode projects that builds several dynamic libraries,
    and applications that use those libraries. The libraries need to
    install in a certain location, and the applications need to install in
    another location.

    I set the "Installation Path" of the Build Style to the portion of the
    path that is common between both the libraries and applications. I
    then created a Copy Build Phase for each target which uses the
    $(INSTALL_PATH) value defined in the Build Style to copy its product
    to the correct subdirectory under the common installation path.

    When I try to run an application, it complains that it can't find the
    needed library because that application expect the library to be at
    the root of the common installation path instead of where I copied it.

    How can I let the applications know the proper place of each library
    without having to explicitly set the install path for each library.
    Tron Guest

  2. #2

    Default Re: Can't get application to use correct dynamic library

    In article <google.com>, Tron
    Thomas <net> wrote:
     

    You can't. Install paths have to be set.

    If you prefered, you could use install_name_tool to change the paths
    after the application is built, but you're still going to have to fully
    specify each one.

    Wade
    Wade Guest

  3. #3

    Default Re: Can't get application to use correct dynamic library

    In article <170720040118243177%spam.dogwatchsw.com>,
    Wade Williams <spam.dogwatchsw.com> wrote:
     

    Well,

    there are placeholders, though. E.g. for embedded frameworks, you can
    specify executable_name as the start of the install path and it'll be
    fixed to point to wherever your app is.

    Just adding some detail,
    -- Uli
    http://www.zathras.de
    Uli Guest

Similar Threads

  1. Dynamic library initialization
    By Reed in forum Mac Programming
    Replies: 2
    Last Post: February 21st, 03:33 PM
  2. how to include dynamic library?
    By neele in forum Mac Programming
    Replies: 25
    Last Post: February 11th, 06:44 AM
  3. Replies: 0
    Last Post: August 11th, 03:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139