executable

Loading executable or executing a library

戏子无情 提交于 2020-12-06 12:25:06
问题 There is a large number of questions on SO about how to execute a library or dynamically load an executable. As far as I can tell, all the answers come down to: compile your executable as position-independent code and load it with dlopen . This worked great --- and still works great on macOS --- until a recent change in glibc, which explicitly disabled dlopen ing PIEs. This change is now in the current version of glibc (2.30) on ArchLinux, for example, and trying to dlopen a position

Loading executable or executing a library

丶灬走出姿态 提交于 2020-11-29 09:29:05
问题 There is a large number of questions on SO about how to execute a library or dynamically load an executable. As far as I can tell, all the answers come down to: compile your executable as position-independent code and load it with dlopen . This worked great --- and still works great on macOS --- until a recent change in glibc, which explicitly disabled dlopen ing PIEs. This change is now in the current version of glibc (2.30) on ArchLinux, for example, and trying to dlopen a position

Pyinstaller

旧巷老猫 提交于 2020-11-02 06:44:00
1、安装PyInstaller PyInstaller的作用如标题所说,首先需要下载PyInstaller和UPX,UPX是用来压缩exe的,点击超链接下载吧,目前稳定版本是1.3,注意选择你使用的操作系统。如在Windows下,将下载解压后的upx.exe放到PyInstaller解压后的文件夹内。设PyInstaller的文件夹为D:\PyInstaller,下同。命令行下进入D:\PyInstaller,运行Configure.py,应该看到如下信息: I: computing EXE_dependencies I: Finding TCL/TK... I: found TCL/TK version 8.5 I: testing for Zlib... I: ... Zlib available I: Testing for ability to set icons, version resources... I: ... resource update available I: Testing for Unicode support... I: ... Unicode available I: testing for UPX... I: ...UPX available I: computing PYZ dependencies... 不能出现开头为E(Error)的信息