Hello World on Xcode 7.1

I’m just starting out in Audacity source, and I’ve got it compiling. Next steps seem to be either running a Hello world tutorial, or deriving from samples / demos.

I’m trying this hello world tutorial first, and getting stuck right away:

http://docs.wxwidgets.org/stable/overview_helloworld.html

The first step is failing for me. To include this:
"
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
"

I’ve begin by making a new xCode cocoa project (perhaps that’s where I’m already astray, as cocoa does ui for you, which may be at odds with what wxWidgets is attempting to do?).

I’ve got a project called wxWidgets_hello_world.
I’ve got the following files in the project navigator, and at ~/Documents/projects/training/wxWidgets/wxWidgets_hello_world/wxWidgets_hello/World:
AppDelegate.h
AppDelegate.m
info.plist
main.m

My main.m file looked like this:

//-------------------------------------------------------------------------------

//
// main.m
// wxWidgets_hello_world
//
// Created by David Johnson on 5/16/16.
// Copyright © 2016 David Johnson. All rights reserved.
//

#import <Cocoa/Cocoa.h>

int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}

//-------------------------------------------------------------------------------

Now it looks like this:

//-------------------------------------------------------------------------------

//
// main.m
// wxWidgets_hello_world
//
// Created by David Johnson on 5/16/16.
// Copyright © 2016 David Johnson. All rights reserved.
//

#import <Cocoa/Cocoa.h>


#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}


//-------------------------------------------------------------------------------


Has anyone else run through the hello world sucessfully on Xcode?

How to get includes working, whether it be through build settings, copying an include/src folder, etc… seems be where my ignorance lies.

Also, based on the “build.txt” original setup steps to get Audacity compiling… I’ve still got wxWidgets and Audacity sitting in my ~/Downloads/ folder. It feels like they should be somewhere else. In the developer folder perhaps? Can anyone shed light on where those aught to go, and what steps are needed to get them linking to one another once they are moved?

Maybe this should be a post for the wxWidgets forum, not Audacity?

Correct. :wink:

The compiled build of Audacity is an obscure “Derived Data” folder, assuming you used Xcode to compile it.

Developers usually build Audacity with xcodebuild at the command-line, then Audacity is compiled in /tmp.

Gale