Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Andreas_SynM
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 14, 2016 1:05 pm

Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by Andreas_SynM »

Hi,

i download the wxwidget-master on my system (Xcode 8.2, macOS Sierra 10.12.2) and compile over terminal. Thats work. But the problem is in Xcode that dont compile.

I get lots of failures like "No member named 'regex_constants' in namespace 'std'".

An idea what's wrong?

Thanks.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by ONEEYEMAN »

Hi,
Are you trying to build your own code in Xcode or you are trying to build wxWidgets inside Xcode?

Please clarify.

Thank you.
Andreas_SynM
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 14, 2016 1:05 pm

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by Andreas_SynM »

First for testing i try to build a sample from wxWidgets-master/samples/minimal/minimal_cocoa.xcodeproj.

Later i will use wxWidget in Xcode for build my own projekts. I need that because i have a projekt for Windows and would like to port it on MacOS.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by ONEEYEMAN »

Andreas,
So the errors you reported in the OP was coming from your own code? And building the 'minimal' sample you don't see anything?
Also, it is recommended to build the library itself from the Terminal and build you own code inside IDE.

Thank you.
Andreas_SynM
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 14, 2016 1:05 pm

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by Andreas_SynM »

Hi,
no the errors are not my own code.
Building the 'minimal' sample - Here comes lots of error messages in wxcocoa.xcodeproj > libscintilla > Document.cxx

Thank you.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by ONEEYEMAN »

Andreas,
So then they are coming from the wxWIdgets?
If yes - how did you build the library?

Thank you.
Andreas_SynM
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 14, 2016 1:05 pm

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by Andreas_SynM »

Hi,

i want to build in Xcode open the file in build/osx/wxcocoa.xcodeproj but that build fail every time.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by ONEEYEMAN »

Andreas,
Don't.
You will have better luck building from the Terminal.

Just open up the basic Terminal and do:

cd wxWidgets && mkdir buildMac && cd buildMac && ../configure --enable-debug --with-cocoa --with-macosx-version-min=10.x && make && cd samples/minimal && make && open minimal.app

where x is the value of 7+

Xcode project is maintained by hand and don't have too much attention. And it is much easier to build in Terminal.

If everything goes smoothly (as it should) you will see a minimal sample window opened.

Next you can open the project in the Xcode and start development.

Thank you.
Andreas_SynM
In need of some credit
In need of some credit
Posts: 5
Joined: Wed Dec 14, 2016 1:05 pm

Re: Mac OS X Xcode 8.2 macOS Sierra 10.12.2

Post by Andreas_SynM »

Hi,
ok thanks for your support.
Post Reply