Opened 14 months ago

Closed 7 months ago

#18726 closed defect (wontfix)

wxWidgets 3.1.3 won't build with GCC

Reported by: rwruck Owned by:
Priority: normal Milestone:
Component: wxOSX Version: 3.1.1
Keywords: Cc:
Blocked By: Blocking:
Patch: no

Description (last modified by vadz)

While 3.0.4 builds just fine, there are some compiler errors with 3.1.3:

OS: macOS 10.7

Output of gcc -version:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

include/wx/osx/private/available.h

#if defined(__clang__) && __has_builtin(__builtin_available)

"Syntax error" - GCC doesn't understand __has_builtin

include/wx/osx/core/cfdictionary.h

    wxCFDictionaryRef(CFDictionaryRef r)
        : wxCFDictionaryRefCommon(r)
    {
    }

"Class has no member named wxCFDictionaryRefCommon" - Missing template parameter: wxCFDictionaryRefCommon<CFDictionaryRef>(r)

src/osx/cocoa/window.mm

                [attrString addAttribute:NSStrikethroughStyleAttributeName
                                   value:@(NSUnderlineStyleSingle)
                                    range:NSMakeRange(0, [attrString length])];

"Stray '@' in program"

src/osx/cocoa/dataview.mm

    return [self setupAndCallDataViewEvents:wxEVT_DATAVIEW_ITEM_DROP dropInfo:info item:item proposedChildIndex:index] != NSDragOperationNone;

"wxCocoaOutlineDataSource may not respond to setupAndCallDataViewEvents"

Change History (4)

comment:1 Changed 14 months ago by vadz

  • Description modified (diff)

I don't have access to 10.7 and/of this compiler any more, but I've tried to fix the first 3 problems blindly, could you please check this PR?

The last one should be a warning, IIUC, so I didn't do anything about it, especially because I have no idea about what is wrong here.

Of course, please don't hesitate to submit patches with further fixes -- as you can actually test them, unlike me. TIA!

comment:2 Changed 7 months ago by oneeyeman

Can this ticket be closed?
The minimum supported version for OSX in master is now 10.10 and so 3.1.5/3.2.0 will.

Vadim, Stefan?

comment:3 Changed 7 months ago by csomor

master needs SDK 10.11 (deployment on 10.10 is supported), and XCode 7.2.1 with c++11 support, I don't know which gcc version can support this

comment:4 Changed 7 months ago by vadz

  • Resolution set to wontfix
  • Status changed from new to closed

Yes, we've decided to drop support for 10.7. Interested people can still use the changes from the branch of the PR linked above, I didn't delete it.

Note: See TracTickets for help on using tickets.