Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old May 17, 2011, 05:07   #1
Ravenheart87
Rookie
 
Join Date: May 2011
Age: 31
Posts: 4
Ravenheart87 is on a distinguished road
Compiling Z+Angband

Hi everyone!

When I heard about Z+Angband a few days ago, I downloaded it for windows in the blink of an eye. Now I'm sitting at my Arch Linux in the student hostel, and since Z+Angband is not yet included in the User Repository, I have to compile.
Can anyone tell me, what should I do? So far I downloaded the .tar.gz, extracted it to a folder, and tried ./configure && make && make install. Too bad that id dies with an error message. Here is the config.log:


Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

, which wasted by Zangband configure 0
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = asgard
uname -m = i686
uname -r = 2.6.38-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue May 10 06:36:08 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2445: checking for gcc
configure:2461: found /usr/bin/gcc
configure:2472: result: gcc
configure:2701: checking for C compiler version
configure:2710: gcc --version >&5
gcc (GCC) 4.6.0 20110513 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2721: $? = 0
configure:2710: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/src/gcc-4.6-20110513/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --disable-multilib --disable-libstdcxx-pch --enable-checking=release
Thread model: posix
gcc version 4.6.0 20110513 (prerelease) (GCC) 
configure:2721: $? = 0
configure:2710: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2721: $? = 1
configure:2710: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2721: $? = 1
configure:2741: checking whether the C compiler works
configure:2763: gcc    conftest.c  >&5
conftest.c:4:25: warning: missing terminating " character [enabled by default]
conftest.c:5:1: error: expected identifier or '(' before numeric constant
conftest.c:8:1: warning: missing terminating " character [enabled by default]
conftest.c:8:1: error: missing terminating " character
conftest.c:9:24: warning: missing terminating " character [enabled by default]
conftest.c:13:1: warning: missing terminating " character [enabled by default]
conftest.c:13:1: error: missing terminating " character
configure:2767: $? = 1
configure:2805: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Zangband"
| #define PACKAGE_TARNAME "zangband"
"3#define PACKAGE_VERSION "0
"3#define PACKAGE_STRING "Zangband 0
| #define PACKAGE_BUGREPORT "bugs@zangband.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2810: error: in `/home/raven/Build/zang/ZPlusAngband_033beta_src':
configure:2812: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GAMEGROUP='games'
GREP=''
GTK_CONFIG=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='bugs@zangband.org'
PACKAGE_NAME='Zangband'
'3CKAGE_STRING='Zangband 0
PACKAGE_TARNAME='zangband'
PACKAGE_URL=''
'3CKAGE_VERSION='0
PATH_SEPARATOR=':'
SHELL='/bin/sh'
TK_PORT=''
XMKMF=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
cygwin=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "Zangband"
#define PACKAGE_TARNAME "zangband"
"3efine PACKAGE_VERSION "0
"3efine PACKAGE_STRING "Zangband 0
#define PACKAGE_BUGREPORT "bugs@zangband.org"
#define PACKAGE_URL ""

configure: exit 77
What am I doing wrong? Do I need some package that's missing? Or am I simply blind to find something obvious?
Ravenheart87 is offline   Reply With Quote
Old May 17, 2011, 05:16   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,162
Donated: $60
Nick is on a distinguished road
I would try the quick and dirty method:
Code:
cd src
make -f Makefile.std
and then copy the binary up to the top directory and run it from there.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 17, 2011, 05:33   #3
Ravenheart87
Rookie
 
Join Date: May 2011
Age: 31
Posts: 4
Ravenheart87 is on a distinguished road
Thanks, I think I'm one step forward now. It starts, goes for a while, then halts with the following message (and this is what I get whenever restart it):


Code:
make: *** No rule to make target `zborg1.h', needed by `zborg1.o'.  Stop.
Ravenheart87 is offline   Reply With Quote
Old May 17, 2011, 13:57   #4
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,162
Donated: $60
Nick is on a distinguished road
I just verified that configure followed by make (in the top level directory) works for me in Ubuntu 10.04. make install fails completely, but that's OK - you can just run ./zangband and it's all good.

I don't know if that helps.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 19, 2011, 04:34   #5
Mangojuice
Z+Angband Maintainer
 
Join Date: Jun 2008
Posts: 318
Mangojuice is on a distinguished road
Quote:
Originally Posted by Ravenheart87 View Post
Thanks, I think I'm one step forward now. It starts, goes for a while, then halts with the following message (and this is what I get whenever restart it):


Code:
make: *** No rule to make target `zborg1.h', needed by `zborg1.o'.  Stop.
Well, that's a bit out of date. I excised the borg code a long time ago. Not quite sure how autoconf works but the borg stuff should not be compiled or included.
__________________
-----------------------------------------
Z+Angband: A Zangband evolution
http://tinyurl.com/5pq2bd
Mangojuice is offline   Reply With Quote
Old May 19, 2011, 06:06   #6
Ravenheart87
Rookie
 
Join Date: May 2011
Age: 31
Posts: 4
Ravenheart87 is on a distinguished road
Commented the borg stuff out. It continues, then I get this at the end:
Code:
dungeon.o: In function `process_command':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/dungeon.c:2584: undefined reference to `do_cmd_list'
main-tnb.o: In function `Term_xtra_tnb_flush':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:92: undefined reference to `Tcl_DoOneEvent'
main-tnb.o: In function `Term_xtra_tnb':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:201: undefined reference to `Tcl_DoOneEvent'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:201: undefined reference to `Tcl_DoOneEvent'
main-tnb.o: In function `Term_xtra_tnb_event':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:78: undefined reference to `Tcl_DoOneEvent'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:78: undefined reference to `Tcl_DoOneEvent'
main-tnb.o: In function `my_tcl_free':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:283: undefined reference to `Tcl_Free'
main-tnb.o: In function `hook_quit':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:267: undefined reference to `Icon_Exit'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:272: undefined reference to `Tcl_DeleteInterp'
main-tnb.o: In function `term_data_link':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:231: undefined reference to `Term_curs_tnb'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:232: undefined reference to `Term_wipe_tnb'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:233: undefined reference to `Term_text_tnb'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:234: undefined reference to `Term_pict_tnb'
main-tnb.o: In function `init_tnb':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:333: undefined reference to `TclTk_Init'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:343: undefined reference to `angtk_init'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:352: undefined reference to `angtk_angband_initialized'
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:355: undefined reference to `Term_xtra_tnb_react'
main-tnb.o: In function `Term_xtra_tnb':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:187: undefined reference to `Term_xtra_tnb_react'
main-tnb.o: In function `my_tcl_alloc':
/home/raven/Build/zang/ZPlusAngband_033beta_src/src/main-tnb.c:290: undefined reference to `Tcl_Alloc'
collect2: ld returned 1 exit status
make: *** [zangband] Error 1
I hope someone puts this up in AUR soon.
Ravenheart87 is offline   Reply With Quote
Old May 19, 2011, 06:12   #7
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,162
Donated: $60
Nick is on a distinguished road
My guess is that main-tnb is used for reference to Tim Baker's tcl/tk port - try removing references to that as well.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old May 24, 2011, 08:35   #8
Ravenheart87
Rookie
 
Join Date: May 2011
Age: 31
Posts: 4
Ravenheart87 is on a distinguished road
Eh, every step leads to a new error. I think I'll give up for now and only play under Windows. I hope someone will put this up in AUR in the near-future.
Anyway, thanks for the help.
Ravenheart87 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Angband from Github and compiling it Magnate Development 114 December 17, 2016 22:58
Compiling Angband on MS-DOS Zababa Development 8 May 27, 2011 17:36
Compiling Angband 3.0.9 w/ xcode on OSX Iemortal Vanilla 8 April 16, 2011 16:41
Compiling Z+Angband under Windows Altefcat Variants 8 December 11, 2008 09:44
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 17:28


All times are GMT +1. The time now is 08:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.