编译stepmania4.0 beta 错误日志

内核编译和嵌入式产品的设计与开发
回复
chpn
帖子: 415
注册时间: 2007-02-28 11:33

编译stepmania4.0 beta 错误日志

#1

帖子 chpn » 2009-04-08 16:09

在这做个笔记,日后有用,方便其它同学编译参考
一 、onfigure
1.1
checking for glPushMatrix in -lGL... no
configure: error: No OpenGL library could be found.
解决

代码: 全选

sudo apt-get install  libglu1-mesa-dev
1.2
checking for gluGetString in -lGLU... no
configure: error: No GLU library could be found.
解决

代码: 全选

sudo apt-get install libgl1-mesa-dev
1.3
checking for ogg_stream_init in -logg... no
checking for vorbis_comment_add in -lvorbis... no
checking for ov_open in -lvorbisfile... no
Not all vorbis libraries found.
checking for ov_open in -livorbisfile... no
configure: error: A working installation of Ogg Vorbis could not be found. Vorbis
support is strongly recommended. If you really want to compile without it, pass
the "--without-vorbis" flag to configure
解决

代码: 全选

sudo apt-get install libvorbis-dev

1.4
checking for mad_synth_init in -lmad... no
configure: error: A working installation of MAD could not be found, which is
required for MP3 support. If you really want to compile without MP3 support,
pass the "--without-mp3" flag to configure.
解决

代码: 全选

 sudo apt-get install libmad0-dev
二、编译
2.1
StdString.h:223: 错误: ‘strlen’在此作用域中尚未声明
In file included from Preference.h:6,
from PrefsManager.h:6,
from ScreenOptionsMasterPrefs.cpp:3:
EnumHelper.h: At global scope:
EnumHelper.h:54: 错误: ‘auto_ptr’未声明
EnumHelper.h:54: 错误: expected ‘,’ or ‘...’ before ‘<’ token
解决

代码: 全选

在global.h 59行 中添加
#include <memory>
#include <string.h>
#include <memory.h>

2.2
ScreenOptionsMasterPrefs.cpp:148: 错误: 显式特例化不能有存储类型
ScreenOptionsMasterPrefs.cpp:148: error: explicit template specialization cannot have a storage class

代码: 全选

错误:显式特例化不能有存储类型
但是任何一个用低版本gcc写的软件 ,在用高版本gcc编译安装的时候出现错误 ,都可以通过修改源码改正 错误
把那个static 去掉,,,
#模板类中,如果模板那个参数类型已经指定(在函数声明实现的时候),必须把声明和实现放在一个文件中,这个时候把函数声明为static会冲突
#如果是一个一般的模板类,声明和定义可以分开,这个是到链接时候才知道类型,把函数声明为static不冲突

130行 static void MovePref<bool>( int &iSel, bool bToSel, const ConfOption *pConfOption )
改为                  void MovePref<bool>( int &iSel, bool bToSel, const ConfOption *pConfOption )

2.3
g++ -DHAVE_CONFIG_H -I. -fno-exceptions -finline-limit=300 -Wall -W -Wno-unused -Wno-switch -O3 -MT global.o -MD -MP -MF .deps/global.Tpo -c -o global.o global.cpp
global.cpp:22: 错误: expected initializer before ‘sm_crash’

代码: 全选

去掉 global.cpp 22行中的 NORETURN 
头像
独行猫儿
帖子: 202
注册时间: 2009-02-25 18:07

Re: 编译stepmania4.0 beta 错误日志

#2

帖子 独行猫儿 » 2013-12-11 12:38

今天编译过程中遇到了

代码: 全选

In file included from libtomcrypt/src/headers/tomcrypt.h:66:0,
                 from CryptHelpers.h:6,
                 from CryptHelpers.cpp:2:
libtomcrypt/src/headers/tomcrypt_cfg.h:130:6: error: #error You must specify a word size as well as endianess in tomcrypt_cfg.h
make[2]: *** [stepmania-CryptHelpers.o] Error 1
make[2]: Leaving directory `/home/pi/src/stepmania-tip/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pi/src/stepmania-tip/src'
make: *** [all-recursive] Error 1
不知道怎么办
<!--不再参与任何形式的讨论-->
回复