Raspberry Pi port, piCore-15.0 is available!
curses_includes.append('/usr/local/include/ncursesw')CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti"
$ CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.6 -ltcl8.6
CPPFLAGS="-I/usr/local/include/ncursesw" CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --enable-shared --with-system-expat --with-system-ffi --with-ensurepip=yes --with-tcltk-includes='-I/usr/local/include' --with-tcltk-libs='-L/usr/local/lib -ltk8.6 -ltcl8.6
In file included from /usr/local/include/tk.h:96, from /opt/Python-3.6.9/Modules/_tkinter.c:50:/usr/local/include/X11/Xlib.h:44:10: fatal error: X11/X.h: No such file or directory 44 | #include <X11/X.h> | ^~~~~~~~~
If you haven't heard from the python3.8 maintainer, one solution is to compile your own python extension against ncurses, openssl and tk and then compile python-cryptography against that.
Did you load the *-dev extensions referenced in the earlier example - i.e. Xorg-dev, tk-dev, openssl-dev, ncurses-dev, etc?
The previous error you got about tk looking for Xlib.h means that (after you loaded Xorg-dev) python did compile against tk.
You can make an extension out of the files loaded by “sudo make install” to avoid recompiling each time you reboot.
you can make an extension out of the files loaded by “sudo make install” to avoid recompiling each time you reboot.
Code: [Select]touch mymarker
touch mymarker
Code: [Select]$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz
$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz
I compiled python3.6 in piCore-12.x - it should work in piCore-13.x, so added to the repo.
Now all you need to do is compile python-cryptography and its deps against python3.6...
pip3.6 install cryptography