Skip to content
Snippets Groups Projects
Commit ec9343df authored by Johannes Heinecke's avatar Johannes Heinecke
Browse files

documentation: use same python version for compilation and executation

parent 159d7ef9
Branches
No related tags found
1 merge request!9Johannes
......@@ -28,6 +28,9 @@ The basic procedure to build and install macaon from sources is the following.
or
sudo apt-get install openjdk-7-jdk
Attention: if you have libpython2.7-dev and libpython3.X-dev installed, cmake will choose the latter
in this case the generated libraries for Python will only work with Python 3
- Build the sources with:
make
- Install macaon
......
......@@ -3,9 +3,18 @@ if(MACA_EXPORT)
FIND_PACKAGE(SWIG)
if (SWIG_FOUND)
FIND_PACKAGE(PythonLibs)
# if(PYTHONLIBS_FOUND)
# message(STATUS "OK: PythonLibs ${PYTHONLIBS_VERSION_STRING} found")
# endif()
FIND_PACKAGE(Java 1.7)
# if (Java_FOUND OR JAVA_FOUND)
# message(STATUS "OK: Java ${Java_VERSION_STRING} found")
FIND_PACKAGE(JNI)
# if (JNI_FOUND)
# message(STATUS "OK: JNI found")
# endif()
# endif()
add_subdirectory(tagger)
add_subdirectory(lemmatizer)
......
Using the libraries for python and java
Attention: if you have libpython2.7-dev and libpython3.X-dev installed, cmake will choose the latter
in this case the generated libraries for Python will only work with Python 3
set environment variable MACAON_DIR
export MACAON_DIR=/home/jeuh6401/SemanticData/macaon/maca_data2
......@@ -12,6 +15,8 @@ then:
../macaon2/maca_export/example/example.py
another test programme:
cd maca_data2
../macaon2/build/maca_export/src/testcxx jh-seq jh-seq/eval/wplgfs.mcd ../macaon2/maca_export/src/test-0.mcf
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment