Getting Angband from Github and compiling it

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts

  • Tobias
    replied
    Originally posted by d_m
    In that case you should check out: https://github.com/angband/angband.
    I had seen it but I can't find the search function no matter how much I look.

    Leave a comment:


  • Magnate
    replied
    Originally posted by Tobias
    No I meant on the website. In the old days the you could search the commit log from the trac.rephial.org site. Or maybe I am remembering wrong.
    Your memory is correct - trac integrates very well with svn, and the browsing was cool. We *could* set up trac to browse the git repo online, but it's crushingly slow - trac and git do not like each other much. So as d_m says, you're better off browsing the commits at github itself. Just go to the official repo (link in d_m's reply) and click the Commits button.

    Leave a comment:


  • d_m
    replied
    Originally posted by Tobias
    No I meant on the website. In the old days the you could search the commit log from the trac.rephial.org site. Or maybe I am remembering wrong.
    In that case you should check out: https://github.com/angband/angband.

    Leave a comment:


  • Tobias
    replied
    Originally posted by d_m
    Depends on what you mean. You can do things like "git log" and just scroll around to read it, or you can do "git log | grep 'hello world'" to search for 'hello world'. You can also do "git grep" if you want to find a particular piece of sourcecode (or something) that is no longer there.
    No I meant on the website. In the old days the you could search the commit log from the trac.rephial.org site. Or maybe I am remembering wrong.

    Leave a comment:


  • d_m
    replied
    Originally posted by Tobias
    Also, how can you search the online tree, or the commit log, like you could on the old system?
    Depends on what you mean. You can do things like "git log" and just scroll around to read it, or you can do "git log | grep 'hello world'" to search for 'hello world'. You can also do "git grep" if you want to find a particular piece of sourcecode (or something) that is no longer there.

    Originally posted by Tobias
    And what is the easiest way to restore a single file to the official state?
    git checkout FILE will revert FILE to its current state in HEAD. This will be the same as the official state as long as you aren't committing to the repo yourself.

    Leave a comment:


  • Tobias
    replied
    Thanks Magnate, I will try this sometime.

    Also, how can you search the online tree, or the commit log, like you could on the old system?

    And what is the easiest way to restore a single file to the official state?
    Last edited by Tobias; May 15, 2011, 11:42.

    Leave a comment:


  • Magnate
    replied
    Originally posted by Tobias
    I meant, the online fork on github. How do I rebase this to a newer main version?
    1. Clone your fork locally using "git clone http://github.com/yourID/angband". You now have a local repo which tracks your fork as a remote called "origin".

    2. Add the official repo as a remote with "git remote add official http://github.com/angband/angband".

    3. Update your local tracking of the official repo with "git fetch official".

    4. Merge the latest official changes into your local repo with "git merge official/master".

    5. Push those changes up to your github repo with "git push origin master".

    This assumes you have not strayed from your master branch in your local repo during this whole exercise.

    Leave a comment:


  • Tobias
    replied
    Originally posted by takkaria
    If you branched from the official github repository, then 'git pull' should automatically merge them in for you.
    I meant, the online fork on github. How do I rebase this to a newer main version?

    Leave a comment:


  • takkaria
    replied
    Originally posted by Tobias
    How do you pull changes from the main repo into your personal fork?
    If you branched from the official github repository, then 'git pull' should automatically merge them in for you.

    Leave a comment:


  • Tobias
    replied
    How do you pull changes from the main repo into your personal fork?

    Leave a comment:


  • takkaria
    replied
    Originally posted by Spacebux
    Did not thunk of that it might be a simple mis-spelling:


    #ifdef WINDOWS
    # include <windows.h>
    # include <io.h>
    # include <direct.h>
    #endif
    Actually, it's not just a simple misspelling, because that works absolutely fine when building the game for me. But if it fixes it for you, excellent.

    Leave a comment:


  • Spacebux
    replied
    Originally posted by takkaria
    do you not mean dirent.h?
    Did not thunk of that it might be a simple mis-spelling:


    #ifdef WINDOWS
    # include <windows.h>
    # include <io.h>
    # include <direct.h>
    #endif

    Leave a comment:


  • takkaria
    replied
    Originally posted by Spacebux
    Yeah, that is what I was doing...

    It couldn't locate that certain header file, so I yanked that section out of the code, and it compiles.

    direct.h <-- file not found... so, no directory creation for me.

    -SBux-
    do you not mean dirent.h?

    Leave a comment:


  • Spacebux
    replied
    Originally posted by d_m
    To build for Windows, you're supposed to cd into src and then run "make -f Makefile.win"... is that what you're doing?
    Yeah, that is what I was doing...

    It couldn't locate that certain header file, so I yanked that section out of the code, and it compiles.

    direct.h <-- file not found... so, no directory creation for me.

    -SBux-

    Leave a comment:


  • d_m
    replied
    To build for Windows, you're supposed to cd into src and then run "make -f Makefile.win"... is that what you're doing?

    Leave a comment:

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