User Tools

Site Tools


mac_compilation_howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mac_compilation_howto [2019/07/16 20:31]
mac_compilation_howto [2017/08/05 17:10] (current)
maefloresta
Line 1: Line 1:
 +;#;
 +[[developer_resources|Back to Developers Page]]
 +;#;
  
 +=====How to compile TupiTube Desk from source code (OSX)=====
 +
 +Once again, [[http://​twitter.com/#​!/​pastuxso|Cristian Cepeda]] is helping us to bring TupiTube Desk closer to the Mac world. This time, adding a new way to compile it using a friendly package manager called [[http://​en.wikipedia.org/​wiki/​MacPorts|Macports]].
 +
 +**Note:** To build and install TupiTube Desk on Mac OSX following this article, the [[http://​en.wikipedia.org/​wiki/​Terminal_(Mac_OS_X)|Terminal]] application is required. This tool can be located at /​Applications/​Utilities/​Terminal using the Finder application.
 +The Terminal is just a command console (terminal emulator), so if you have no experience using it, we recommend you to take a look at this little guide:
 +
 +http://​www.hacktheday.com/​beginners-guide-to-apple-terminal-part-1/​
 +
 +Now, to compile/​install TupiTube Desk from source code, please follow the instructions below:
 +
 +1. Install the XCode Developer Tools available at:
 +https://​developer.apple.com/​downloads/​index.action
 +
 +If your OSX version is Lion, try version 4.1 or later and include the package called "​Command Line Tools for Xcode"
 +
 +{{ wiki:​xcode_lion.png }}
 +
 +{{ wiki:​xcode_command.line_tools.png }}
 +
 +If your OSX version is Snow Leopard, try version 3.2
 +
 +{{ wiki:​xcode_leopard.png }}
 +
 +**Note:** An Apple ID account is required to download XCode.
 +
 +2. Install Libav
 +    * wget https://​libav.org/​releases/​libav-11.4.tar.gz
 +    * tar xvfz libav-11.4.tar.gz
 +    * cd libav-11.4
 +    * ./configure --prefix=/​usr/​local --enable-shared
 +    * make
 +    * sudo make install
 +
 +3. Install Ogg library
 +    * wget http://​downloads.xiph.org/​releases/​ogg/​libogg-1.3.2.tar.gz
 +    * tar xvfz libogg-1.3.2.tar.gz
 +    * cd libogg-1.3.2
 +    * ./configure --prefix=/​usr/​local --enable-shared
 +    * make
 +    * sudo make install
 +
 +4. Install Theora library
 +    * wget http://​downloads.xiph.org/​releases/​theora/​libtheora-1.1.1.tar.bz2
 +    * tar xvfz libtheora-1.1.1.tar.bz2
 +    * cd libtheora-1.1.1
 +    * ./configure --prefix=/​usr/​local --with-ogg=/​usr/​local --enable-shared
 +    * make
 +    * sudo make install
 +
 +5. Download TupiTube Desk source code from GitHub:
 +    * mkdir -p /​Users/​username/​tupitube/​sources (where username is your user account name in the OSX system)
 +    * cd /​Users/​username/​tupitube/​sources
 +    * git clone https://​github.com/​xtingray/​tupitube.desk.git
 +
 +6. Move into project'​s directory:
 +    * cd tupitube.desk
 +
 +7. Run the configure script:
 +    * ./configure --prefix=/​Users/​username/​tupitube/​installer --with-libav=/​usr/​local --with-quazip=/​usr/​local --with-theora=/​usr/​local --bindir=/​Users/​username/​tupitube/​installer
 +
 +8. Compile the project:
 +    * make
 +
 +9. Install binaries and resources:
 +    * make install
 +
 +10. Create the .dmg installer:
 +    * cd /​Users/​username/​tupitube/​sources/​tupitube.desk
 +    * ./​tools/​build_mac_osx_app.sh /​Users/​username/​tupitube/​sources/​tupitube.desk /​Users/​username/​tupitube/​installer
 +
 +11. Look for the .dmg file at the path /​Users/​username/​tupitube/​installer and install it. Now you can enjoy TupiTube! (like we do).
 +
 +;#;
 +[[developer_resources|Back to Developers Page]]
 +;#;