Browse Source

installation...

miguelfreitas
erqan 9 years ago
parent
commit
40c102303b
  1. 9
      doc/build-ios-on-linux.md
  2. 9
      src/makefile.ios
  3. 3
      src/runme-ios-onlinux.sh

9
doc/build-ios-on-linux.md

@ -32,6 +32,7 @@ Instructions:
You should check variables set in `runme-ios-onlinux.sh` script. You should check variables set in `runme-ios-onlinux.sh` script.
export IPHONE_IP=""
export IOS_SDK=/usr/share/iPhoneOS6.0.sdk export IOS_SDK=/usr/share/iPhoneOS6.0.sdk
export ARCH=armv7 export ARCH=armv7
export TARGET=arm-apple-darwin11 export TARGET=arm-apple-darwin11
@ -64,11 +65,11 @@ See the Running instructions below.
Running Running
------- -------
It's now available at `./twisterd`, provided that you are still in the `twister-core` If you have been set IPHONE_IP before running script, it's now available at `/usr/bin/twisterd` on your device.
directory. We have to first create the RPC configuration file, though. We have to first create the RPC configuration file, though.
Run `./twisterd` to get the filename where it should be put, or just try these Run `/usr/bin/twisterd` from SSH or on [Mobile Terminal](http://cydia.saurik.com/package/mobileterminal/) to get
commands: the filename where it should be put, or just try these commands:
mkdir -p "/User/.twister" mkdir -p "/User/.twister"
echo -e "rpcuser=user\nrpcpassword=pwd\nrpcallowip=127.0.0.1" > "/User/.twister/twister.conf" echo -e "rpcuser=user\nrpcpassword=pwd\nrpcallowip=127.0.0.1" > "/User/.twister/twister.conf"

9
src/makefile.ios

@ -109,4 +109,13 @@ check:
clean: clean:
rm -fr $(BLDDIR) rm -fr $(BLDDIR)
install:
ifeq ($(IPHONE_IP),)
echo "Please set IPHONE_IP"
else
ssh root@$(IPHONE_IP) 'rm -fr /usr/bin/twisterd'
scp -r $(BLDDIR)/twisterd root@$(IPHONE_IP):/usr/bin/twisterd
echo "twisterd installed, now you can run it in 'Mobile Terminal' or via SSH."
endif
.PHONY: all dist install uninstall clean .PHONY: all dist install uninstall clean

3
src/runme-ios-onlinux.sh

@ -1,5 +1,6 @@
#twister building script for IOS on linux #twister building script for IOS on linux
export IPHONE_IP=""
export IOS_SDK=/usr/share/iPhoneOS6.0.sdk export IOS_SDK=/usr/share/iPhoneOS6.0.sdk
export ARCH=armv7 export ARCH=armv7
export TARGET=arm-apple-darwin11 export TARGET=arm-apple-darwin11
@ -90,3 +91,5 @@ echo 'Building libtorrent...'
echo 'Building twister...' echo 'Building twister...'
make -f makefile.ios -j$PJC make -f makefile.ios -j$PJC
echo "Installing twisterd to your device..."
[ -n "$IPHONE_IP" ] && make -f makefile.ios install

Loading…
Cancel
Save