diff --git a/INSTALL b/INSTALL index cdb52b38537dfab88ce14d39a38efc06ba3dee81..b00bc9b779ca6a9153cbd9bf74d860ab12b1309d 100644 --- a/INSTALL +++ b/INSTALL @@ -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 diff --git a/maca_export/CMakeLists.txt b/maca_export/CMakeLists.txt index 3957e5389829c1359e23ae549a08616d6cd138cf..a6db6fb3ad7e6b8a572fca414b066fef19a8c504 100644 --- a/maca_export/CMakeLists.txt +++ b/maca_export/CMakeLists.txt @@ -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) - FIND_PACKAGE(JNI) +# 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) diff --git a/maca_export/README.txt b/maca_export/README.txt index 1fc365521af85c96af7836ccb62170c3c2678626..1ebc2d28da74ce716eabe32f3580562e7de8a6b8 100644 --- a/maca_export/README.txt +++ b/maca_export/README.txt @@ -1,6 +1,9 @@ - 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