Mechanized Assault & eXploration Reloaded



#1 Feb 01, 2013 6:58 am
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Can't compile on Mac-OS X.
Hello, ...
as the subject says I can not compile Maxr on Mac-OS X.

That is the system I use:


That is the compiling stuff I try to / can use:


That are the SVN files I got:


I opened that Xcode project file:


These are the error messages when trying to build:


Any ideas ?
Bug report at bugtracker ?

Thanks a lot.

Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
This post has been edited 1 times. Last edit on Feb 01, 2013 7:36 am by Meechmunchie. ↑  ↓

#2 Feb 02, 2013 12:17 pm
Toranaga Toranaga Offline
Developer
Registered since: Dec 28, 2005
Posts: 232


Subject: Re: Can't compile on Mac-OS X.
Hello Meechmunchie,

first question: why do you want to compile yourself? Do you have some experience with Xcode / setting up projects / compiling?
My build system is currently Mac OS X 10.6.8 and Xcode 3.2.6. And this is already old (current: 10.8.2 and Xcode 4.5.2). You are using 10.4.11 on a ppc and Xcode 2.5. I have never tried on such an old system. Even when I started with maxr I was running 10.5 on an intel mac with Xcode 3.2 I think. So I don't know if you can make it work at all on Xcode 2.5 and 10.4. And I can't support much, because I have never run that combination.

But ok, let's look at the error message: xcode is missing an sdk folder, where all the stuff it needs to compile is located. And it obviously looks in the wrong place, because it surely won't be in your svn folder (where xcode currently seems to look). The folder must be somewhere on your system (for Xcode 3.2.6 it is at /Developer/SDKs/ ).
What you can do: Try to find the "Targets" in your xcode project structure, then edit the target "MAXReloaded" (make sure you edit the "release" build settings and not the "debug" build settings). There should be a setting "Base SDK". There it is probably saying something like "missing sdk". Choose 10.4 sdk there and try to build again. (All these tips assume that xcode 2.5 works somehow like 3.2.6...)

The next error you will probably stumble over is then the missing sdl frameworks. It won't be sooo easy to get it running on your machine. Is it worth the effort? If you really want to do it, then you will have to work some stuff out on your own. Don't expect that I can tell you everything. (Just as a warning upfront...)

Good luck,
Paul
Paul Grathwohl (pagra)
↑  ↓

#3 Feb 02, 2013 1:43 pm
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Re: Can't compile on Mac-OS X.
Quote by Toranaga:
Hello Meechmunchie

Ohai Toranaga, greetings.

Quote:
why do you want to compile yourself?

I'm curious about and do often strange.

Quote:
Do you have some experience with Xcode / setting up projects / compiling?

I have no really useful experiences relating that.
Some lines TurboPascal and VisualBasic on VisualStudio. Have seen Delphi clicked around on Eclipse. That's all. Oh, and that build make stuff from my BeOS / Linux systems in past.

Quote:
You are using 10.4.11 on a ppc and Xcode 2.5. I have never tried on such an old system. ... So I don't know if you can make it work at all on Xcode 2.5 and 10.4. And I can't support much, because I have never run that combination.

Thaughts I had, too. But when it's possible on my wooden computer here, it should be done.
And, thanks to trying to help.

Quote:
The folder must be somewhere on your system (for Xcode 3.2.6 it is at /Developer/SDKs/ ).

That's the content of that Folder here:


Quote:
Try to find the "Targets" in your xcode project structure, then edit the target "MAXReloaded" (make sure you edit the "release" build settings and not the "debug" build settings).

I found that:


Quote:
There should be a setting "Base SDK". There it is probably saying something like "missing sdk". Choose 10.4 sdk there and try to build again.

I changed that that:


Getting still same errors then.
But I'll do some studies in that direction, autodidactically.

Quote:
The next error you will probably stumble over is then the missing sdl frameworks.

My SDL libs:


Quote:
If you really want to do it, then you will have to work some stuff out on your own.

Or: How I met your mothers avatar.

Quote:
Don't expect that I can tell you everything. (Just as a warning upfront...)

I did not expected. There is no need having sorrows about that.

Quote:
Good luck, Paul

Yay, thanks. Have a nice day.

Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
This post has been edited 1 times. Last edit on Feb 02, 2013 1:46 pm by Meechmunchie. ↑  ↓

#4 Feb 02, 2013 4:09 pm
Toranaga Toranaga Offline
Developer
Registered since: Dec 28, 2005
Posts: 232


Subject: Re: Can't compile on Mac-OS X.
Hm, setting the SDK path in the target settings should at least have changed the error message. Do you really get the exact same message? Sure, you still build the release configuration?
What it could be: Maybe you didn't change the target setting, but the project setting. In the tree of your screenshot where you selected MAXReloaded under "Executables" you should instead select the MAXReloaded under "Targets". Change these settings. (Xcode has settings on project level and on target level where the target settings can override the project settings. It could be that you changed the project settings, but the target settings remain unchanged and still overwrite it with the old sdk path.) So please select "MAXReloaded" in the "Targets" section and edit the infos/SDK path there.
Paul Grathwohl (pagra)
↑  ↓

#5 Feb 05, 2013 8:26 am
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Re: Can't compile on Mac-OS X.
A hint into a good direction. It seems to be compling now. Smiling



My project settings:


My target settings:


Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
This post has been edited 1 times. Last edit on Feb 05, 2013 8:50 am by Meechmunchie. ↑  ↓

#6 Feb 05, 2013 8:31 am
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Re: Can't compile on Mac-OS X.
Hmkay, here's the first error message. Wink

/Users/meechmunchie/Documents/svnX Repositories/MAXR/trunk/mac/../files.cpp:179: error: invalid lvalue in unary '&'
return calcCheckSum ( (char*) &SDL_SwapLE32 (data), 4, checksum);





Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
This post has been edited 2 times. Last edit on Feb 05, 2013 9:12 am by Meechmunchie. ↑  ↓

#7 Feb 05, 2013 12:29 pm
Jarod42 Offline
Developer
Registered since: Oct 17, 2011
Posts: 83


Subject: Re: Can't compile on Mac-OS X.
I agree with this error message. I have just fixed it.
(since our machine are little endian, this define does nothing, so compilation error is not seen :-/).

Can you send the list of errors ?
↑  ↓

#8 Feb 05, 2013 5:06 pm
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Re: Can't compile on Mac-OS X.
Quote by Jarod42:
I agree with this error message. I have just fixed it.

Just got the Revision 3084 from SVN. Wink

Quote:
since our machine are little endian, this define does nothing, so compilation error is not seen :-/

Ah, that Big / Little Endian modes, read about it. Cool

Quote:
Can you send the list of errors ?

Everytime. Grinning

Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
This post has been edited 1 times. Last edit on Feb 05, 2013 5:09 pm by Meechmunchie. ↑  ↓

#9 Feb 05, 2013 5:23 pm
Meechmunchie Meechmunchie Offline
Approved Member
Registered since: Dec 11, 2004
Posts: 127


Subject: Re: Can't compile on Mac-OS X.
40 of 40 compiled, now's linking. Here's another one.

collect2: ld returned 1 exit status



Off Topic:
«No lik it buttons as long as I'm in charge !» Tongue
↑  ↓

#10 Feb 05, 2013 9:33 pm
Jarod42 Offline
Developer
Registered since: Oct 17, 2011
Posts: 83


Subject: Re: Can't compile on Mac-OS X.
4 files has been added 'recently': {jobs,gametimer}.{cpp,h}
but project has not been updated.
Add these files and it should finally works.

(patch of the project is welcome).
↑  ↓

Pages (2): 1, 2


All times are GMT +02:00. Current time: 2:25 pm.