尝试在MacOS上从源代码构建Panda3D时出现问题

时间:2019-03-28 02:37:28

标签: python c++ command-line homebrew panda3d

按照GitHub页面上有关Panda3D(从源代码构建)的说明进行操作。

Version: 1.10.3
Platform: macosx-10.14-x86_64
Using Python 2.7
Target OS: darwin
Target arch: x86_64
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
WARNING: Could not locate pkg-config package gtk+-2.0, excluding from build
Removing file built/Frameworks/Cg.framework/Cg
Generating dependencies...
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/p3dcparse
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stub
WARNING: file depends on Python but is not in an ABI-specific directory: built/bin/deploy-stubw
[  2%] Linking static library built/tmp/libp3cppParser.a
libtool: object: built/tmp/p3cppParser_composite1.o malformed object (unknown load command 1)
libtool: object: built/tmp/p3cppParser_composite2.o malformed object (unknown load command 1)
libtool: object: built/tmp/p3cppParser_cppBison.o malformed object (unknown load command 1)
Storing dependency cache.
Elapsed Time: 1 sec
The following command returned a non-zero value: libtool -static -o built/tmp/libp3cppParser.a built/tmp/p3cppParser_composite1.o built/tmp/p3cppParser_composite2.o built/tmp/p3cppParser_cppBison.o

我已经尝试删除构建的目录并从头开始,但是编译不正确。 但是,我收到另一个似乎更有趣的错误。

panda3d euler@mac $  python makepanda/makepanda.py --everything --installer --osxtarget 10.14
Version: 1.10.3
Platform: macosx-10.14-x86_64
Using Python 2.7
Target OS: darwin
Target arch: x86_64
WARNING: Could not locate thirdparty package fftw, excluding from build
WARNING: Could not locate thirdparty package gles, excluding from build
WARNING: Could not locate thirdparty package gles2, excluding from build
WARNING: Could not locate thirdparty package egl, excluding from build
Couldn't find library libpython2.7
ERROR: Could not locate thirdparty package python in specified directory, aborting build
Storing dependency cache.
Elapsed Time: 0 sec

Build terminated.

我已经升级了Homebrew,更新了Xcode命令行工具,并重新安装了Python 2。https://github.com/panda3d/panda3d似乎不起作用

运行

/opt/local/bin/libtool

给我。

我想是帮助

0 个答案:

没有答案