User Tools

Site Tools


en:mac_osx

Differences

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

Link to this comparison view

Next revision
Previous revision
en:mac_osx [2010/09/09 20:32] – created zeten:mac_osx [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-=====Psi+ и Mac OS ======+===== Building the Psi+ on Mac OS X "from scratch" (the bare system) =====
  
-Psi+ on Mac OS X Leopard 10.5: Patching & Building Instructions 
  
 +==== What is needed? ====
  
-===== Сборка Psi+ на Mac OS X "с нуля" (на голой системе) =====+OS X 64-bit.
  
 +To build the application in the system must be installed:
  
-Рассмотрим на примере: Psi+ on Mac OS X  Snow Leopard 10.6+  * Qt 4.7.x 32-bit/64-bit x86 universal 
 +  * Xcode 
 +  * git
  
-Данный пример актуален и для Leopard 10.5. 
  
  
-==== Что понадобится? ====+==== Process ====
  
-Для  сборки приложения в системе должны быть установлены: +Download Qt sources, extract, then at terminal go to qt sources folder and do commands:
- +
-  * Qt 4.6.x +
-  * Xcode 3.x.x +
-  * qconf +
-  * wget +
- +
- +
- +
- +
-==== Процесс ==== +
- +
- +
- +
-  * Устанавливаем программу qconf: +
-      * скачиваем с сайта по адресу http://delta.affinix.com/qconf/ +
-      * распаковываем и в каталоге программы выполняем команду:+
 <code> <code>
-./configure && make && sudo make install +curl -o 4.8.2_mac_10.5.diff https://raw.github.com/psi-im/psideps/master/qt/patches/4.8.2_mac_10.5.diff 
-</code>+patch -p1 4.8.2_mac_10.5.diff
  
-  * Устанавливаем программу wget: +./configure -release -arch x86 -arch x86_64 -sdk /Developer/SDKs/MacOSX10.5.sdk 
-      * скачиваем с сайта по адресу http://ftp.gnu.org/gnu/wget/ +make 
-      * распаковываем и в каталоге программы выполняем команду: +sudo make install
-<code> +
-./configure && make && sudo make install+
 </code> </code>
  
-  * Скачиваем исходные коды Psi из git-репозитория:+Download script for automate Psi+ compilling:
 <code> <code>
-git clone git://git.psi-im.org/psi.git && cd psi && git submodule init && git submodule update && git pull && git submodule update+curl -o psibuild https://raw.github.com/psi-plus/maintenance/master/scripts/macosx/psibuild.command
 </code> </code>
  
-  * Скачиваем все патчи и устанавливаем их:+Set QTDIR variable like this: QTDIR=/usr/local/Trolltech/Qt-4.8.2 
 +Run script:
 <code> <code>
-cd && svn co http://psi-dev.googlecode.com/svn/trunk/patches/ psi && cd psi && cd ~/psi && cat patches *.diff | patch -p1 +QTDIR=/usr/local/Trolltech/Qt-4.8.2 sh psibuild
-cd ~ && cd psi/iconsets && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/psiplus && cd ~/psi+
 </code> </code>
  
-  * Скачиваем недостающие системные иконки Psi++Also you can add next line to your ~/.profile file:
 <code> <code>
-cd ~ && cd psi/iconsets/system/default && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/system/default/psiplus && cd ~/psi+export QTDIR=/usr/local/Trolltech/Qt-4.8.2
 </code> </code>
 +and restart terminal.
  
-  * Конфигурируем и компилируем, выполнив в каталоге Psi+The script downloads all the dependences necessary for Psi+ and makes a packageThe working directory ~/psi will be created in which you can fined psi-plus-xxxx.dmg
-<code> +
-qconf && ./configure --disable-qdbus --enable-plugins && make +
-</code> +
- +
-  * В итоге: +
- +
-    По адресу ~/psi/src* будет расположен готовый бинарий, который нужно скопировать в папку "Программы" +
- +
- +
- +
-==== Установка дополнений ==== +
- +
-Если необходимо установить дополнительные смайлы, иконки настроений или русскую локализацию, то делаем следующее: +
- +
- +
-=== Иконки jabber-клиентов ===+
  
 +For manual dependences compilling run script with -b key:
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/iconsets/ && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/clients+sudo mkdir /psidepsbase 
 +sudo chmod 777 /psidepsbase 
 +sh psibuild -b
 </code> </code>
 +Thus in an automatic mode downloads all necessary dependences (find them is possible in a /psidepsbase folder)
  
- +For compilling Psi+ with webkit use -w key:
-=== Смайлы === +
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/iconsets/emoticons  +sh psibuild -w
-wget http://psi-dev.googlecode.com/svn/trunk/iconsets/emoticons/lk_35x35x138_tasha.jisp +
-wget http://psi-dev.googlecode.com/svn/trunk/iconsets/emoticons/tasha_18x18x93.jisp+
 </code> </code>
  
- +For inclusion in a package translations files it is possible to set variable TRANSLATIONS in which through a blank specify necessary languages:
- +
-=== Занятия === +
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/iconsets/ && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/activities+TRANSLATIONS="ru de" sh psibuild
 </code> </code>
  
- +For inclusion of all available languages use --with-translations key:
- +
-=== Настроения === +
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/iconsets/ && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/moods+sh psibuild --with-translations
 </code> </code>
  
- +For OTR-Plugin compilling use --with-devplugins key:
-=== Роли === +
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/iconsets/ && svn co http://psi-dev.googlecode.com/svn/trunk/iconsets/affiliations+sh psibuild --with-devplugins
 </code> </code>
  
- +Keys of a script can be combined:
- +
-=== Русская локализация === +
 <code> <code>
-cd /Applications/psi.app/Contents/Resources/ && wget http://psi-ru.googlecode.com/svn/branches/psi-plus/psi_ru.qm+sh psibuild --with-devplugins --with-translations -w -b
 </code> </code>
- 
- 
- 
- 
- 
- 
en/mac_osx.1284064326.txt.gz · Last modified: 2010/10/17 15:36 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki