Mechanized Assault & eXploration Reloaded



#1 Dec 07, 2008 7:54 pm
mdooligan mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Posts: 36


Subject: newbie compile problems... sigh
Hello!

I am brand new to this site. Thank all you clever souls who made this project.

I've been playing MAX since it came out in 1996 (or something) but I'm sick of booting into WinXP just to play.

I'm trying to compile MAXR-0.2.1 on linux. All of the object files compiled successfully, but when it gets to the final linking step, I get this error:

-
make: *** No rule to make target `-lSDL_mixer', needed by `maxr'. Stop.
-

Unfortunately it doesn't show the command it's trying to execute so I can see if it's a syntax problem or something.

I have all the libs correctly installed, but I don't quite understand this error. It seems like a problem with the Makefile, but I don't understand Makefiles too well.

Does anyone have an idea where this error is coming from?

Thank you in advance for any information.

peace and cheer.
Miven Dooligan
Peace and cheer
↑  ↓

#2 Dec 07, 2008 11:17 pm
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: newbie compile problems... sigh
I wonder.. there's no target like that. Did you run bootstrap.sh prior?

Why do you compile btw? The binary provided should work on any recent linux distribution with SDL.

Edit: In the src directory is a file called Makefile.alternate or something like that. cd into the source directory and copy that over the old fashined makefile and simply run make. This Makefile is just a hack without taking care of anything. It should produce a binary as well. Copy the binary into the data directory and start it from there.

Keep in mind that you have to run resinstaller on your max cd or installation for needed game data before you can play.
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
This post has been edited 1 times. Last edit on Dec 07, 2008 11:20 pm by beko. ↑  ↓

#3 Dec 08, 2008 12:33 am
mdooligan mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Posts: 36


Subject: Re: newbie compile problems... sigh
Thank you for your quick response.

Yes I ran bootstrap.sh and the configure went fine, as well nearly the whole compile.
I also successfully extracted all the resources from my version of MAX into the data directory.

I also tried running the provided maxr binary but it doesn't like my libstdc++ or glibc:

./maxr: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./maxr)
./maxr: /usr/lib/libstdc++.so.6: version `CXXABI_1.3.1' not found (required by ./maxr)

I upgraded libstdc++.s0.6.0.9 and then it tells me this:

./maxr: /lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
./maxr: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/libstdc++.so.6)

I'm not so sure I want to screw around with my GLIBC however.

Anyway, this is moot because the Makefile.alternate worked! Thank you very much!
Miven Dooligan
Peace and cheer
↑  ↓

#4 Dec 08, 2008 10:31 am
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: newbie compile problems... sigh
yeah, messing with glib is always a bad idea. Sorry if my built doesn't fit for your libs Wink In that case you have to build it indeed on your own. I still wonder where that target came from. Mind to pack up the buildfile stuff for me?

You may consider checking out the SVN src and play with that. There are tons of bugfixes and many new features. From the game data you'd just need the new language files (at least the english master file). There are some new C++ files you'd have to add to the Makefile manually. The alternate Makefile you used is easy to understand. Simply add the entries on your own if I don't get this done for you in time.

Edit: I upgraded the alternative makefile. It's avaible from svn trunk in the folder "mk".
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
This post has been edited 1 times. Last edit on Dec 08, 2008 10:43 am by beko. ↑  ↓

#5 Dec 10, 2008 2:29 am
mdooligan mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Posts: 36


Subject: Re: newbie compile problems... sigh
Sure. You want to see the Makefiles? I couldn't figure what was wrong with them.

BTW maxr works great. Still tons of stuff to do, but I'm very impressed. Thank you. I haven't had a good project to tinker with in quite a while. Have to bone up on my C++ (and deutsch, too Smiling )

PS nice website. Who tends it?
Miven Dooligan
Peace and cheer
↑  ↓

#6 Dec 10, 2008 10:50 am
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: newbie compile problems... sigh
Quote by mdooligan:
Sure. You want to see the Makefiles? I couldn't figure what was wrong with them.
Yes, You may use the file attachment function of the bbs or mail a tarball at beko () maxthegame.de
Quote by mdooligan:
BTW maxr works great. Still tons of stuff to do, but I'm very impressed. Thank you. I haven't had a good project to tinker with in quite a while. Have to bone up on my C++ (and deutsch, too Smiling )
Yarrrr... there are still german comments in source. Sorry for that Wink We're working on it Wink
Quote by mdooligan:

PS nice website. Who tends it?
That would be me Smiling
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
↑  ↓

Pages (1): 1


All times are GMT +01:00. Current time: 11:30 am.