AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-861904

Levy's questions

Martin Hope
Levy
Asked: 2018-08-20 10:13:54 +0800 CST

使用 Irrlicht ubuntu 18.04 设置代码块:尝试编译示例;很多问题

  • 2

我想学习用 irrlicht 3d 引擎和代码块/c++ 制作游戏。我安装了代码块,我遵循了来自各种来源的 Irrlicht 说明,我目前的问题如下。

这些是在按照以下 youtube 视频中的说明尝试编译来自 irrlicht 03.CustomSceneNode main.cpp 的代码时,来自代码块的构建消息:https ://www.youtube.com/watch?v=1n9mWN60xqI :

===============================================================

Build: Debug in testing (compiler: GNU GCC Compiler)

ld cannot find -lIrrlicht

ld cannot find -lGL

ld cannot find -lGLU

ld cannot find -lIrrlicht

ld cannot find -lXxf86vn

ld cannot find -lGL

error: ld returned 1 exit status|

Build failed: 7 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

===============================================================

我不知道如何解决“ld 找不到 -lIrrlicht”的问题。Irrlicht 成立了两次。第一次从他们的网站下载,第二次通过终端上我在论坛中找到的说明(我忘了在哪里),我对它们都运行了 make 并使用视频中的说明将它们设置在代码块中。

此外,我显然缺少必要的 openGL 库或它们未正确链接,但我无法安装它们。当我尝试时,这是终端输出:

==================================================== ==============

~$ sudo apt-get install libgl-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libgl1-mesa-dev' instead of 'libgl-dev'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgl1-mesa-dev : Depends: libglvnd-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages

==================================================== ==============

我已经安装了以下库: libxxf86vm-dev libxcomposite-dev mesa-common-dev,在再次尝试使用 GL 库之前将其删除,但这并没有改变任何东西。

我想将代码块设置到可以编译示例程序的程度。

compiling dependencies code-blocks
  • 1 个回答
  • 725 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve