我正在尝试从Windows 7迁移到8,但是glew和freeglut给了我一些问题.
我使用的说明基本如下:
1)将Lib的内容和Include\GL文件夹的内容复制到Program Files\Microsoft SDKs\Windows\[最新版本] Lib和Include\GL文件夹
2)将freeglut.dll和glew的bin文件夹的内容复制到Windows\SysWOW64 \
这使用Windows 7/VS2010(Microsoft SDK中的文件夹是v7.0A)工作正常,但在Windows 8/VS2012上,我在构建我的解决方案时遇到以下错误:
error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
Run Code Online (Sandbox Code Playgroud)
对于SDKs文件夹,在Windows 8上,最新版本是v8.0A,但是,我也尝试过使用v7.0A,获得相同的结果.但是,我注意到在Windows 7中,SDKs文件夹中有Lib和Include文件夹,但Windows 8文件夹却没有.不确定这是否重要.
有什么建议?
编辑:我用于安装的说明略微修改了这里的说明,修改是将dll复制到Windows的系统文件夹而不是每个项目输出(这似乎也没有帮助).
我正在开发的应用程序是用于大学课程,因此使用其他库可能是不可能的.
这些库的版本是2.8.0(freeglut)和1.9.0 32位(glew).
我想使用的说明,我的Synology DS209导轨安装Ruby http://wiki.joachimschuster.de/index.php/Install_Ruby_on_Rails_and_Redmine_on_DS210%2B.我已经检查了所有的先决条件(除了redmine-user,我认为这不是问题),并且rubygems和zlib软件包安装就好了ipkg.
但是,当我运行时gem,我收到以下错误:
DiskStation> gem
/opt/bin/gem: line 8: require: not found
/opt/bin/gem: line 9: require: not found
/opt/bin/gem: line 10: require: not found
/opt/bin/gem: line 12: required_version: not found
/opt/bin/gem: line 14: unless: not found
/opt/bin/gem: line 15: abort: not found
/opt/bin/gem: line 16: end: not found
/opt/bin/gem: line 21: syntax error: unexpected "("
DiskStation>
Run Code Online (Sandbox Code Playgroud)
有什么建议?
编辑:删除并重新安装rubygems显示以下内容:
DiskStation> ipkg remove -force-removal-of-dependent-packages ruby
Removing package rubygems from root...
Removing …Run Code Online (Sandbox Code Playgroud)