-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem building MRAA python docs using latest python-sphinx v1.7.6 package #911
Comments
It seems that display format of version info changed from sphinx v1.3.5 to v1.7.6 as follows:
Due to this parser written in "cmake/modules/FindSphinx.cmake" file doesn't seems to work correctly. |
Thanks @b49020 for reporting this and finding the reason. Are you up to creating a PR to fix this, now that we have the root cause? |
@alext-mkrs Sure I would like to contribute. So I did tried to fix this configuration check for sphinx v1.7.6. But when I try to build MRAA further, I got following error:
Do you have any clue for this build error? |
Maybe caused by |
I haven't built docs much to be honest, but looking at the CMakeLists.txt and that mraa2.i file in the python2 dir, this looks rather like it's not finding the autogenerated files, which are included if the DOXYGEN define is found. @b49020 could you attach a full log, including the initial CMake run? |
Below is full log:
|
Hmm, okay - so the log looks generally ok to me, nothing apparently wrong... No further ideas at this point, sorry. Generally the docs are being build-tested in our CI, so there probably is some peculiarity w.r.t. the tool versions you have, but I can't think of anything specific. Are these files created in the build dir at all, could you check? |
Version of CMake? I believe the latest couple versions change some of the python target generation. Possible that the target dependencies are not creating the .i files prior to the swing call that uses them. |
@pylbert |
@alext-mkrs No these *.i files aren't created in build directory. |
Try make the doxygen docs first and make sure you wiped the build/ dir completely, BUILDDOCS is a bit fragile and there may be an order issue somewhere? Also install graphviz to get dot, I'm not sure it'll do much but it's never been tested without. Try build this target for example: You should then get a file in build/src/gpio_class_doc.i |
@arfoll Thanks for the suggestion. It seems to be order/dependency issue only. Using following commands, I am able to build successfully:
Do you have any idea to resolve this order issue? |
Previously we used SWIG_MODULE_<name>_REAL_NAME to have the doc interfaces depend on. However that target is preceeded by the SWIG generation in our case gen_python2-mraa_mraa2PYTHON_wrap. Typically this is hidden because a parralel build has so many other deps this can be hidden but this is the correct path. Fixes eclipse#911 Signed-off-by: Brendan Le Foll <[email protected]>
Hi,
I have Debian buster running on my dragonboard 410c with latest python-sphinx v1.7.6 package installed. Following is sequence of instructions and error message observed:
Error message while configuration:
Any help regarding above issue is much appreciated.
Regards,
Sumit
The text was updated successfully, but these errors were encountered: