View Single Post
Old 11-16-2015, 12:24 PM   #30
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,374
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mapreri View Post
Actually the problem is that sigil has a buggy FindPythonLibs.cmake that is only able to discover libpython3.4m.so (or whatever) only amd64 and i386. In Debian we do multiarch, so libraries are in /usr/lib/<GNU arch triplet>, e.g. for arm64 is '/usr/lib/aarch64-linux-gnu/libpython3.4m.so'. Anyway, I made up a simple patch for that and seems everything builds now. I'm not sure if this is the correct approach, once I convince myself it is I'll open a PR
Please note that there are cmake instuctions that can be used to specify the exact libpython and python include files you want sigil to link against. These are documented in the BuildingOnLinux document(s) in the docs directory.

I already modified the FindPythonLibs.cmake file to include the two main multi-arch <GNU arch triplet> locations. It wasn't finding ANY of the distro-installed libpythons prior to that. If we can beef up that cmake file to include even more architectures, I'd be happy to incorporate those changes into the original source--when you're ready to make a pull request.

Last edited by DiapDealer; 11-16-2015 at 12:26 PM.
DiapDealer is offline   Reply With Quote