diff --git a/python/jsbsim.pxd b/python/jsbsim.pxd index 51e33ef6b..10441ad8e 100644 --- a/python/jsbsim.pxd +++ b/python/jsbsim.pxd @@ -86,7 +86,7 @@ cdef extern from "input_output/FGPropertyManager.h" namespace "JSBSim": c_FGPropertyNode* GetNode(const string& path, bool create) bool HasNode(const string& path) except +convertJSBSimToPyExc -cdef extern from "PyLog.h" namespace "JSBSim": +cdef extern from "PyLogger.h" namespace "JSBSim": cdef PyObject* FGLogger_PyClass cdef PyObject* LogLevel_PyClass cdef PyObject* LogFormat_PyClass diff --git a/python/setup.py.in b/python/setup.py.in index 37f71e750..86f01ea67 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -123,7 +123,7 @@ if 'sdist' not in dist.commands and compiler.find_library_file([library_path], else: source_file = '_jsbsim.pyx' - ext_kwargs = { 'sources': [source_file], + ext_kwargs = { 'sources': [source_file, 'PyLogger.cxx'], 'include_dirs': ['src'], 'libraries': ['JSBSim'] + link_libraries, 'library_dirs': [library_path], @@ -138,7 +138,7 @@ else: else: compile_flags = ['-D'+flag for flag in convert_CMake_list_to_Python_list('${JSBSIM_COMPILE_DEFINITIONS};NDEBUG')] - ext_kwargs = { 'sources': convert_CMake_list_to_Python_list('_jsbsim.pyx;${JSBSIM_SOURCE_FILES}'), + ext_kwargs = { 'sources': convert_CMake_list_to_Python_list('_jsbsim.pyx;PyLogger.cxx;${JSBSIM_SOURCE_FILES}'), 'libraries': link_libraries, 'include_dirs': ['src', 'src/simgear/xml'], 'extra_compile_args': compile_flags }