[Vm-beginners] Re: Compiling with Xcode

Sean P. DeNigris sean at clipperadams.com
Mon Mar 23 21:39:24 UTC 2015


Sean P. DeNigris wrote
> ultimately failing due to:

I'm also getting
"/Users/sean/Squeak/PharoVMBuild/pharo-vm/build/thirdParty/libsdl2/SDL2-2.0.3/src/video/cocoa/SDL_cocoaopengl.m:351:18:
Assigning to 'NSRect' (aka 'struct _NSRect') from incompatible type 'id'"
from:
void Cocoa_GL_GetDrawableSize(_THIS, SDL_Window * window, int * w, int * h)
{
    SDL_WindowData *windata = (SDL_WindowData *) window->driverdata;
    NSView *contentView = [windata->nswindow contentView];
    NSRect viewport = [contentView bounds];

    /* This gives us the correct viewport for a Retina-enabled view, only
     * supported on 10.7+. */
    if ([contentView respondsToSelector:@selector(convertRectToBacking:)]) {
        viewport = [contentView convertRectToBacking:viewport];
...

Here's an interesting discovery - if I compile via cmake on the command
line, delete the cmake cache file, and /then/ generate the Xcode project, it
builds and runs fine...



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Compiling-with-Xcode-tp4814477p4814552.html
Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.


More information about the VM-beginners mailing list