设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1526|回复: 5
打印 上一主题 下一主题

[已经过期] [rUBY]继续求助 ==

[复制链接]

Lv2.观梦者

傻♂逼

梦石
0
星屑
374
在线时间
1606 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

跳转到指定楼层
1
发表于 2011-4-26 22:51:06 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
貌似说要什么tool= =求解释
D:\G3D\g3d-ruby\source>extconf
Host: i686-pc-mingw32
checking for main() in -lz... *** D:/G3D/g3d-ruby/source/extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=D:/G3D/g3d-ruby/source
        --curdir
        --ruby=C:/Ruby192/bin/ruby
        --with-SDL-dir
        --without-SDL-dir
        --with-SDL-include
        --without-SDL-include=${SDL-dir}/include
        --with-SDL-lib
        --without-SDL-lib=${SDL-dir}/lib
        --with-G3D-dir
        --without-G3D-dir
        --with-G3D-include
        --without-G3D-include=${G3D-dir}/include
        --with-G3D-lib
        --without-G3D-lib=${G3D-dir}/lib
        --with-zlib
        --without-zlib
C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to genera
te an executable file. (RuntimeError)
You have to install development tools first.
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:748:in `block in have_library'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postp
one'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'
        from C:/Ruby192/lib/ruby/1.9.1/mkmf.rb:743:in `have_library'
        from D:/G3D/g3d-ruby/source/extconf.rb:13:in `<main>'
哎呀,蛋疼什么的最有爱了

Lv2.观梦者

傻♂逼

梦石
0
星屑
374
在线时间
1606 小时
注册时间
2007-3-13
帖子
6562

烫烫烫开拓者

6
 楼主| 发表于 2011-4-28 22:45:46 | 只看该作者
thx各位,显然是RM3D……居然是OGL的蛋那个疼= =
哎呀,蛋疼什么的最有爱了
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
110
在线时间
953 小时
注册时间
2007-4-25
帖子
805
5
发表于 2011-4-27 14:09:34 | 只看该作者
link006007 发表于 2011-4-27 12:04
"probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  "

SWIG 真的很方便,比较适用于现存的 C/C++ 库 =)
不过如果是自己写的 Ruby 扩展的话还是用 mkmf 的比较多。
C/C++ 库的函数都是静态类型的,自然要做类型检测,Win32API 不也要做嘛。
[email protected]:~> repeat 1 fortune
Matz is nice, so we are nice.
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
1 小时
注册时间
2011-4-26
帖子
8
4
发表于 2011-4-27 14:04:23 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

风之塞尔达

梦石
0
星屑
50
在线时间
57 小时
注册时间
2005-10-22
帖子
2492

贵宾

3
发表于 2011-4-27 12:04:36 | 只看该作者
"probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  "
想搞3DRPGMaker吗。。
我想到了以前用一个叫做swig还是什么的东西转换C代码到可以嵌入到ruby的结构。。  他把每个函数参数都来做类型检查,真是好严谨
在程序里延续塞尔达的传说, 在画板上勾勒塞尔达的轮廓!!
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
110
在线时间
953 小时
注册时间
2007-4-25
帖子
805
2
发表于 2011-4-27 02:27:05 | 只看该作者
这货同时需要 G3D 和 SDL 的源啊。
  1. ********************************************************************
  2. * Building G3DRuby on Windows using Visual Studio 6.0:
  3. *********************************************************************
  4. 1) To link to G3D using MSVC++ 6.0, you must have MSVC Service Pack 5
  5.    (service pack 6 does not support SSE). To use SSE instructions, you
  6.    also need the Processor Pack. For more information (and links), see:
  7.    http://g3d-cpp.sourceforge.net/#downloads
  8. 2) If you don't have Ruby, download and install the Ruby installer from:
  9.    http://rubyinstaller.rubyforge.org/wiki/wiki.pl
  10. 3) Make sure Ruby and the Visual Studio bin directories are in your path
  11.    (find and run vcvars32.bat if nmake isn't in your path)
  12. 4) Choose a root folder for all projects to live in
  13. 5) Download http://prdownloads.sourceforge.net/g3d-cpp/g3d-6_10.zip?download
  14.    and http://www.libsdl.org/release/SDL-devel-1.2.10-VC6.zip
  15. 6) Unzip the G3D package into <root>\g3d-6_10
  16. 7) Unzip the SDL package into <root>\SDL-1.2.10
  17. 8) Unzip the G3DRuby source into <root>\g3d-ruby
  18. 9) Run build.bat from <root>\g3d-ruby\source
复制代码
[email protected]:~> repeat 1 fortune
Matz is nice, so we are nice.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-2-28 07:14

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表