From ec9343dfe08c4994af4bf5b4f51b88eaffbe1cd3 Mon Sep 17 00:00:00 2001
From: "johannes.heinecke" <johannes.heinecke@orange.com>
Date: Thu, 14 Sep 2017 13:22:20 +0200
Subject: [PATCH] documentation: use same python version for compilation and
 executation

---
 INSTALL                    |  3 +++
 maca_export/CMakeLists.txt | 11 ++++++++++-
 maca_export/README.txt     |  7 ++++++-
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/INSTALL b/INSTALL
index cdb52b3..b00bc9b 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 3957e53..a6db6fb 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 1fc3655..1ebc2d2 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 
-- 
GitLab