Compiling Z+Angband

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ravenheart87
    Rookie
    • May 2011
    • 4

    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?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9647

    #2
    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.

    Comment

    • Ravenheart87
      Rookie
      • May 2011
      • 4

      #3
      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.

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9647

        #4
        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.

        Comment

        • Mangojuice
          Z+Angband Maintainer
          • Jun 2008
          • 318

          #5
          Originally posted by Ravenheart87
          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

          Comment

          • Ravenheart87
            Rookie
            • May 2011
            • 4

            #6
            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.

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9647

              #7
              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.

              Comment

              • Ravenheart87
                Rookie
                • May 2011
                • 4

                #8
                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.

                Comment

                Working...
                😀
                😂
                🥰
                😘
                🤢
                😎
                😞
                😡
                👍
                👎