- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我有一个刚刚安装的 ubuntu 11.10。
我遵循 this 中的第一个答案问题。我安装了:暴饮暴食3freeglut3-dev
igor@ubuntu:~$ sudo apt-get install freeglut3
[sudo] password for igor:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
freeglut3
0 upgraded, 1 newly installed, 0 to remove and 253 not upgraded.
Need to get 77.5 kB of archives.
After this operation, 315 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main freeglut3 i386 2.6.0-1ubuntu2 [77.5 kB]
Fetched 77.5 kB in 0s (82.9 kB/s)
Selecting previously deselected package freeglut3.
(Reading database ... 125550 files and directories currently installed.)
Unpacking freeglut3 (from .../freeglut3_2.6.0-1ubuntu2_i386.deb) ...
Setting up freeglut3 (2.6.0-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
igor@ubuntu:~$ sudo apt-get install freeglut3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libice-dev libkms1
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb1-dev libxdmcp-dev libxext-dev libxt-dev mesa-common-dev
x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
xorg-sgml-doctools xtrans-dev
The following NEW packages will be installed:
freeglut3-dev libdrm-dev libgl1-mesa-dev libglu1-mesa-dev libice-dev libkms1
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb1-dev libxdmcp-dev libxext-dev libxt-dev mesa-common-dev
x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev
xorg-sgml-doctools xtrans-dev
0 upgraded, 22 newly installed, 0 to remove and 253 not upgraded.
Need to get 5,673 kB of archives.
After this operation, 23.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libkms1 i386 2.4.26-1ubuntu1 [9,654 B]
Get:2 http://us.archive.ubuntu.com/ubuntu/ oneiric/main xorg-sgml-doctools i386 1:1.8-2 [10.9 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ oneiric/main x11proto-core-dev i386 7.0.22-1 [299 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libxau-dev i386 1:1.0.6-3 [10.2 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libxdmcp-dev i386 1:1.1.0-3 [43.9 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ oneiric/main x11proto-input-dev i386 2.0.2-2ubuntu1 [69.0 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ oneiric/main x11proto-kb-dev i386 1.0.5-2 [27.6 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ oneiric/main xtrans-dev i386 1.2.6-2 [82.9 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libpthread-stubs0 i386 0.3-2.1 [3,270 B]
Get:10 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libpthread-stubs0-dev i386 0.3-2.1 [2,490 B]
Get:11 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libxcb1-dev i386 1.7-3 [77.9 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libx11-dev i386 2:1.4.4-2ubuntu1 [3,252 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libdrm-dev i386 2.4.26-1ubuntu1 [123 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ oneiric/main mesa-common-dev i386 7.11-0ubuntu3 [236 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ oneiric/main x11proto-xext-dev i386 7.2.0-3 [253 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libxext-dev i386 2:1.3.0-3 [141 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libgl1-mesa-dev i386 7.11-0ubuntu3 [9,248 B]
Get:18 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libglu1-mesa-dev i386 7.11-0ubuntu3 [189 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libice-dev i386 2:1.0.7-2 [128 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libsm-dev i386 2:1.2.0-2 [86.4 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ oneiric/main libxt-dev i386 1:1.1.1-2 [472 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ oneiric/main freeglut3-dev i386 2.6.0-1ubuntu2 [146 kB]
Fetched 5,673 kB in 16s (336 kB/s)
Selecting previously deselected package libkms1.
(Reading database ... 125555 files and directories currently installed.)
Unpacking libkms1 (from .../libkms1_2.4.26-1ubuntu1_i386.deb) ...
Selecting previously deselected package xorg-sgml-doctools.
Unpacking xorg-sgml-doctools (from .../xorg-sgml-doctools_1%3a1.8-2_i386.deb) ...
Selecting previously deselected package x11proto-core-dev.
Unpacking x11proto-core-dev (from .../x11proto-core-dev_7.0.22-1_i386.deb) ...
Selecting previously deselected package libxau-dev.
Unpacking libxau-dev (from .../libxau-dev_1%3a1.0.6-3_i386.deb) ...
Selecting previously deselected package libxdmcp-dev.
Unpacking libxdmcp-dev (from .../libxdmcp-dev_1%3a1.1.0-3_i386.deb) ...
Selecting previously deselected package x11proto-input-dev.
Unpacking x11proto-input-dev (from .../x11proto-input-dev_2.0.2-2ubuntu1_i386.deb) ...
Selecting previously deselected package x11proto-kb-dev.
Unpacking x11proto-kb-dev (from .../x11proto-kb-dev_1.0.5-2_i386.deb) ...
Selecting previously deselected package xtrans-dev.
Unpacking xtrans-dev (from .../xtrans-dev_1.2.6-2_i386.deb) ...
Selecting previously deselected package libpthread-stubs0.
Unpacking libpthread-stubs0 (from .../libpthread-stubs0_0.3-2.1_i386.deb) ...
Selecting previously deselected package libpthread-stubs0-dev.
Unpacking libpthread-stubs0-dev (from .../libpthread-stubs0-dev_0.3-2.1_i386.deb) ...
Selecting previously deselected package libxcb1-dev.
Unpacking libxcb1-dev (from .../libxcb1-dev_1.7-3_i386.deb) ...
Selecting previously deselected package libx11-dev.
Unpacking libx11-dev (from .../libx11-dev_2%3a1.4.4-2ubuntu1_i386.deb) ...
Selecting previously deselected package libdrm-dev.
Unpacking libdrm-dev (from .../libdrm-dev_2.4.26-1ubuntu1_i386.deb) ...
Selecting previously deselected package mesa-common-dev.
Unpacking mesa-common-dev (from .../mesa-common-dev_7.11-0ubuntu3_i386.deb) ...
Selecting previously deselected package x11proto-xext-dev.
Unpacking x11proto-xext-dev (from .../x11proto-xext-dev_7.2.0-3_i386.deb) ...
Selecting previously deselected package libxext-dev.
Unpacking libxext-dev (from .../libxext-dev_2%3a1.3.0-3_i386.deb) ...
Selecting previously deselected package libgl1-mesa-dev.
Unpacking libgl1-mesa-dev (from .../libgl1-mesa-dev_7.11-0ubuntu3_i386.deb) ...
Selecting previously deselected package libglu1-mesa-dev.
Unpacking libglu1-mesa-dev (from .../libglu1-mesa-dev_7.11-0ubuntu3_i386.deb) ...
Selecting previously deselected package libice-dev.
Unpacking libice-dev (from .../libice-dev_2%3a1.0.7-2_i386.deb) ...
Selecting previously deselected package libsm-dev.
Unpacking libsm-dev (from .../libsm-dev_2%3a1.2.0-2_i386.deb) ...
Selecting previously deselected package libxt-dev.
Unpacking libxt-dev (from .../libxt-dev_1%3a1.1.1-2_i386.deb) ...
Selecting previously deselected package freeglut3-dev.
Unpacking freeglut3-dev (from .../freeglut3-dev_2.6.0-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Setting up libkms1 (2.4.26-1ubuntu1) ...
Setting up xorg-sgml-doctools (1:1.8-2) ...
Setting up x11proto-core-dev (7.0.22-1) ...
Setting up libxau-dev (1:1.0.6-3) ...
Setting up libxdmcp-dev (1:1.1.0-3) ...
Setting up x11proto-input-dev (2.0.2-2ubuntu1) ...
Setting up x11proto-kb-dev (1.0.5-2) ...
Setting up xtrans-dev (1.2.6-2) ...
Setting up libpthread-stubs0 (0.3-2.1) ...
Setting up libpthread-stubs0-dev (0.3-2.1) ...
Setting up libxcb1-dev (1.7-3) ...
Setting up libx11-dev (2:1.4.4-2ubuntu1) ...
Setting up libdrm-dev (2.4.26-1ubuntu1) ...
Setting up mesa-common-dev (7.11-0ubuntu3) ...
Setting up x11proto-xext-dev (7.2.0-3) ...
Setting up libxext-dev (2:1.3.0-3) ...
Setting up libgl1-mesa-dev (7.11-0ubuntu3) ...
Setting up libglu1-mesa-dev (7.11-0ubuntu3) ...
Setting up libice-dev (2:1.0.7-2) ...
Setting up libsm-dev (2:1.2.0-2) ...
Setting up libxt-dev (1:1.1.1-2) ...
Setting up freeglut3-dev (2.6.0-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
现在我尝试安装 libglew1.5 和 libglew1.5-dev 等。但是:
$ sudo apt-get install libglew1.5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libglew1.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 251 not upgraded.
我尝试从这个答案编译示例:
#include < GL/glew.h >
#include < GL/glut.h >
#include < GL/gl.h >
#include < GL/glu.h >
#include < GL/glext.h >
GLenum err = glewInit();
if (GLEW_OK != err)
{
fprintf(stderr, "Error %s\n", glewGetErrorString(err));
exit(1);
}
fprintf(stdout, "Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
if (GLEW_ARB_vertex_program)
fprintf(stdout, "Status: ARB vertex programs available.\n");
if (glewGetExtension("GL_ARB_fragment_program"))
fprintf(stdout, "Status: ARB fragment programs available.\n");
if (glewIsSupported("GL_VERSION_1_4 GL_ARB_point_sprite"))
fprintf(stdout, "Status: ARB point sprites available.\n");
编译错误
$ g++ -lglut -lGL -lGLU -lGLEW example.cpp -o examp
example.cpp:1:23: fatal error: GL/glew.h : No such file or directory
compilation terminated.
我在哪里可以找到安装用于开发的 opengl 库的普通教程?对 OpenGL ES 必不可少...
最佳答案
去掉<>里面的空格就可以编译了。所以不要写 < GL/glew.h >
写<GL/glew.h>
关于c++ - 在 Ubuntu 11.10 中安装所有用于开发的 OpenGL 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8353478/
我在为 MacOSX 构建的独立包中添加 DMG 背景的自定义图标时遇到问题。我在项目的根目录中添加了一个包。正在从中加载自定义图标,但没有加载 DMG 背景图标。我正在使用 Java fx 2.2.
Qt for Symbian 和 Qt for MeeGo 有什么区别?我知道 Qt 是一个交叉编译平台。这是否意味着如果我使用来自 Qt 的库,完全相同的库可以在所有支持 Qt 的设备(例如 Sym
我正在尝试使用 C# .NET 3.5/4.0 务实地运行 SQL Server 数据库的备份。我已经找到了如何完成此操作,但是我似乎找不到用于备份的命名空间库。 我正在寻找 Microsoft.Sq
我最近在疯狂学习 Java,但我通常是一名 .NET 开发人员。 (所以请原谅我的新手问题。) 在 .Net 中,我可以在不使用 IIS 的情况下开发 ASP.Net 页面,因为它有一个简化的 Web
这post仅当打印命令中有字符串时才有用。现在我有大量的源代码,其中包含一条声明,例如 print milk,butter 应该格式化为 print(milk,butter) 用\n 捕获行尾并不成功
所以我的问题是: https://gist.github.com/panSarin/4a221a0923927115584a 当我保存这个表格时,我收到了标题中的错误 NoMethodError (u
如何让 Html5 音频在点击时播放声音? (ogg 用于 Firefox 等浏览器,mp3 用于 chrome 等浏览器) 到目前为止,我可以通过 onclick 更改为单个文件类型,但我无法像在普
如果it1和it2有什么区别? std::set s; auto it1 = std::inserter(s, s.begin()); auto it2 = std::inserter(s, s.en
4.0.0 com.amkit myapp SpringMVCFirst
我目前使用 Eclipse 作为其他语言的 IDE,而且我习惯于不必离开 IDE 做任何事情 - 但是我真的很难为纯 ECMAScript-262 找到相同或类似的设置。 澄清一下,我不是在寻找 DO
我想将带有字符串数组的C# 结构发送到C++ 函数,该函数接受void * 作为c# 结构和char** 作为c# 结构字符串数组成员。 我能够将结构发送到 c++ 函数,但问题是,无法从 c++ 函
我正在使用动态创建的链接: 我想为f:param附加自定义转换器,以从#{name}等中删除空格。 但是f:param中没有转换器
是否可以利用Redis为.NET创建后写或直写式缓存?理想情况下,透明的高速缓存是由单个进程写入的,并且支持从数据库加载丢失的数据,并每隔一段时间持久保存脏块? 我已经搜查了好几个小时,也许是goog
我正在通过bash执行命令的ssh脚本。 FILENAMES=( "export_production_20200604.tgz" "export_production_log_2020060
我需要一个正则表达式来出现 0 到 7 个字母或 0 到 7 个数字。 例如:匹配:1234、asdbs 不匹配:123456789、absbsafsfsf、asf12 我尝试了([a-zA-Z]{0
我有一个用于会计期间的表格,该表格具有期间结束和开始的开始日期和结束日期。我使用此表来确定何时发生服务交易以及何时在查询中收集收入,例如... SELECT p.PeriodID, p.FiscalY
我很难为只接受字符或数字的 Laravel 构建正则表达式验证。它是这样的: 你好<-好的 123 <- 好的 你好123 <-不行 我现在的正则表达式是这样的:[A-Za-z]|[0-9]。 reg
您实际上会在 Repeater 上使用 OnItemDataBound 做什么? 最佳答案 “此事件为您提供在客户端显示数据项之前访问数据项的最后机会。引发此事件后,数据项将被清空,不再可用。” ~
我有一个 fragment 工作正常的项目,我正在使用 jeremyfeinstein 的 actionbarsherlock 和滑动菜单, 一切正常,但是当我想自定义左侧抽屉列表单元格时,出现异常
最近几天,我似乎平均分配时间在构建我的第一个应用程序和在这里发布问题!! 这是我的第一个应用程序,也是我们的设计师完成的第一个应用程序。我试图满足他所做的事情的外观和感觉,但我认为他没有做适当的事情。
我是一名优秀的程序员,十分优秀!