summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorlyubod <lyubod@users.noreply.github.com>2014-10-07 05:52:09 +0300
committerlyubod <lyubod@users.noreply.github.com>2014-10-07 05:52:09 +0300
commit660843c873725ba1bd90e6af2c61ba18135eee3d (patch)
treef1f06918a7af3f0d695d7b61c1c0d38c9c275216 /INSTALL.md
parentf39c160db9904830dff0b88ff25a4999c1febbf8 (diff)
Update INSTALL.md
Added MacPorts related info. to Section heading "OS X Non-homebrew"
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md39
1 files changed, 35 insertions, 4 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 824cfb5f..17e23f29 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -152,12 +152,31 @@ Grab the following packages:
152 * https://gnu.org/software/automake/ 152 * https://gnu.org/software/automake/
153 * https://github.com/jedisct1/libsodium 153 * https://github.com/jedisct1/libsodium
154 * http://check.sourceforge.net/ 154 * http://check.sourceforge.net/
155 * http://yasm.tortall.net/Download.html 155 * http://yasm.tortall.net/Download.html (install before libvpx)
156 * https://code.google.com/p/webm/downloads/list 156 * https://code.google.com/p/webm/downloads/list
157 * http://www.opus-codec.org/downloads/ 157 * http://www.opus-codec.org/downloads/
158 * http://www.freedesktop.org/wiki/Software/pkg-config/ 158 * http://www.freedesktop.org/wiki/Software/pkg-config/
159 159
160You must install yasm before installing libvpx, otherwise libvpx will fail to make correctly. 160Macports: (https://www.macports.org/)
161All toxcore dependencies can be installed from MacPorts. This is often easier on PowerPC Macs, and any version of OS X prior to 10.6, since Homebrew is supported on 10.6 and up, but not much (or at all) on older systems. A few have slightly different package names from the corresponding package in Debian.
162
163Same: libtool autoconf automake libsodium check yasm
164Different: libvpx (webm) libopus pkgconfig gettext
165
166(the libintl, from gettext, built into OS X 10.5 is missing libintl_setlocale, but the Macports build has it)
167
168Verify where libintl is on your system: (MacPorts puts it in /opt/local)
169$ for d in /usr/local/lib /opt/local/lib /usr/lib /lib; do ls -l $d/libintl.*; done
170
171Check if that copy has libintl_setlocale:
172nm /opt/local/lib/libintl.8.dylib | grep _libintl_setlocale
173
174Certain other tools may not be installed, or outdated, and should also be installed from MacPorts for simplicity: git cmake
175
176If libsodium was installed with MacPorts, you may want to symlink the copy in /opt/local/lib to /usr/local/lib. That way you don't need special configure switches for toxcore to find libsodium, and every time MacPorts updates libsodium, the new version will be linked to toxcore every time you build:
177ln -s /opt/local/lib/libsodium.dylib /usr/local/lib/libsodium.dylib
178
179Much of the build can then be done as for other platforms: git clone, and so on. Differences will be noted with (OS X 10.5 specific)
161 180
162pkg-config is important for enabling a/v support in tox core, failure to install pkg-config will prevent tox core form finding the required libopus/libvpx libraries. (pkg-config may not configure properly, if you get an error about GLIB, run configure with the following parameter, --with-internal-glib). 181pkg-config is important for enabling a/v support in tox core, failure to install pkg-config will prevent tox core form finding the required libopus/libvpx libraries. (pkg-config may not configure properly, if you get an error about GLIB, run configure with the following parameter, --with-internal-glib).
163 182
@@ -174,9 +193,21 @@ Compiling and installing Tox Core
174```bash 193```bash
175cd toxcore 194cd toxcore
176autoreconf -i 195autoreconf -i
177./configure 196./configure (OS X 10.5 specific)
197./configure CC="gcc -arch ppc -arch i386" CXX="g++ -arch ppc -arch i386" CPP="gcc -E" CXXCPP="g++ -E"
178make 198make
179make install 199make install (OS X 10.5 specific)
200should be: sudo make install
201If it worked, you should have all the toxcore dylibs in /usr/local/lib: (besides the four below, the rest are symlinks to these)
202$ ls -la /usr/local/lib/libtox*.dylib
203libtoxav.0.dylib
204libtoxcore.0.dylib
205libtoxdns.0.dylib
206libtoxencryptsave.0.dylib
207to check what CPU architecture they're compiled for:
208$ lipo -i /usr/local/lib/libtoxencryptsave.0.dylib
209You should now be able to move on to compiling Toxic/Venom or some other client application
210There is also a shell script called "osx_build_script_toxcore.txt" which automates everything from "git pull" to "sudo make install", once the dependencies are already taken care of by MacPorts.
180``` 211```
181 212
182If after running ./configure you get an error about core being unable to find libsodium (and you have installed it) run the following in place of ./configure; 213If after running ./configure you get an error about core being unable to find libsodium (and you have installed it) run the following in place of ./configure;