TALP-UPC / FreeLing

FreeLing project source code
Other
252 stars 96 forks source link

libfreeling_javaAPI.so not generated #124

Open Chunngai opened 1 year ago

Chunngai commented 1 year ago

Hello.

I followed here to build the Java API. It generated libfreeling.so in usr/local/lib. However, the libfreeling_javaAPI.so file was not generated. What would be the problem?

I also followed here. When I executed the command cmake .. -DCMAKE_INSTALL_PREFIX="../../FreeLing" -DJAVA_API=ON, the output was:

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: regex filesystem thread program_options 
-- Found the following ICU libraries:
--   data (required)
--   i18n (required)
--   uc (required)
-- Found ICU: /usr/include (found version "66.1") 
-- Found Threads: TRUE  
-- BACKEND not specified, defaulting to eigen.
-- Eigen dir is /home/neko/Descargas/FreeLing-4.2/src/eigen3
-- Found SWIG: /usr/bin/swig4.0 (found version "4.0.1") 
-- Found Java: /usr/bin/java (found version "1.8.0.352") found components: Runtime Development 
-- Found JNI: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/libjawt.so  
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:607 (message):
  Policy CMP0078 is not set: UseSWIG generates standard target names.  Run
  "cmake --help-policy CMP0078" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

Call Stack (most recent call first):
  APIs/java/CMakeLists.txt:11 (SWIG_ADD_LIBRARY)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:460 (message):
  Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
  flag.  Run "cmake --help-policy CMP0086" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/UseSWIG.cmake:702 (SWIG_ADD_SOURCE_TO_MODULE)
  APIs/java/CMakeLists.txt:11 (SWIG_ADD_LIBRARY)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/neko/Descargas/FreeLing-4.2/build

Was it the problem?