cmusphinx / pocketsphinx

A small speech recognizer
Other
3.87k stars 713 forks source link

Cannot build both C code and Python module #342

Closed flyn-org closed 1 year ago

flyn-org commented 1 year ago

I maintain the pocketsphinx package for Fedora, and I am presently trying to package the recent 5.0.0. release.

I cannot seem to figure out how to build both pocketsphinx's C code and Python module at the same time. It seems you have to run cmake separately for each. Indeed, pocketsphinx's CMakeLists.txt file appears to have a conditional that enforces this.

Would it be possible to modify CMakeLists.txt to build both components of pocketsphinx with one cmake run?

dhdaines commented 1 year ago

Unfortunately no, this is not possible, since it is a completely different CMake configuration - in fact the Python build runs CMake from scikit-build, which adds its own custom modules.

I don't see a good reason to do this, it's possible to simply run both builds from the same script, right?

flyn-org commented 1 year ago

I kludged up a solution by moving build directories in between builds and installs. I am not sure if any other Fedora packages do this. If I find one, then I will adopt its approach.