====================== Introduction ==================== sw
This is a RML package (RML is Russian acronym, stands for Linguistic Environment).
This program is distributed under the Library GNU Public Licence, which is in the file
COPYING.
This program was written by Alexey Sokirko, Igor Nozhov, Lev Gershenzon, Andrey Putrin
and many other people.
The project started in Moscow in Dialing
Company (Russian and English language). The German part was created
at Berlin-Brandenburg Academy of Sciences and Humanities in Berlin (the project DWDS).
Russian website (Russian documents) is www.aot.ru.
More detail about Morphology dicts is here: Docs/Morph_UNIX.txt
============== Prerequisites ========================
0. On Debian/Ubuntu install everything needed for the build with
sudo apt install build-essential cmake git zlib1g-dev flex bison qt6-base-dev
A fresh Ubuntu has no compiler, and the cmake package does not pull it in;
cmake then fails with "No CMAKE_CXX_COMPILER could be found".
CMake picks the compiler once, on the first configure (-DCMAKE_CXX_COMPILER,
else $CXX, else c++ from PATH, i.e. g++ on Ubuntu), and stores it in
build/CMakeCache.txt. After installing or changing the compiler remove the
build directory (or CMakeCache.txt and CMakeFiles/) and run cmake again.
1. cmake 3.24 or higher; g++ 9.0 or higher or Microsoft Visual Studio 2019
2. zlib (zlib1g-dev)
3. flex and bison: needed by the projects after Morphology (Synan and Seman)
3.1 For Windows install cygwin (wget, gzip) and add cygwin bin to PATH
3.2 For windows I used flex and bison from https://sourceforge.net/projects/winflexbison/?source=typ_redirect
mkdir RML/external
mkdir RML/external/winflex
cd RML/external/winflex
wget https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.24.zip/download
unzip win_flex_bison-2.5.24.zip
or build it from sources https://github.com/lexxmark/winflexbison
4. Qt6 (Widgets): the GUI programs (Source/gui: morphwizard, morphgui, rossdev, visualsynan)
sudo apt install qt6-base-dev
Under Windows install Qt6 (https://www.qt.io/download) and give cmake its path, e.g.
cmake .. -DCMAKE_PREFIX_PATH=C:/Qt/6.8.0/msvc2022_64
5. The HTTP daemons (SynanDaemon, SemanDaemon; BUILD_HTTP_SERVERS) use cpp-httplib,
which is bundled in Source/nlp_base/contrib/httplib: nothing to install.
6. git clone git@github.com/aot.git --recursive RML
7. nder Windows follow https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170
================= Compilation under Linux =======================
export RML=/home/sokirko/RML
cd $RML
mkdir build
cd build
cmake ..
// or with debug
// cmake .. -DCMAKE_BUILD_TYPE=Debug
make
make DESTDIR=$RML install