google-code-export / bzzwolfsp

Automatically exported from code.google.com/p/bzzwolfsp
GNU General Public License v3.0
0 stars 0 forks source link

Using make-macosx-ub.sh to compile for 10.6 SDK #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to run make-macosx-ub.sh with 10.6 SDK

What is the expected output? What do you see instead?
Should compile. Instead see 
"ERROR: This script is for building a Universal Binary.  You cannot build
for a different architecture unless you have the proper Mac OS X SDKs
installed.  If you just want to to compile for your own system run
'make' instead of this script."

What version of the product are you using? On what operating system?
r37 on Mac OS X 10.6.7 with SDK 10.6

Please provide any additional information below.
Can be fixed with a few simple additions to make-macosx-ub.sh

Original issue reported on code.google.com by riddian@gmail.com on 30 May 2011 at 7:53

GoogleCodeExporter commented 9 years ago
I didn't really look into this file yet, do you have the additions? 
I can commit them if you want

Original comment by frederik...@gmail.com on 30 May 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Sure just add this around line 41:

if [ -d /Developer/SDKs/MacOSX10.6.sdk ]; then
    PPC_SDK=/Developer/SDKs/MacOSX10.6.sdk
    PPC_CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.6.sdk \
            -DMAC_OS_X_VERSION_MIN_REQUIRED=1060"
    PPC_LDFLAGS=" -mmacosx-version-min=10.6"

    X86_SDK=/Developer/SDKs/MacOSX10.6.sdk
    X86_CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk \
            -DMAC_OS_X_VERSION_MIN_REQUIRED=1060"
    X86_LDFLAGS=" -mmacosx-version-min=10.6"
fi

Original comment by riddian@gmail.com on 30 May 2011 at 11:27

GoogleCodeExporter commented 9 years ago
this is in trunk now, thanks

Original comment by frederik...@gmail.com on 30 May 2011 at 4:41

GoogleCodeExporter commented 9 years ago
Hm turns out there are a few more changes that need to be made to that script. 
Just found out 10.6 SDK drops support for PPC. That would explain why I was 
having trouble with that part haha. I've modified the script so it will build a 
not so universal X68 only binary if SDK > 10.5.

Original comment by riddian@gmail.com on 30 May 2011 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago
why did you drop the wolfsp.ppc files ?
(I just took a quick look and I'm wondering)

Original comment by frederik...@gmail.com on 30 May 2011 at 7:45

GoogleCodeExporter commented 9 years ago
I put conditions around them so they are only built if the PPC vars have been 
set. When the 10.6 SDK is detected I haven't set them for the reason I 
mentioned above. The 10.6 SDK drops support for PPC thus building a UB isn't 
officially possible (I hear there is some hack for this).

Slightly off-topic so I'll make this quick, I compiled the MP version which 
runs but have numerous issues. Is the MP version less complete and therefore 
such issues known to you, or would it be helpful if I reported my findings?

Original comment by riddian@gmail.com on 30 May 2011 at 8:42

GoogleCodeExporter commented 9 years ago
I'll take a look at you changes when my mind is clear :)

about the mp: feel free to report them, there are quite a few issues :)

Original comment by frederik...@gmail.com on 30 May 2011 at 8:54

GoogleCodeExporter commented 9 years ago
No problem :) I'll report some MP issues for you soon then ;) By the way thanks 
for all of your work on this!

Original comment by riddian@gmail.com on 31 May 2011 at 8:31

GoogleCodeExporter commented 9 years ago
thanks for trying it out and reporting stuff :)

Original comment by frederik...@gmail.com on 31 May 2011 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by frederik...@gmail.com on 16 Jan 2012 at 2:55