按照官方的PyInstaller手册https://pyinstaller.readthedocs.io/en/v3.5/bootloader-building.html#building-for-mac-os-x,我正在尝试构建引导加载程序。
python ./waf all
但是,出现以下错误:
'configure' finished successfully (0.447s)
'make_all' finished successfully (0.003s)
Waf: Entering directory `/Users/michaelchen/Desktop/google/Dromedary/misc/compiletest3/pyinstaller/bootloader/build/debug'
[ 1/13] Compiling src/pyi_python.c
[ 2/13] Compiling src/pyi_global.c
../../src/pyi_python.c:19:14: fatal error: 'dlfcn.h' file not found
#include <dlfcn.h> /* dlsym */
^~~~~~~~~
1 error generated.
../../src/pyi_global.c:29:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
由于我还安装了Xcode和命令行工具,因此我希望配置文件可以找到这些文件。我不熟悉macOS,也不知道如何进行操作。有想法吗?