|
From: Bertrand C. <bco...@gm...> - 2019-04-06 16:18:34
|
Hi Ron, Le dim. 31 mars 2019 à 01:37, Ron Jensen <wi...@je...> a écrit : > I have been unable to build JSBSim for quite some time under linux: > > cmake ../JSBSim-code/ > (...) > -- Found PythonInterp: /usr/bin/python (found version "2.7.13") > -- Found Cython: /usr/bin/cython > -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found > version "2.7.13") > -- Found CxxTest: /usr/include > -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") > -- Found LSB_Release: /usr/bin/lsb_release > -- Configuring done > CMake Error at python/CMakeLists.txt:89 (add_custom_command): > Error evaluating generator expression: > > $<IF:$<BOOL:>,--config,> > > Expression did not evaluate to a known generator expression > Your version of CMake is most likely lower than 3.8 where the generator expression $<IF:,> has been introduced. > and then make: > > [ 71%] Building Python modules... > Traceback (most recent call last): > File "~/Flight/JSBSim-build/python/setup.py", line 3, in <module> > from setuptools import setup > ImportError: No module named setuptools > python/CMakeFiles/PythonJSBSim.dir/build.make:62: recipe for > target 'tests/jsbsim.so' failed > That's because the Python module "setuptools" is not installed. > I have no clue about CMake and Python. How do I fix this? I can live > without > the Python modules, but apparently there isn't a switch to turn the python > module off? > That's correct. So I have updated the JSBSim code so that the build of the Python modules is optional. The following command should be hopefully fix your problem (assuming the root directory of JSBSim is the parent directory of your build directory hence the '..' at the end of the command) : > cmake -DBUILD_PYTHON_MODULE=OFF .. > > Thanks, > > Ron > Regards, Bertrand |