Changeset - e5061217868a
[Not reviewed]
0 1 0
vitalyster - 12 years ago 2013-08-30 13:34:27
vitalyster@gmail.com
Update from_source_code.md
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
documentation/installation/from_source_code.md
Show inline comments
 
---
 
layout: page
 
title: Spectrum 2
 
---
 

	
 
## Install Boost and libidn
 

	
 
You have to have boost-devel and libidn-devel installed before compiling Swiften, otherwise it will compile against bundled version of Boost and libidn and Spectrum compilation will fail.
 

	
 
## Install Swiften from git repository:
 

	
 
	git clone git://swift.im/swift
 
	cd swift
 
	git checkout swift-2.0beta1
 
	git checkout swift-2.x
 
	./scons V=1 swiften_dll=1 Swiften SWIFTEN_INSTALLDIR=/usr/local force-configure=1
 
	sudo ./scons V=1 swiften_dll=1 Swiften SWIFTEN_INSTALLDIR=/usr/local /usr/local
 

	
 
*Note* - If the output of "./scons" command contains following during the configure stage, you don't have boost-devel or libidn-devel installed during the compilation and *Swiften won't work properly*:
 

	
 
	Checking for C++ header file boost/signals.hpp... no
 
	....
 
	Checking for C library idn... no
 

	
 

	
 
The proper configure script output looks like this:
 

	
 
	scons: Reading SConscript files ...
 
	Checking whether the C++ compiler worksyes
 
	Checking whether the C compiler worksyes
 
	Checking for C library z... yes
 
	Checking for C library resolv... yes
 
	Checking for C library pthread... yes
 
	Checking for C library dl... yes
 
	Checking for C library m... yes
 
	Checking for C library c... yes
 
	Checking for C library stdc++... yes
 
	Checking for C++ header file boost/signals.hpp... yes
 
	Checking for C library boost_signals... yes
 
	Checking for C++ header file boost/thread.hpp... yes
 
	Checking for C library boost_thread... no
 
	Checking for C library boost_thread-mt... yes
 
	Checking for C++ header file boost/regex.hpp... yes
 
	Checking for C library boost_regex... yes
 
	Checking for C++ header file boost/program_options.hpp... yes
 
	Checking for C library boost_program_options... yes
 
	Checking for C++ header file boost/filesystem.hpp... yes
 
	Checking for C library boost_filesystem... yes
 
	Checking for C++ header file boost/system/system_error.hpp... yes
 
	Checking for C library boost_system... yes
 
	Checking for C++ header file boost/date_time/date.hpp... yes
 
	Checking for C library boost_date_time... yes
 
	Checking for C++ header file boost/uuid/uuid.hpp... yes
 
	Checking for C function XScreenSaverQueryExtension()... yes
 
	Checking for package gconf-2.0... yes
 
	Checking for C header file gconf/gconf-client.h... yes
 
	Checking for C library gconf-2... yes
 
	Checking for C header file libxml/parser.h... no
 
	Checking for C header file libxml/parser.h... yes
 
	Checking for C library xml2... yes
 
	Checking for C header file idna.h... yes
 
	Checking for C library idn... yes
 
	Checking for C header file readline/readline.h... yes
0 comments (0 inline, 0 general)