iCepa / Tor.framework

Tor framework for the iCepa project
Other
245 stars 53 forks source link

XCode project won't compile #7

Closed seboslaw closed 7 years ago

seboslaw commented 8 years ago

Hey guys,

I'm trying to compile the XCode project and somehow it doesn't want to do that for me :( Ultimately, I need a static library version to include in a macOS command line app. But I can't event get the framework to compile.

I have all necessary tools installed via brew (automake autoconf libtool get text). When I try the tor.sh script it says

./tor.sh: line 9: ./autogen.sh: No such file or directory

which I find odd since I have autoconf installed. Trying to compile the "Tor-Mac" scheme in the XCode project, I get all kinds of errors, starting with

this in openssl-Mac:

Configuring for iphoneos-cross
    no-asm          [option]   OPENSSL_NO_ASM
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-libunbound   [experimental] OPENSSL_NO_LIBUNBOUND (skip dir)
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-sctp         [default]  OPENSSL_NO_SCTP (skip dir)
    no-shared       [default] 
    no-ssl-trace    [default]  OPENSSL_NO_SSL_TRACE (skip dir)
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-unit-test    [default]  OPENSSL_NO_UNIT_TEST (skip dir)
    no-zlib-dynamic [default] 
IsMK1MF=0
unable to read Makefile.org:No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: Nothing to be done for `install'.
make: *** No rule to make target `clean'.  Stop.
...

this in libevent-Mac:

configure: WARNING: unrecognized options: --disable-shared, --enable-static
./configure: line 2471: syntax error near unexpected token `libevent,2.0.22-stable'
./configure: line 2471: `AM_INIT_AUTOMAKE(libevent,2.0.22-stable)'
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
mv: rename include/event2/event-config.h to /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Intermediates/Tor.build/Debug/libevent-x86_64/event-config.h: No such file or directory
make: *** No rule to make target `distclean'.  Stop.
mv: rename /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Intermediates/Tor.build/Debug/libevent-x86_64/event-config.h to include/event2/event-config.h: No such file or directory
cp: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Intermediates/Tor.build/Debug/libevent-x86_64/lib/*.a: No such file or directory
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Products/Debug/libevent.*.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Products/Debug/libevent_core.*.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Products/Debug/libevent_pthreads.*.a (No such file or directory)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Products/Debug/libevent_extra.*.a (No such file or directory)
rm: /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Products/Debug/libevent*.*.a: No such file or directory

and this in tor-Mac:

checking for openssl directory... configure: WARNING: We found the libraries for openssl, but we could not find the C header files.  You may need to install a devel package.
configure: error: Missing headers; unable to proceed.
make: *** No targets specified and no makefile found.  Stop.
cp: src/common/*.a: No such file or directory
cp: src/or/*.a: No such file or directory
cp: src/ext/ed25519/donna/*.a: No such file or directory
cp: src/ext/ed25519/ref10/*.a: No such file or directory
cp: src/trunnel/*.a: No such file or directory
mv: rename orconfig.h to /Users/svogelsang/Library/Developer/Xcode/DerivedData/Tor-dkannuofkahhslcsrolfzvomkpbr/Build/Intermediates/Tor.build/Debug/orconfig.h: No such file or directory
...

There are a couple of more error message, but I hope this is enough to pin the error. Please notice: I have openssl and libevent installed on my system through brew.

conradev commented 7 years ago

@seboslaw, sorry I missed this! Could you give it another try?

conradev commented 7 years ago

Closing this due to inactivity 🚦