当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 10 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 15:45 

注册: 2009-06-10 19:59
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
先下载了个vdrift-2009-02-15-src.tar.bz2,解压后,再解压里面的bullet-2.73-sp1.tgz.然后在终端下运行
./autogen.sh
./configure(这中间安装了automake和libtool)
再接下来运行make时出现在一大堆错误:

make all-recursive
make[1]: 正在进入目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73'
Making all in src
make[2]: 正在进入目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73/src'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73/src'
Making all in Extras
make[2]: 正在进入目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73/Extras'
g++ -DHAVE_CONFIG_H -I. -I.. -g -O2 -g -O2 -Iglui -g -O2 -g -O2 -MT libglui_a-glui_spinner.o -MD -MP -MF .deps/libglui_a-glui_spinner.Tpo -c -o libglui_a-glui_spinner.o `test -f 'glui/glui_spinner.cpp' || echo './'`glui/glui_spinner.cpp
在包含自 glui/glui_internal_control.h:11 的文件中,
从 glui/glui_spinner.cpp:44:
glui/GL/glui.h:68:23: 错误: GL/glut.h:没有该文件或目录
In file included from glui/glui_internal_control.h:11,
from glui/glui_spinner.cpp:44:
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutDisplayFunc(void (*)())’:
glui/GL/glui.h:589: 错误: ‘glutDisplayFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutTimerFunc(unsigned int, void (*)(int), int)’:
glui/GL/glui.h:591: 错误: ‘::glutTimerFunc’尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutOverlayDisplayFunc(void (*)())’:
glui/GL/glui.h:592: 错误: ‘glutOverlayDisplayFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutSpaceballMotionFunc(void (*)(int, int, int))’:
glui/GL/glui.h:593: 错误: ‘glutSpaceballMotionFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutSpaceballRotateFunc(void (*)(int, int, int))’:
glui/GL/glui.h:594: 错误: ‘glutSpaceballRotateFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutSpaceballButtonFunc(void (*)(int, int))’:
glui/GL/glui.h:595: 错误: ‘glutSpaceballButtonFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutTabletMotionFunc(void (*)(int, int))’:
glui/GL/glui.h:596: 错误: ‘glutTabletMotionFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutTabletButtonFunc(void (*)(int, int, int, int))’:
glui/GL/glui.h:597: 错误: ‘glutTabletButtonFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutMenuStatusFunc(void (*)(int, int, int))’:
glui/GL/glui.h:599: 错误: ‘glutMenuStatusFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutMenuStateFunc(void (*)(int))’:
glui/GL/glui.h:600: 错误: ‘glutMenuStateFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutButtonBoxFunc(void (*)(int, int))’:
glui/GL/glui.h:601: 错误: ‘glutButtonBoxFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Master_Object::set_glutDialsFunc(void (*)(int, int))’:
glui/GL/glui.h:602: 错误: ‘glutDialsFunc’在此作用域中尚未声明
glui/GL/glui.h: In member function ‘void GLUI_Control::translate_to_origin()’:
glui/GL/glui.h:952: 错误: ‘glTranslatef’在此作用域中尚未声明
glui/GL/glui.h: At global scope:
glui/GL/glui.h:2573: 错误: ISO C++ 不允许声明无类型的‘GLUquadricObj’
glui/GL/glui.h:2573: 错误: expected ‘;’ before ‘*’ token
glui/GL/glui.h:2630: 错误: ISO C++ 不允许声明无类型的‘GLUquadricObj’
glui/GL/glui.h:2630: 错误: expected ‘;’ before ‘*’ token
glui/GL/glui.h: In member function ‘void GLUI_Translation::common_init()’:
glui/GL/glui.h:2688: 错误: ‘quadObj’在此作用域中尚未声明
In file included from glui/glui_spinner.cpp:44:
glui/glui_internal_control.h: In function ‘double GLUI_Time()’:
glui/glui_internal_control.h:43: 错误: ‘GLUT_ELAPSED_TIME’在此作用域中尚未声明
glui/glui_internal_control.h:43: 错误: ‘glutGet’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘virtual int GLUI_Spinner::mouse_up_handler(int, int, bool)’:
glui/glui_spinner.cpp:174: 错误: ‘GLUT_CURSOR_LEFT_ARROW’在此作用域中尚未声明
glui/glui_spinner.cpp:174: 错误: ‘glutSetCursor’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘virtual int GLUI_Spinner::mouse_held_down_handler(int, int, bool)’:
glui/glui_spinner.cpp:225: 错误: ‘GLUT_CURSOR_UP_DOWN’在此作用域中尚未声明
glui/glui_spinner.cpp:225: 错误: ‘glutSetCursor’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘virtual void GLUI_Spinner::draw(int, int)’:
glui/glui_spinner.cpp:291: 错误: ‘glColor3ub’在此作用域中尚未声明
glui/glui_spinner.cpp:292: 错误: ‘GL_LINE_STIPPLE’在此作用域中尚未声明
glui/glui_spinner.cpp:292: 错误: ‘glEnable’在此作用域中尚未声明
glui/glui_spinner.cpp:293: 错误: ‘glLineStipple’在此作用域中尚未声明
glui/glui_spinner.cpp:296: 错误: ‘glColor3ub’在此作用域中尚未声明
glui/glui_spinner.cpp:299: 错误: ‘GL_FRONT_AND_BACK’在此作用域中尚未声明
glui/glui_spinner.cpp:299: 错误: ‘GL_LINE’在此作用域中尚未声明
glui/glui_spinner.cpp:299: 错误: ‘glPolygonMode’在此作用域中尚未声明
glui/glui_spinner.cpp:300: 错误: ‘GL_CULL_FACE’在此作用域中尚未声明
glui/glui_spinner.cpp:300: 错误: ‘glDisable’在此作用域中尚未声明
glui/glui_spinner.cpp:301: 错误: ‘GL_QUADS’在此作用域中尚未声明
glui/glui_spinner.cpp:301: 错误: ‘glBegin’在此作用域中尚未声明
glui/glui_spinner.cpp:302: 错误: ‘glVertex2i’在此作用域中尚未声明
glui/glui_spinner.cpp:306: 错误: ‘glEnd’在此作用域中尚未声明
glui/glui_spinner.cpp:307: 错误: ‘GL_LINE_STIPPLE’在此作用域中尚未声明
glui/glui_spinner.cpp:308: 错误: ‘GL_FILL’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘virtual int GLUI_Spinner::special_handler(int, int)’:
glui/glui_spinner.cpp:316: 错误: ‘GLUT_KEY_UP’在此作用域中尚未声明
glui/glui_spinner.cpp:322: 错误: ‘GLUT_KEY_DOWN’在此作用域中尚未声明
glui/glui_spinner.cpp:329: 错误: ‘GLUT_KEY_HOME’在此作用域中尚未声明
glui/glui_spinner.cpp:332: 错误: ‘GLUT_KEY_END’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘void GLUI_Spinner::do_click()’:
glui/glui_spinner.cpp:412: 错误: ‘GLUT_ACTIVE_SHIFT’在此作用域中尚未声明
glui/glui_spinner.cpp:414: 错误: ‘GLUT_ACTIVE_CTRL’在此作用域中尚未声明
glui/glui_spinner.cpp: In member function ‘void GLUI_Spinner::do_drag(int, int)’:
glui/glui_spinner.cpp:443: 错误: ‘GLUT_ACTIVE_SHIFT’在此作用域中尚未声明
glui/glui_spinner.cpp:445: 错误: ‘GLUT_ACTIVE_CTRL’在此作用域中尚未声明
make[2]: *** [libglui_a-glui_spinner.o] 错误 1
make[2]:正在离开目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73/Extras'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/navaket/桌面/vdrift-2009-02-15/bullet-2.73'
make: *** [all] 错误 2


以下是readme里的原文,看不太懂,请高手指点~~
====Bullet====
As of SVN R2321 on 2/1/2009, bullet source is now built by the normal VDrift build method. The only step required is to un-tar the bullet source files (replace the X with whatever bullet version is included with the VDrift source distribution):
* tar zxvf bullet-X.tgz
Directions for building bullet for older VDrift versions are shown below. You can skip these.

====Bullet (old directions)====
The Bullet physics library must be manually built on versions of VDrift prior to SVN R2321 and with releases up to and including the 8/5/08 release. A preferred version of the library is included with the VDrift source distribution as a .tgz file.
On linux, bullet can be compiled like this (replace the X with whatever bullet version is included with the VDrift source distribution):
* tar zxvf bullet-X.tgz
* cd bullet-X
Then, proceed as below using either jam or cmake as your build tool:
=====Using Jam=====
* ./autogen.sh
* ./configure
* jam bulletcollision bulletmath
=====Using CMake=====
* cmake .
* make
=====Using autotools=====
* ./autogen.sh
* ./configure
* make

These steps should put the bullet libraries into a spot in the bullet-X tree that the VDrift build files are expecting.

NOTE: It is not necessary to install the bullet library on your system. In fact, installed versions of bullet may conflict with the version included with VDrift.

====SCons====
As of the 2005-10-02 release, VDrift no longer uses ./configure, make, etc. (autotools). Now the project is built with (http://scons.org/) SCons. You may want to read a little about Using SCons.

There are two ways to use SCons. The first way is to install scons on your system through your package manager, then you can use it simply by the name of the program, "scons". The second way is to use the scons-local package (included with VDrift) which will do the same thing but doesn't require that you install scons on your system. To do this, you must move the scons-local-0.96.95.tar.gz archive from tools to the root vdrift folder, un-tar the archive, and then use the ./scons.py command instead of scons.

===Get the Code===
You can get the code from a source package for a particular version, or you can get the development version.
====Source Package====
Download the latest VDrift Linux source package. All the files in the package are in a directory called vdrift-"version"-src where "version" is something like 2005-10-02.

Unpack the archive.

tar jxvf vdrift-2005-10-02-src.tar.bz2

=====Enter directory=====
Now change directories into the location of your newly created VDrift source tree.
cd vdrift-2005-10-02-src

====Development version====
You can check out the development version of VDrift from our Subversion repository.

Once you've checked out the code, enter the directory Subversion created.
cd vdrift

====Optional: Using scons-local instead of installing SCons====
If you have decided not to install SCons on your system, you can use scons-local. To set it up, do the following:

tar zxvf tools/scons-local-0.96.1.tar.gz

NOTE: Some of the following steps refer to the scons command, you should now replace that with ./scons.py.

===Compiling===
To compile VDrift, just use the scons command.
scons


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 15:50 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
那赛车的?别搞了。3D的,可能需要opengl库等。巨大。


_________________
● 鸣学


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 15:51 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 272
不如去getdeb找现成的。


_________________
● 鸣学


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 15:59 

注册: 2009-06-10 19:59
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
我在getdeb那里找不到deb包!!
能给我个下载网址吗??谢啦 :em01


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:00 
头像

注册: 2007-07-30 18:28
帖子: 22033
地址: 空气中
系统: Linux
送出感谢: 17
接收感谢: 68
没有。。。楼主不看它的文档就上。。。努力过头了。

早就改成scons了。./configure都不用。

只要
代码:
sudo apt-get build-dep torcs
————它们俩基本一致。scons然后sudo scons install即可


_________________
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:02 
头像

注册: 2007-07-30 18:28
帖子: 22033
地址: 空气中
系统: Linux
送出感谢: 17
接收感谢: 68
令人厌恶的称谓。。


_________________
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:14 

注册: 2009-06-10 19:59
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
dune 你是叫我安装新立得里的torcs吗??
呃~你说的那个scons我不太懂~~能说详细点吗??
不好意思,俺菜鸟来的~~


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:14 

注册: 2009-06-10 19:59
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
luojie-dune 写道:
令人厌恶的称谓。。

:em23


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:28 
头像

注册: 2007-07-30 18:28
帖子: 22033
地址: 空气中
系统: Linux
送出感谢: 17
接收感谢: 68
torcs和vdrift的依赖差不多,都是一类游戏。所以解决了torcs,vdrift又自带bullet/ode就够了。
终端下直接输入 scons 就自动配置,有问题自己看就好。


_________________
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 用源程序安装Vdrift遇到的问题,请高手帮忙看下~
帖子发表于 : 2009-06-11 16:33 
头像

注册: 2007-07-30 18:28
帖子: 22033
地址: 空气中
系统: Linux
送出感谢: 17
接收感谢: 68
torcs和vdrift的依赖差不多,都是一类游戏。所以解决了torcs,vdrift又自带bullet/ode就够了。
终端下直接输入 scons 就自动配置,有问题自己看就好。


_________________
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 10 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译