mistydemeo / tigerbrew

Experimental fork of homebrew for PPC Macs on Tiger
Other
542 stars 130 forks source link

sdl2 fails to build (OS X 10.5 Power PC G4) #361

Closed miniupnp closed 8 years ago

miniupnp commented 9 years ago
$ brew doctor
Your system is ready to brew.
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/mistydemeo/tigerbrew.git
HEAD: 4e8c5b97f909335a421523fa7600074da618b538
Last commit: 2 weeks ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://ia902307.us.archive.org/31/items/tigerbrew
CPU: single-core 32-bit g4e
OS X: 10.5.8-Power Macintosh
Xcode: 3.1.4
CLT: N/A
GCC-4.0: build 5493
GCC-4.2: build 5577
LLVM-GCC: build 2064
Clang: N/A
X11: 2.1.6 => /usr/X11
System Ruby: 1.8.6-369
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Java: 1.5.0_30-b03

....
libtool: compile:  gcc-4.2 -g -O3 -DUSING_GENERATED_CONFIG_H -Iinclude -I/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/include -maltivec -DTARGET_API_MAC_CARBON -DTARGET_API_MAC_OSX -fvisibility=hidden -D_THREAD_SAFE -fpascal-strings -Wall -MMD -MT build/SDL_cocoaclipboard.lo -c /private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m  -fno-common -DPIC -o build/.libs/SDL_cocoaclipboard.o
In file included from /private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoavideo.h:40,
                 from /private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m:25:
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoawindow.h:38: error: cannot find protocol declaration for 'NSWindowDelegate'
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoawindow.h:76: error: expected ')' before 'NSApplicationPresentationOptions'
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoawindow.h:76: error: expected ')' before 'NSApplicationPresentationOptions'
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m: In function 'GetTextFormat':
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m:34: error: 'NSPasteboardTypeString' undeclared (first use in this function)
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m:34: error: (Each undeclared identifier is reported only once
/private/tmp/sdl220151023-26912-1xnjvtd/SDL2-2.0.3/src/video/cocoa/SDL_cocoaclipboard.m:34: error: for each function it appears in.)
make: *** [build/SDL_cocoaclipboard.lo] Error 1

https://gist.github.com/miniupnp/20e75e676bc2294fb5ec

miniupnp commented 9 years ago

I made a patch to SDL2-2.0.3 https://gist.github.com/miniupnp/a8f474c504eaa3ad9135 I'm not sure if my #if's are ok :

if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060

shouldn't it be Allowed ? In fact I need the conditional test "are we compiling with OS X SDK version >= 10.6"

miniupnp commented 9 years ago

I even made a patch for OS X 10.4, but some features are disabled :) https://gist.github.com/miniupnp/26d6e967570e5729a757 disable haptic and joystick : ./configure --without-x --disable-haptic --disable-joystick

mistydemeo commented 9 years ago

Excellent, I'll look at using your patch to fix this. Thanks!

ghost commented 8 years ago

Adding my log in case it helps https://gist.github.com/4d5ceed294c6ef802403

dougmencken commented 6 years ago

Is there any such patch for SDL2 2.0.8? Since src/video/cocoa/SDL_cocoamodes.m is formidably changed, so all I have yet is unfinished https://gist.github.com/dougmencken/3d82830cf3b0c3806557282f85ca5123

miniupnp commented 6 years ago

@dougmencken see https://trac.macports.org/ticket/52210

dougmencken commented 6 years ago

@miniupnp Thanks, found SDL2-2.0.8_OSX_105.patch, it works SDL2-2.0.8_OSX_105.patch.zip