[PosChengband 3.3.4] Compile on Ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arendil
    Apprentice
    • Jun 2007
    • 78

    [PosChengband 3.3.4] Compile on Ubuntu

    I've tried to compile latest version on Ubuntu 12.04, and got a souple of errors. 'autogen.sh' returned 'aclocal failed', make - obviously - can't find '/mk/buildsys.mk', and, after slight edit in makefile, '/mk/buildsys.mk.in' has no rule for '.deps'.

    So, before I dive blindly in the code searching for solution, can someone, who managed to compile that version on Unix, help?

    Thanks,
    Cheers,

    Peter
  • AnonymousHero
    Veteran
    • Jun 2007
    • 1393

    #2
    You're probably missing a package called "build-essential", or one of the automake* ones.

    Comment

    • Arendil
      Apprentice
      • Jun 2007
      • 78

      #3
      Originally posted by AnonymousHero
      You're probably missing a package called "build-essential", or one of the automake* ones.
      Erm, no. Latest version already installed. Any other ideas? Anyone?

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9637

        #4
        It was me that hacked the V build system into PosCheng - and I don't really claim to be an expert. I think the aclocal failed message is probably out of the autogen.sh script itself. My top two guesses would be
        • You don't have aclocal installed or
        • It's a permissions issue - either for running aclocal, or writing files to the top level directory
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • riftor_77
          Rookie
          • May 2014
          • 13

          #5
          I am also trying to compile a Windows copy of PosChengband 3.3.4 using Cygwin. I too am hitting the "/mk/buildsys.mk: No such file or directory" error, but unlike Arendil, my change to the Makefile didn't work. I've never used Make before today, and I'm a very novice coder. How do I make Make work?

          Thanks.

          Comment

          • debo
            Veteran
            • Oct 2011
            • 2402

            #6
            Originally posted by Nick
            It was me that hacked the V build system into PosCheng - and I don't really claim to be an expert. I think the aclocal failed message is probably out of the autogen.sh script itself. My top two guesses would be
            • You don't have aclocal installed or
            • It's a permissions issue - either for running aclocal, or writing files to the top level directory
            Why on earth is it writing to /mk instead of ./mk?

            I thought that --prefix might help here but you can't do that until configure, can you?

            As an aside, I know a lot of these build conventions are trying to do things the 'proper unix way', but given that most people who build these things are newbies (myself included), writing stuff to places that your local user probably can't touch with sudo seems cruel
            Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.'

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9637

              #7
              Originally posted by debo
              Why on earth is it writing to /mk instead of ./mk?
              OK, I misread the OP - obviously it should be writing to ./mk, and it does for me. Maybe this is the problem.

              Arendil, are you running ./autogen.sh in the PosChengband directory? Because that ought to work.
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • Arendil
                Apprentice
                • Jun 2007
                • 78

                #8
                Originally posted by Nick
                • You don't have aclocal installed or
                Ok, it seems I'm stupid, well kinda...

                I would've sworn I have automake installed, but didn't. After installing default version, compilation went without errors. Thanks Nick.

                riftor_77,

                That's not exactly answer to your problem, but the trivial way to compile PosChengband under Windows is to use Visual Studio 2010 Express (i.e. free) version. Open solution file, build, kaboom, done.

                Comment

                • JohnCW9
                  Adept
                  • Jul 2009
                  • 118

                  #9
                  Originally posted by Arendil
                  Ok, it seems I'm stupid, well kinda...

                  I would've sworn I have automake installed, but didn't. After installing default version, compilation went without errors. Thanks Nick.

                  riftor_77,

                  That's not exactly answer to your problem, but the trivial way to compile PosChengband under Windows is to use Visual Studio 2010 Express (i.e. free) version. Open solution file, build, kaboom, done.
                  That version at least here is no longer available. I was forced in 2013
                  My first legit winner http://angband.oook.cz/ladder-show.php?id=5114

                  Comment

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