Jump to content

[Tutorial] How to install theos on a Mac


17 posts in this topic

Recommended Posts

Updated (edited)

Updated Tutorial: https://github.com/theos/theos/wiki/Installation

 

- Introduction
Hello community! This tutorial will show you how to install theos on a Mac. As far as I know this isn't possible on Windows because you'll need tools from Xcode, which is sadly Mac-only. Let's get started!

- Requirements
- Xcode*
- Terminal

*Xcode 5+ is required if you want to compile 64bit. Xcode 5 requires Mountain Lion 10.8.4

- Command-Line Tools
As before, we first need to start by downloading Xcode's command-line tools. To do so, go into Xcode's preferences and select Downloads. From there, click to download the tools:
eZSB8lg.png?1

? Theos
You have the tools! Now launch Terminal, and as root type these commands:



export THEOS=/opt/theos
git clone git://github.com/rpetrich/theos.git $THEOS

This will install rpetrich's theos to /opt/theos. Now install ldid:

git clone git://git.saurik.com/ldid.git
cd ldid
git submodule update --init
./make.sh
cp -f ./ldid $THEOS/bin/ldid

Lastly, go here and download the whole project. Dump all of it in /opt/theos/include. You just installed the headers! Theos complete! But wait, when you run the make package command on your project, Terminal replies that you need dpkg. If you don't care about packaging your projects into happy little debians with a red bow tie, feel free to skip this last part of the tutorial. If you do care, read on.

- Happy Little Debians with a Red Bow Tie
Thought so. :)

The only thing you'll need to install is MacPorts (see here for downloads). Once installed, open Terminal and type the following as root:

export dpkg=/opt/local/bin
sudo port selfupdate
sudo port install dpkg

- Conclusion
Hope this helps! Thanks to iPhone Dev Wiki and weblogs.java.net. Post below if you have any questions and I will do my best to help you out. :)

Updated by DiDA
Posted

What do people use Theos on a mac for?

Same reason why you use theos on iOS :)

Posted

If I use Theos on Mac, do I need to use it on my Device too?

Or can I do all from mac and  compile it in there and put the .deb file in my device later?

 

 

@@DiDA

 

@@shmoo

 

Thank you.

You can compile on Mac too. You don't need it on your iDevice if you have it on your Mac and yes, you can transfer the compiled deb from a Mac to your iDevice. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines