gpt4 book ai didi

c++ - 我正在尝试安装 gameplay 游戏引擎,但遇到错误

转载 作者:太空宇宙 更新时间:2023-11-04 12:10:23 28 4
gpt4 key购买 nike

我正尝试在我的 ubuntuMATE 17.10 上安装gameplay 游戏引擎,按照以下步骤 here .在 cmake 之后,我输入 make 并得到以下错误:

/usr/bin/ld: /home/samdare/Downloads/extracts/GamePlay-master/external-deps/lib/linux/x86_64/libgameplay-deps.a(btVoronoiSimplexSolver.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/samdare/Downloads/extracts/GamePlay-master/external-deps/lib/linux/x86_64/libgameplay-deps.a(SphereTriangleDetector.o): relocation R_X86_64_32S against symbol `_ZTV22SphereTriangleDetector' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /home/samdare/Downloads/extracts/GamePlay-master/external-deps/lib/linux/x86_64/libgameplay-deps.a(trees.o): relocation R_X86_64_32S against symbol `_length_code' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
samples/browser/CMakeFiles/sample-browser.dir/build.make:745: recipe for target 'samples/browser/sample-browser' failed
make[2]: *** [samples/browser/sample-browser] Error 1
CMakeFiles/Makefile2:235: recipe for target 'samples/browser/CMakeFiles/sample-browser.dir/all' failed
make[1]: *** [samples/browser/CMakeFiles/sample-browser.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

最佳答案

GamePlay:Ubuntu 16.04 中的链接器 - amd64 可以按原样使用 GamePlay。

sudo apt install g++ cmake libglu1-mesa-dev libogg-dev libopenal-dev libgtk2.0-dev curl lib32z1-dev

git clone https://github.com/gameplay3d/GamePlay.git
cd GamePlay/
./install.sh
mkdir build && cd build/ && cmake .. && make

已创建可执行文件:

build/samples/browser/sample-browser
build/samples/racer/sample-racer
build/samples/character/sample-character
build/samples/spaceship/sample-spaceship

Ubuntu 16.04 文件似乎与 Ubuntu 17.10 - amd64 完美配合。我的结果“build/”→ gameplay-build/被上传为 gameplay-build_ubuntu16_amd64.tar.gz (240MB)。可以解压到/home/*中任意位置

链接 https://drive.google.com/file/d/1EIggScf8bGdbBCTMOpjbmKbQcWgs0tpv/view?usp=sharing

关于c++ - 我正在尝试安装 gameplay 游戏引擎,但遇到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49203141/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com