Page 1 of 1

Compiling on Kubuntu

Posted: Sat 02.08.2008, 03:02
by nubnub
I've been trying to compile MAngband on Kubuntu, and when I try make, I get this:
karl@karl-laptop2:~/mangband/src$ make
gcc -Wall -g -pipe -DUSE_GCU -o mangband common/z-util.o common/z-virt.o common/z-form.o common/z-rand.o common/net-unix.o common/net-win.o common/sockbuf.o server/variable.o server/control.o server/party.o server/tables.o server/util.o server/cave.o server/object1.o server/object2.o server/obj-info.o server/monster1.o server/monster2.o server/xtra1.o server/xtra2.o server/spells1.o server/spells2.o server/x-spell.o server/melee1.o server/melee2.o server/save.o server/files.o server/cmd1.o server/cmd2.o server/cmd3.o server/cmd4.o server/cmd5.o server/cmd6.o server/store.o server/birth.o server/load2.o server/sched.o server/sched-win.o server/generate.o server/wilderness.o server/dungeon.o server/init1.o server/init2.o server/netserver.o server/main.o common/md5.o -lncurses
/usr/bin/ld: cannot open output file mangband: Is a directory
collect2: ld returned 1 exit status
make: *** [mangband] Error 1
karl@karl-laptop2:~/mangband/src$
Can one of you Linux wizards help me? I don't know what that error is at all.

Re: Compiling on Kubuntu

Posted: Sat 02.08.2008, 15:00
by Jug
Which source are you trying to compile? Where and how did you get them? Is there are directory named "mangband" in the src directory? Have you run ./configure?

Do you have all the required dependencies? You can install some of them with:

Code: Select all

sudo apt-get install build-essential libncurses5-dev libx11-dev
The entire process of downloading and compiling is simply this (you can copy/paste)

Code: Select all

sudo apt-get install build-essential libncurses5-dev libx11-dev wget
wget http://mangband.org/download/mangband-1.1.0.tar.gz
tar xzvf mangband-1.1.0.tar.gz
cd mangband-1_1_0/src
./configure && make

Re: Compiling on Kubuntu

Posted: Sat 02.08.2008, 20:17
by nubnub
Thanks, that seems to have worked.

Re: Compiling on Kubuntu

Posted: Sun 03.08.2008, 00:27
by nubnub
Huh. Now that it's running, I'm still having a problem; If I want to move in-game, I have to use the numbers. Not the num pad, but the actual bar of numbers near the top of my keyboard.

Before I try and figure out what's going on, has anybody had this problem? I think it's probably got something to do with my computer in general and not some strange MAngband configuration. So, does anyone have any idea of what's going on?

Re: Compiling on Kubuntu

Posted: Sun 03.08.2008, 19:16
by Jug
Toggle numlock

Re: Compiling on Kubuntu

Posted: Sun 03.08.2008, 21:27
by nubnub
I don't know what I'm gonna say after this works.

Re: Compiling on Kubuntu

Posted: Sun 03.08.2008, 22:57
by nubnub
Huh, it didn't work. Oh well.

Re: Compiling on Kubuntu

Posted: Sun 03.08.2008, 22:58
by Billsey
nubnub wrote:Huh. Now that it's running, I'm still having a problem; If I want to move in-game, I have to use the numbers. Not the num pad, but the actual bar of numbers near the top of my keyboard.
It's possible the terminal emulation you're using by default has different raw data for some of the keys. Try generating a macro for the num-pad and see what gets saved to the pref file. You may need to generate a pref file that matches your setup, instead of using one of the pre-configured ones.

Re: Compiling on Kubuntu

Posted: Mon 04.08.2008, 06:07
by nubnub
I set up macros for the movement keys, but now I have yet another problem. I can't run, and toggling numlock doesn't help.

Also, the one windowed display seems to work fine, but the non SDL one just has a main window that displays the game and three other black, function-less windows.

Do you guys know what's up with the running thing? That's the main problem I have (for now).

Re: Compiling on Kubuntu

Posted: Mon 04.08.2008, 08:01
by Jug
Are you just typing ./mangclient after the "./configure && make" ?

You should not run the client from the "src" directory (even though you can if you compile it yourself - it won't work properly). You should ensure you are in the "mangband-1_1_0" directory not "mangband-1_1_0/src" when running ./mangclient

If that's not the problem then it's possible you were missing some dependency and have only compiled the GCU version of the client. If you're running under X windows, you need to compile the X windows client.

Re: Compiling on Kubuntu

Posted: Mon 04.08.2008, 21:47
by nubnub
Yeah, I was just going in the src directory. And now I feel oblivious. ._.

Thanks for the help.