Results 1 to 4 of 4

Thread: Linking issues on Ice Touch

  1. #1
    ekfliu Guest

    Linking issues on Ice Touch

    I attempted to compile an Ice Project in xcode but resulted in library not found for -lIce. I already put /opt/IceTouch-1.0/lib on the Library Search Paths but that did not resolved the problem. Anyone has idea on what is the issue?

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    The Objective-C Ice library is called IceObjC, not Ice. If you are a building a Cocoa, or iPhone application then you should use the IceTouch Xcode SDK (as documented in the RELEASE_NOTES file accompanying the distribution). In this case, you don't need to add any library to your linker options.

    I highly recommend that you watch one of my screencasts which shows precisely how to setup an Xcode project for each of the project types for Xcode.

    http://www.zeroc.com/doc/screencasts.html

  3. #3
    ekfliu Guest
    I have reinstall the IceTouch 1.0 Package and follow the video. I was able to build however when attempting to run on the iphone simulator it crashed with the following error.

    Dyld Error Message:
    Library not loaded: @executable_path/libIceObjC.dylib
    Referenced from: blah blah
    Reason: image not found

    Looks like it cannot find the dylib file, do I need to set the library search path? That was not done in the video....

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    You need to copy the IceObjC shared library to the application bundle for the simulator. This is documented in the RELEASE_NOTES, here's the relevant part:
    Code:
    For iPhone Simulator applications, the dynamically linked Ice libraries
    must be copied into the application directory. For our iPhone demos,
    this is done in the Xcode project with a post-build script as follows:
    
    if [ $PLATFORM_NAME = iphonesimulator ]; then
      cp $ADDITIONAL_SDKS/usr/local/lib/*.dylib $BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH
    fi
    How to add this post build script to the Xcode project is shown in the IceTouch Intro screencast (in the last quarter of the screencast).

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ice Touch 1.1 released
    By mes in forum Announcements
    Replies: 0
    Last Post: 09-15-2010, 03:10 PM
  2. Ice Touch for iPad
    By mes in forum Announcements
    Replies: 0
    Last Post: 01-29-2010, 02:15 PM
  3. Replies: 0
    Last Post: 07-17-2009, 12:46 PM
  4. Ice Touch 1.0.0
    By matthew in forum Announcements
    Replies: 0
    Last Post: 07-03-2009, 03:30 AM
  5. Replies: 3
    Last Post: 01-29-2007, 03:29 PM

Posting Permissions

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