-
Notifications
You must be signed in to change notification settings - Fork 0
Trouble compiling #2
Comments
I'll need to remind myself on how to do it :). |
Sorry for the late response. I think you are on the right track using the IIRC, I did not do any special compilation tricks to get it to compile. If you have time to read and want to see how for I got with this effort take a look at KinoxKlark/pyimgui#2. This is where I was discussing with the pyimgui dev on how to get the pyimplot and pyimgui work together and how to distribute both.. |
I managed to go over the complete process on a Linux machine just now. This is the resulting demo screenshot: FYI, this is not a finished work as not all widgets and stuff of implot were ported to pyimplot. I also had doubts and open questions about how would pyimgui / pyimplot be packaged and distributed, used and/or coexist in a users python script. AFAICT, imgui/implot themselves were never meant to be used as shared libraries, something that we might want to have in case of pyimgui/pyimplot though, in order to not run into dependency issues or using different imgui code if it were embedded into pyimgui and pyimplot.. I'm not sure how far KinoxKlark has gotten with his efforts on pyimgui and maybe some of the open questions from that time are solved today; I'm afraid I do not have the time to dig deep into the pyimgui / pyimplot again. Hope that helps! |
Thanks for taking the time to document the compilation process! I've also been playing around with another imgui+implot python library that uses pybind11 instead of Cython (joruof/imviz#3). Not sure which one I'll end up using. |
Hi!
I'd love to use this project in my research, but I cannot seem to get it to compile. Configurations I've tried:
implot/cimplot.pxd:11:0: 'imgui/cimgui/ImGuiMouseButton.pxd' not found
implot-cpp/implot.h:26:10: fatal error: imgui.h: No such file or directory
implot-cpp/implot.h:26:10: fatal error: imgui.h: No such file or directory
config-cpp/py_imconfig.cpp:2:10: fatal error: plot.h: No such file or directory
implot\cimplot.pxd:11:0: 'imgui\cimgui\ImGuiMouseButton.pxd' not found
implot\cimplot.pxd:11:0: 'implot-cpp\implot.h(26): fatal error C1083: Cannot open include file: 'imgui.h': No such file or directory
If I work around the missing plot.h by unsetting PYIMGUI_CUSTOM_EXCEPTION, I still run into
'imgui.h': No such file or directory
Additionally, setup.py references 'imgui.data', but I cannot seem to find such a file or directory, where is it supposed to reside?
Would you be able to provide more up-to-date compilation instructions? Including information about which exact compiler and library versions are confirmed working? Also, which version of pyimgui should users install?
Thanks,
Erik
The text was updated successfully, but these errors were encountered: