Commit 3925ed98eb68fb9ca162738740255b2cb64893f9

Authored by Michał Lenart
1 parent 209a8c74

poprawka w README

git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/morfeusz@145 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing 1 changed file with 11 additions and 10 deletions
@@ -5,7 +5,7 @@ Compilation - prerequisites @@ -5,7 +5,7 @@ Compilation - prerequisites
5 5
6 This tutorial assumes that build process is performed on Linux 64bit machine (preferably from Debian/Ubuntu family). 6 This tutorial assumes that build process is performed on Linux 64bit machine (preferably from Debian/Ubuntu family).
7 7
8 -sudo apt-get install build-essential autotools python setuptools python-stdeb 8 +sudo apt-get install build-essential autotools-dev python python-setuptools python-stdeb
9 sudo pip install pyinstaller 9 sudo pip install pyinstaller
10 10
11 For cross compiling: 11 For cross compiling:
@@ -69,10 +69,11 @@ make install-python @@ -69,10 +69,11 @@ make install-python
69 Customizing build process 69 Customizing build process
70 *************** 70 ***************
71 71
72 -Available custom CMake variables: 72 +Optional CMake variables:
73 INPUT_TAGSET - tagset file 73 INPUT_TAGSET - tagset file
74 INPUT_DICTIONARIES - comma-separated list of dictionary files (can use empty one from input/empty.txt) 74 INPUT_DICTIONARIES - comma-separated list of dictionary files (can use empty one from input/empty.txt)
75 -TARGET_DIR - a dir where packages built by CMake are put 75 +SEGMENT_RULES_FILE - segmentation rules file
  76 +TARGET_DIR - a dir where packages built by CMake are put in
76 77
77 Execute like following: 78 Execute like following:
78 cmake -D INPUT_TAGSET=<file1> -D INPUT_DICTIONARIES="<dict_file1>,<dict_file2>" .. 79 cmake -D INPUT_TAGSET=<file1> -D INPUT_DICTIONARIES="<dict_file1>,<dict_file2>" ..
@@ -81,13 +82,6 @@ cmake -D INPUT_TAGSET=&lt;file1&gt; -D INPUT_DICTIONARIES=&quot;&lt;dict_file1&gt;,&lt;dict_file2&gt;&quot; @@ -81,13 +82,6 @@ cmake -D INPUT_TAGSET=&lt;file1&gt; -D INPUT_DICTIONARIES=&quot;&lt;dict_file1&gt;,&lt;dict_file2&gt;&quot;
81 Notes on cross-compilation 82 Notes on cross-compilation
82 ************************** 83 **************************
83 84
84 -Create separate build directory, for example build-darwin.  
85 -  
86 -Run:  
87 -cmake -DCMAKE_TOOLCHAIN_FILE=../morfeusz/Toolchain-xxx.cmake ..  
88 -make  
89 -make package package-java package-python  
90 -  
91 Copy Java JDK and Python libraries from target platform. Set JAVA_ROOT and PYTHON_ROOT in Toolchain files to match directories copied from target platform. 85 Copy Java JDK and Python libraries from target platform. Set JAVA_ROOT and PYTHON_ROOT in Toolchain files to match directories copied from target platform.
92 86
93 [Mac OS X 64bit] Libraries are at /System/Library/Frameworks/JavaVM.framework and /System/Library/Frameworks/Python.framework 87 [Mac OS X 64bit] Libraries are at /System/Library/Frameworks/JavaVM.framework and /System/Library/Frameworks/Python.framework
@@ -98,6 +92,13 @@ Copy Java JDK and Python libraries from target platform. Set JAVA_ROOT and PYTHO @@ -98,6 +92,13 @@ Copy Java JDK and Python libraries from target platform. Set JAVA_ROOT and PYTHO
98 - compile latest version using ./configure --prefix=/some/directory/python 92 - compile latest version using ./configure --prefix=/some/directory/python
99 - copy contents of /some/directory/python to the build machine and set it as PYTHON_ROOT in Toolchain file 93 - copy contents of /some/directory/python to the build machine and set it as PYTHON_ROOT in Toolchain file
100 94
  95 +Create separate build directory, for example build-darwin.
  96 +
  97 +Run:
  98 +cmake -DCMAKE_TOOLCHAIN_FILE=../morfeusz/Toolchain-xxx.cmake ..
  99 +make
  100 +make package package-java package-python
  101 +
101 102
102 ************* 103 *************
103 Mac OS X 104 Mac OS X