Compilation failed under Windows in case multiple versions of Python are installed
- Dominant language
- C++
- Stars
- 119
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
find_package CMake instruction finds headers from one version of Python and library directory from another. Compilation fails with inability to find proper version of library (pythonXX.lib).
Possible workarounds:
- comment out find_package(PythonLibs 3) line in lima_linguisticprocessing/CMakeLists.txt (line 101). In this case parts of Lima depending on Python libraries wouldn't be built.
- restrict to specific version of Python in line 100 of the same file.
Contributor guide
Research direction
Start in lima_linguisticprocessing/CMakeLists.txt around lines 100–101 and inspect how find_package(PythonLibs 3) selects Python headers and libraries on Windows. Reproduce configuration with multiple Python versions installed, then verify that the selected headers and pythonXX.lib match and that compilation succeeds while Python-dependent components remain enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100