Compiling on Kubuntu

All your MAngband related technical questions answered. Problems compiling or running the game/server? No problem! Ask here.
Post Reply
nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Compiling on Kubuntu

Post by nubnub » Sat 02.08.2008, 03:02

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.

Jug
King Lich
Posts: 342
Joined: Sat 26.10.2002, 15:00
Location: UK
Contact:

Re: Compiling on Kubuntu

Post by Jug » Sat 02.08.2008, 15:00

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

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Sat 02.08.2008, 20:17

Thanks, that seems to have worked.

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Sun 03.08.2008, 00:27

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?

Jug
King Lich
Posts: 342
Joined: Sat 26.10.2002, 15:00
Location: UK
Contact:

Re: Compiling on Kubuntu

Post by Jug » Sun 03.08.2008, 19:16

Toggle numlock

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Sun 03.08.2008, 21:27

I don't know what I'm gonna say after this works.

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Sun 03.08.2008, 22:57

Huh, it didn't work. Oh well.

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: Compiling on Kubuntu

Post by Billsey » Sun 03.08.2008, 22:58

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.
Mangband Project Team Member

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Mon 04.08.2008, 06:07

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

Jug
King Lich
Posts: 342
Joined: Sat 26.10.2002, 15:00
Location: UK
Contact:

Re: Compiling on Kubuntu

Post by Jug » Mon 04.08.2008, 08:01

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.

nubnub
Giant Spotted Rat
Posts: 49
Joined: Wed 16.07.2008, 05:42

Re: Compiling on Kubuntu

Post by nubnub » Mon 04.08.2008, 21:47

Yeah, I was just going in the src directory. And now I feel oblivious. ._.

Thanks for the help.

Post Reply