Building New wxWidgets Apps on Xcode

143 views
Skip to first unread message

Andy Kellett

unread,
May 16, 2022, 2:53:41 PM5/16/22
to wx-u...@googlegroups.com

Hi All,

 

Are there any decent tutorials for building wxWidgets apps on Xcode that cover newer versions of Xcode? I have used wxWidgets for a long time and made many projects on Windows, I am now switching to Mac for a couple of projects and having a hard time getting a new project going. I can build the libraries, I can build the minimal app using wxWidgets 3.1.5, but as soon as I try to make a new sepereted project of my own everything just explodes. I have tried using the info at https://wiki.wxwidgets.org/Creating_Xcode_projects_for_wxWidgets_applications and a couple of other tutorials I found on the web, but just cannot get anything to work. I just need to know if there is a simple way to create new projects outside of the wxWidgets samples folder. Thanks in advance!

 

Andy Kellett

 

Vadim Zeitlin

unread,
May 17, 2022, 11:04:18 AM5/17/22
to wx-u...@googlegroups.com
On Mon, 16 May 2022 18:20:43 +0000 Andy Kellett wrote:

AK> Are there any decent tutorials for building wxWidgets apps on Xcode
AK> that cover newer versions of Xcode? I have used wxWidgets for a long
AK> time and made many projects on Windows, I am now switching to Mac for a
AK> couple of projects and having a hard time getting a new project going.

As a registered Xcode hater, I have to say that you don't need to use it
under Mac. You do need to have it installed to get the compiler etc, but
once you do have them, you can build your application in any way you want,
including using make, CMake or anything else.

AK> I can build the libraries, I can build the minimal app using wxWidgets
AK> 3.1.5, but as soon as I try to make a new sepereted project of my own
AK> everything just explodes.

This is... not really informative.

AK> I just need to know if there is a simple way to create new projects
AK> outside of the wxWidgets samples folder.

I don't know how simple it is, but you need to make sure that you use
`wx-config --cxxflags` output in the compiler options and `wx-config
--libs` in the linker options. The exact locations vary depending on Xcode
version, but it's typically not difficult to find where to put the various
-D, -I and -L options in the project settings.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Reply all
Reply to author
Forward
0 new messages