Hey guys,
I need a static 32bit lib for an old project, but receive an error while make is building on src/video/cocoa/SDL_cocoametalview.m
. The machine is running OSX 10.13.6, with Xcode 9.3.1 and the corresponding Xcode Command Line Tools, cmake 3.13.2 by brew. The project later will use a bigger cmake script, but without a successful compile, I won’t need to adapt the lib into it.
For testing purposes I cutted any parameters to the cmake command, to get it going, so i’m left with:
“mkdir build && cd build && cmake -DCMAKE_OSX_ARCHITECTURES=i386 ..
” in the freshly downloaded SDL2.0.10 dir.
The error states a problem when using CGSize and NSSize:
[ 87%] Building C object CMakeFiles/SDL2-static.dir/src/video/cocoa/SDL_cocoametalview.m.o
~/Downloads/SDL2-2.0.10/src/video/cocoa/SDL_cocoametalview.m:80:12: error: initializing 'CGSize' (aka 'struct CGSize') with an expression of incompatible type 'NSSize'
(aka 'struct _NSSize')
CGSize size = self.bounds.size;
^ ~~~~~~~~~~~~~~~~
~/Downloads/SDL2-2.0.10/src/video/cocoa/SDL_cocoametalview.m:34:17: warning: property 'highDPI' requires method 'highDPI' to be defined - use @synthesize, @dynamic or
provide a method implementation in this class implementation [-Wobjc-property-implementation]
@implementation SDL_cocoametalview
^
~/Downloads/SDL2-2.0.10/src/video/cocoa/SDL_cocoametalview.h:50:28: note: property declared here
@property (nonatomic) BOOL highDPI;
^
~/Downloads/SDL2-2.0.10/src/video/cocoa/SDL_cocoametalview.m:34:17: warning: property 'highDPI' requires method 'setHighDPI:' to be defined - use @synthesize, @dynamic
or provide a method implementation in this class implementation [-Wobjc-property-implementation]
@implementation SDL_cocoametalview
^
~/Downloads/SDL2-2.0.10/src/video/cocoa/SDL_cocoametalview.h:50:28: note: property declared here
@property (nonatomic) BOOL highDPI;
^
2 warnings and 1 error generated.
make[2]: *** [CMakeFiles/SDL2-static.dir/src/video/cocoa/SDL_cocoametalview.m.o] Error 1
make[1]: *** [CMakeFiles/SDL2-static.dir/all] Error 2
make: *** [all] Error 2
Going the path with the delivered standalone CC=build-scripts/gcc_fat.sh configure
and make
works fine, but cmake won’t give me any satisfying result. Am I missing something?