[问题]怎么编译源码?没有configure

重复贴和参考价值不大的帖子,版主维护
回复
头像
hellojinjie
帖子: 1144
注册时间: 2007-09-14 21:03
来自: 浙江
送出感谢: 0
接收感谢: 0

[问题]怎么编译源码?没有configure

#1

帖子 hellojinjie » 2007-11-18 20:29

我下了个游戏但不知道怎么编译,里面没有configure文件,不能./configure && make makee installl
random notes about linux compilation:

0) If you're gentoo user, try ebuild located at
http://bugs.gentoo.org/show_bug.cgi?id=172772

1) This game must be built with scons build system, no matter you like it or not. You
have no choice. Autotools & family is stupid crap and I hope it'll die soon.

2) if you have some cheap audio hardware without hardware mixer, ALSA project
might help you. Just put this lines into your ~/.openalrc or /etc/openalrc :

(define devices '(alsa))
(define speaker-num 2)
(define alsa-out-device 'default')
(define sampling-rate 44100)

usually "alutInit: There was an error opening the ALC device" error message
indicates such problems.

3) build requirements (you need development packages for this libraries too,
consult your distro's documentation for details):

`) g++ (at least 3.x, 4.x recommended)
a) SDL >= 1.2.10 (you can use any version lower down to 1.2.5.
dont report bugs if you do so)
b) SDL_image (PNG support required)
c) openal
d) libvorbisfile, libvorbis and family
e) sigc++ 2.x (1.x is not supported)
f) expat - XML parsing library
g) zlib

4) you could add something like this in 'options.cache' file
(located in trunk/ directory):

CCFLAGS = ' -O -march=YOUR_CPU -mtune=YOUR_CPU '
CXXFLAGS = ' -O -march=YOUR_CPU -mtune=YOUR_CPU '
这是readme文件

-rw-r--r-- 1 jj jj 13186 Oct 1 19:54 ChangeLog
-rw-r--r-- 1 jj jj 53994 Aug 13 00:13 Doxyfile
-rw-r--r-- 1 jj jj 17988 Sep 20 2006 LICENSE
-rw-r--r-- 1 jj jj 1180 Jul 27 12:03 README-en.txt
-rw-r--r-- 1 jj jj 1609 Jul 27 13:56 README-fr.txt
-rw-r--r-- 1 jj jj 1350 Aug 23 10:51 README-linux.txt
-rw-r--r-- 1 jj jj 1251 Jul 27 12:03 README-ru.txt
-rw-r--r-- 1 jj jj 3514 Sep 4 13:07 SConscript
-rw-r--r-- 1 jj jj 7877 Sep 19 16:46 SConstruct
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 ai
drwxr-xr-x 3 jj jj 4096 Oct 5 15:37 build
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 controls
drwxr-xr-x 8 jj jj 4096 Oct 5 15:37 data
-rw-r--r-- 1 jj jj 110 May 24 16:23 donate.url
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 fann
-rw-r--r-- 1 jj jj 85 May 24 16:23 homepage.url
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 math
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 menu
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 mrt
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 net
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 objects
-rw-r--r-- 1 jj jj 93 May 24 16:23 project_page.url
drwxr-xr-x 4 jj jj 4096 Oct 5 15:38 sdlx
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 sound
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 src
drwxr-xr-x 2 jj jj 4096 Oct 5 15:33 tmx
这是解压后的文件和文件夹
Say hello to everyday!
PhoenixJ
帖子: 1488
注册时间: 2007-08-09 3:33
系统: Windows 12.04
送出感谢: 2 次
接收感谢: 1 次

#2

帖子 PhoenixJ » 2007-11-18 22:50

1) This game must be built with scons build system, no matter you like it or not. You
have no choice. Autotools & family is stupid crap and I hope it'll die soon.
头像
hellojinjie
帖子: 1144
注册时间: 2007-09-14 21:03
来自: 浙江
送出感谢: 0
接收感谢: 0

#3

帖子 hellojinjie » 2007-11-19 13:58

PhoenixJ 写了:1) This game must be built with scons build system, no matter you like it or not. You
have no choice. Autotools & family is stupid crap and I hope it'll die soon.
似乎英语不好,在linux里就寸步难行。。。。
Say hello to everyday!
回复

回到 “归档贴”