Failed to build Saurik's ldid utility

一曲冷凌霜 提交于 2019-12-05 07:48:03

问题


I am facing these errors when i execute this command "./make.sh" To build ldid utility for jailbreak tweaks development

    Bilals-Mac:ldid billy$ ./make.sh
+ g++ -arch i386 -arch x86_64 -arch ppc -arch armv6 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
Undefined symbols for architecture i386:
  "SHA1Result(SHA1Context*, unsigned char*)", referenced from:
      sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o
  "SHA1Input(SHA1Context*, unsigned char const*, unsigned int)", referenced from:
      sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o
  "SHA1Reset(SHA1Context*)", referenced from:
      sha1(unsigned char*, unsigned char*, unsigned long) in ldid-6MHU04.o
ld: symbol(s) not found for architecture i386
In file included from ldid.cpp:22:
./minimal/stdlib.h:123:10: fatal error: 'errno.h' file not found
#include <errno.h>
         ^
1 error generated.
lookup2.c:9:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
error: unable to create target: 'No available targets are compatible with this
      triple, see -version for the available targets.'
1 error generated.
clang: error: linker command failed with exit code 1 (use -v to see invocation)**strong text**

回答1:


Whosever having problem building ldid, he can get prebuild ldid from here http://joedj.net/ldid

Just download and place it in Theos/bin folder




回答2:


First download Apple's "Command Line Tools" for Xcode if you haven't already.

/usr/bin/xcode-select --install

Change into the appropriate ldid directory.

cd $THEOS/bin/

Download this already compiled version of Theos.

sudo wget http://ac3xx.com/ldid && sudo chmod +x $THEOS/bin/ldid

Apparently it seems to be an issue with Xcode 5.

Information from http://iphonedevwiki.net/index.php/Updating_extensions_for_iOS_7#Theos_and_ldid_errors .

Hope this helps.




回答3:


I am assuming you are using OSX Mavericks and have the latest XCode installed. If yes, then this issue is occurring because the OSX upgrade Apple wipes out many of the core Posix libraries that were earlier present. Not sure why. Previously you could rectify this by installing "Command Line Tools" from Xcode. Unfortunately with the latest release of xcode there is no option to install command line tools from Xcode UI directly. You have to use a little hidden utility called xcode-select

Type the following command in terminal as an administrator to get things working again:

/usr/bin/xcode-select --install

Hope this helps.



来源:https://stackoverflow.com/questions/20776753/failed-to-build-sauriks-ldid-utility

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!