当前时区为 UTC + 8 小时



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

注册: 2009-06-10 19:59
帖子: 9
送出感谢: 0 次
接收感谢: 0 次
我是ubuntu新手,看到网上介绍Vdrift这款游戏不错,但找不到DEB,自己下载了个源文件安装下,出现下面N多问题~~
我先下载了个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里的原文,看不太懂,请高手指点~~
VDrift
2009-02-15
Linux source release notes
by Joe Venzon
http://www.vdrift.net

The most up-to-date version of these instructions can be found at the following URL:
http://wiki.vdrift.net/Compiling

===Prerequisites===
Make sure you have all the required libraries and build tools. Make sure you also have the development files for each of the libraries.

The required libraries include:

* libsdl - Simple Direct Media Layer
* libglew - OpenGL extension utilities
* sdl-gfx - Graphics drawing primitives library for SDL
* sdl-image - Image file loading library for SDL
* sdl-net - Low-level network library for SDL
* vorbisfile - File loading library for the ogg vorbis format
* libvorbis-dev - The Vorbis General Audio Compression Codec

Your Linux distribution may have different package names and/or bundled differently. The list above should give enough information to search for applicable packages within your distribution's package manager.

For Ubuntu the packages required are:
libsdl-gfx1.2
libsdl-gfx1.2-dev
libsdl-image1.2
libsdl-image1.2-dev
libsdl-net1.2
libsdl-net1.2-dev
libvorbisfile3
libvorbis-dev
libglew-dev

====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

====Options====
You may need to use one or more compile options. To compile with optimization for a certain platform, you can use the "arch" option.
scons arch=a64
Compiling VDrift in "release" mode will turn off debugging options, and enable more compiler optimizations. VDrift runs much more quickly in release mode.
scons release=1
NOTE: These options are probably best left off the first time you compile. If you have problems compiling or running VDrift, it is easier to debug with them off. Once you verify that VDrift is compiling, then add these to improve performance.

===Installing===
VDrift does not need to be installed to work and you can run it from the folder where you compiled it. If you do want to install, use the SCons build target "install". This command must be run as root.
scons install

NOTE: The scons install process hasn't been maintained for several releases and may fail to install needed datafiles. If scons install doesn't result in a working installation, manually re-copy the data files to the installed destination folder.

====Installation Options====
You can change the installation prefix. By default, VDrift is installed to /usr/share/games/vdrift, but if you wanted it to go in /usr/local/share/games/vdrift, you can change the "prefix" setting.
scons install prefix=/usr/local

NOTE: There are many more build and install options, see the Using SCons page for more information.


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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