Meechmunchie | Feb 01, 2013 6:58 am |
---|---|
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. |
Toranaga | Feb 02, 2013 12:17 pm |
---|---|
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 |
Meechmunchie | Feb 02, 2013 1:43 pm |
---|---|
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. |
Toranaga | Feb 02, 2013 4:09 pm |
---|---|
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. |
Meechmunchie | Feb 05, 2013 8:26 am |
---|---|
Subject: Re: Can't compile on Mac-OS X. A hint into a good direction. It seems to be compling now. ![]() ![]() My project settings: ![]() My target settings: ![]() |
Meechmunchie | Feb 05, 2013 8:31 am |
---|---|
Subject: Re: Can't compile on Mac-OS X. Hmkay, here's the first error message. ![]() /Users/meechmunchie/Documents/svnX Repositories/MAXR/trunk/mac/../files.cpp:179: error: invalid lvalue in unary '&' return calcCheckSum ( (char*) &SDL_SwapLE32 (data), 4, checksum); ![]() ![]() |
Jarod42 | Feb 05, 2013 12:29 pm |
---|---|
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 ? |
Meechmunchie | Feb 05, 2013 5:06 pm |
---|---|
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. ![]() 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. ![]() Quote: Can you send the list of errors ? Everytime. ![]() |
Meechmunchie | Feb 05, 2013 5:23 pm |
---|---|
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 ![]() |
Jarod42 | Feb 05, 2013 9:33 pm |
---|---|
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). |