Compiling ZPlusAngband with lcc C newbie

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 657

    Compiling ZPlusAngband with lcc C newbie

    Technically not so much a newbie as an oldbie who last did anything semi serious over a decade ago and has forgotten everything.

    Anyway I'm getting eight compile errors at the moment, "undefined reference to _tolua_player_open" (and so on) corresponding to the following lines from script.c

    /* Register various Angband libraries */
    tolua_player_open(L);
    tolua_object_open(L);
    tolua_monst_open(L);
    tolua_random_open(L);
    tolua_ui_open(L);
    tolua_misc_open(L);
    tolua_spell_open(L);
    tolua_field_open(L);

    It does not appear that any file in the source code apart from script.c contains any mention of "tolua_player_open" or the other functions. So am I to assume I'm missing some files or am I being stupid?
    Currently turning (Angband) Japanese.
  • Mangojuice
    Z+Angband Maintainer
    • Jun 2008
    • 318

    #2
    Originally posted by PaulBlay
    Technically not so much a newbie as an oldbie who last did anything semi serious over a decade ago and has forgotten everything.

    Anyway I'm getting eight compile errors at the moment, "undefined reference to _tolua_player_open" (and so on) corresponding to the following lines from script.c

    /* Register various Angband libraries */
    tolua_player_open(L);
    tolua_object_open(L);
    tolua_monst_open(L);
    tolua_random_open(L);
    tolua_ui_open(L);
    tolua_misc_open(L);
    tolua_spell_open(L);
    tolua_field_open(L);

    It does not appear that any file in the source code apart from script.c contains any mention of "tolua_player_open" or the other functions. So am I to assume I'm missing some files or am I being stupid?
    You have all the files and you're not being stupid.

    Run "tolua_make.bat" and then "l-make.bat" from a command prompt while in the src directory. Then try make again and everything should work.
    -----------------------------------------
    Z+Angband: A Zangband evolution
    http://tinyurl.com/5pq2bd

    Comment

    • PaulBlay
      Knight
      • Jan 2009
      • 657

      #3
      Originally posted by Mangojuice
      Run "tolua_make.bat" and then "l-make.bat" from a command prompt while in the src directory. Then try make again and everything should work.
      Thanks, I'll see how it goes.
      Currently turning (Angband) Japanese.

      Comment

      • PaulBlay
        Knight
        • Jan 2009
        • 657

        #4
        OK, progress has been made. It now compiles and even runs!
        It helped that I finally noticed the relevant readme file.

        I just thought I'd share this amusing error message from an earlier stage ...

        C:\ZPlusAngband>make win
        make: cannot make win

        Looks like my character's doomed ...
        Currently turning (Angband) Japanese.

        Comment

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