Sankoré Development Zone » Source Repository

Source Repository

Last modified by Lolita Poliutra on 2015/03/19 15:43

Open-Sankoré is an open source project and all the sources are stored on github and gitorious. You can find the Open-Sankoré Git page here.

Checking out Open-Sankoré sources

A read-only version of the current Open-Sankoré code is availble at https://github.com/Sankore/Sankore-3.1.

Checking out third party sources

Open-Sankoré uses some third party sources separated into two repositories.

Custom Qt repository for Open-Sankoré

A read-only version of the custom Qt is available at git@gitorious.org:+mnemis/qt/mnemogit.git Qt-sankore3.1.

Please pay attention to work with the correct branch.

Here the git commands used to clone the repository and switch to the current branch

git clone git://gitorious.org/+mnemis/qt/mnemogit.git Qt-sankore3.1
git checkout --track -b sankore3.1 origin/sankore3.1

Open-Sankoré ThirdParty repository

A read-only version of the current Open-Sankoré third party code is available at git://github.com/Sankore/Sankore-ThirdParty.git.

How to build the custom Qt

The build of the custom Qt depends mostly on the OS. 

Windows

Required applications

Before being able to build Qt some softwares should be installed on your system
*Visual Studio 2008 (9.0) + SP1
*Windows SDK 6.1
*DirectX SDK (November 2008)
*Perl
*Open SSL (binary developer version)
*Qt add-in for Visual Studio (highly recommended)

Setup MS Visual Studio 2008 and Direct X SDK environment

call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
call "C:\Program Files\Microsoft DirectX SDK (November 2008)\Utilities\bin\dx_setenv.cmd"

Define OpenSsl home directory

set OPEN_SSL_HOME=PATH_TO_OPEN_SSL_DIRECTORY\OpenSSL

Update PATH, LIB and INCLUDE

set path=%OPEN_SSL_HOME%\bin;%path%
set lib=%OPEN_SSL_HOME%\lib;%lib%
set include=%OPEN_SSL_HOME%\include;%include%

Setup Qt plugin for Visual Studio

After the plugin installation restart Visual Studio. A new menu named Qt is now available. Select Qt Options from the Qt menu and enter the custom Qt directory path.

Build custom Qt

Open the Microsoft Visual studio prompt on the Qt custom directory and execute
configure
nmake

Mac Os X

Required applications

*XCode

Build custom Qt

Open the Mac Os X terminal on the Qt custom directory and execute
./configure -debug-and-release -universal -make "libs tools demos" -opensource -confirm-license
make
sudo make install

Ubuntu linux

Required packages

sudo apt-get install zlib1g-dev libjpeg62-dev libtiff4-dev libmng-dev libpng12-dev libdirectfb-dev libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev libpulse-dev libaudio-dev libasound2-dev libfreetype6-dev libfontconfig1-dev libts-dev libcups2-dev libdbus-1-dev libglib2.0-dev libgtk2.0-dev libx11-dev libxext-dev libxcursor-dev libxfixes-dev libxrandr-dev libxrender-dev libxv-dev libxinerama-dev libxi-dev libsm-dev libssl-dev libphonon-dev libt1-dev libpaper-dev

Build custom Qt

Open a linux terminal and execute
./configure -debug-and-release -arch `arch` -make "libs tools" -opensource -confirm-license
make
sudo make install

Build third party libraries

The freetype, xpdf and quazip libraries should be build before Open-Sankoré. Please check the README.txt files on the respective directories to find how. 

Build Open-Sankoré

The first step to build Open-Sankoré is to build the third party dependencies (see previous section). Once done a few steps separated you form the Open-Sankoré executable. Here the lasts steps.

Build Open-Sankoré on Windows

qmake
nmake

Build Open-Sankoré on Mac Os X

qmake Sankore_3.1.pro -spec macx-g++
make 

Build Open-Sankoré on Linux

qmake Sankore_3.1.pro -spec linux-g++-32
or
qmake Sankore_3.1.pro -spec linux-g++-64
depending on linux system and
make 

Tags:
Created by vmassol on 2006/12/11 16:49

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 3.2.1 - Documentation