+ Reply
Results 1 to 7 of 7
  1. #1
    What's Jailbreak?
    Join Date
    Nov 2009
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Open Toolchain - library not found for -lobjc

    I just built the toolchain on my Debian system as per this guide:

    http://code.google.com/p/iphonedevonlinux/wiki/Installation

    I made sure that all the required packages were installed on my system, and the script built the toolchain flawlessly - zero errors.

    I tried to build the HelloToolchain test app:

    brian@vader:~/iphone/toolchain/apps/HelloToolchain$ make deploy
    arm-apple-darwin9-gcc -c src/HelloToolchain.m -o HelloToolchain.o
    arm-apple-darwin9-gcc -lobjc -bind_at_load -framework Foundation -framework CoreFoundation -framework UIKit -w -o HelloToolchain HelloToolchain.o
    ld: library not found for -lobjc
    collect2: ld returned 1 exit status
    make: *** [HelloToolchain] Error 1


    It looks like the linker can't find the objective c library. I do have the gobjc package installed on my system. Any ideas?

  2. #2
    What's Jailbreak? supersocialist's Avatar
    Join Date
    Sep 2007
    Posts
    23
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Having the same problem, same circumstances. Did you ever get this sorted?

    I'm compiling for 3.1.2/2G on Ubuntu 9.10. My research so far indicates that I need the arm/iphone lobjc and what I have is the intel/linux lobjc. I haven't figured out where to get the correct libraries.

  3. #3
    What's Jailbreak?
    Join Date
    Nov 2009
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yes I did get it working. You have to copy the include and frameworks dirs to the toolchain folder. I posted about it on the script google code page.

  4. #4
    What's Jailbreak? supersocialist's Avatar
    Join Date
    Sep 2007
    Posts
    23
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Sorry, which folders? path/toolchain/toolchain/sys/usr/include and System/Library/Frameworks? I'm having a heck of a time finding the correct google code page with the search.

  5. #5
    What's Jailbreak?
    Join Date
    Nov 2009
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post
    Here's the page:

    Installation - iphonedevonlinux - Installation of the toolchain - Project Hosting on Google Code

    sorry, it was the usr/lib folder and frameworks. Scroll down to the comment I posted on dec 17. There's a link to an explanation of the problem as well. Sorry for the crappy replies - I'm posting from my phone so it's hard to type.

  6. #6
    What's Jailbreak? supersocialist's Avatar
    Join Date
    Sep 2007
    Posts
    23
    Thanks
    0
    Thanked 3 Times in 2 Posts

    Thanks very much for the link and explanation!

  7. #7
    What's Jailbreak?
    Join Date
    Nov 2009
    Posts
    15
    Thanks
    0
    Thanked 1 Time in 1 Post
    No worries. Hopefully it helps you out.

Posting Permissions

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