![]() Registered Member ![]()
|
I'm not sure if this is the right forum for this, but I'm having difficulty compiling Krita. Linux (Debian Buster distribution) AMD64 processor. I'm following David Revoy's instructions at:
https://www.davidrevoy.com/article193/c ... x-for-cats * Set up directories fine * Got the source code from the git server fine * Installed what seemed to be all the libraries and dependencies, but I fear I missed something * Configured with cmake just fine * When I run make, it stops with this error: ... [ 66%] Linking CXX shared library krita.so /usr/bin/ld: CMakeFiles/python_module_PyKrita_krita.dir/krita/sipkritapart0.cpp.o: in function `PyInit_krita': /home/jara/krita/build/plugins/extensions/pykrita/sip/./krita/sipkritapart0.cpp:1205: undefined reference to `PyModule_Create2' collect2: error: ld returned 1 exit status make[2]: *** [plugins/extensions/pykrita/sip/CMakeFiles/python_module_PyKrita_krita.dir/build.make:154: plugins/extensions/pykrita/sip/krita.so] Error 1 make[1]: *** [CMakeFiles/Makefile2:28111: plugins/extensions/pykrita/sip/CMakeFiles/python_module_PyKrita_krita.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 $ I believe I have all relevant python libraries installed, cmake seemed to think so, anyway. But I must be missing something. Searching the internet, some people say this error crops up when linking in the dbg version of python, but I double checked and I have no dbg versions of python or any python libraries installed on my machine. Does anyone have any idea of what I might be missing? Or where a better place to ask might be? Thank you very much. Sincerely, -- Jara |
![]() KDE Developer ![]()
|
Sorry, no... The guide you're following is quite old by now. I don't use Debian myself because I need something that's more up to date, so I cannot experiment either.
What might be the case is that you have python2 and the python2 versions of pyqt and sip installed; the python2 support hasn't been maintained for some time, and we don't test it. If that's the case, we'll remove it ![]() |
![]() Registered Member ![]()
|
Is there a more up-to-date guide than Revoy's that you would recommend?
I have python3 installed, and numerous python3 libraries installed. Specifically, I have the python3 bindings for pyqt5 (python3-pyqt5 and pyqt5-dev packages) and sip (python3-sip and python3-sip-dev packages). Cmake seemed to be finding python3 fine. Why, is the 2 in PyModule_Create2 a sign that something thinks I'm trying to use python2? If so, I can see if I can safely uninstall python2 from my system without breaking any dependencies I care about and cmake/make again. I have no interest in trying to make it work with python2. -- Jara |
![]() KDE Developer ![]()
|
This is the current guide: https://docs.krita.org/en/untranslatabl ... krita.html
|
![]() Registered Member ![]()
|
That worked beautifully, thank you for the help.
![]() Sincerely, -- Jara |
Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar