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/overvi ... world.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?
Hello World on Xcode 7.1
Forum rules
This forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
-
undertone_dj
- Posts: 10
- Joined: Tue Apr 26, 2016 2:34 am
- Operating System: macOS 10.14 Mojave
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Hello World on Xcode 7.1
Correct.undertone_dj wrote:Maybe this should be a post for the wxWidgets forum, not Audacity?
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
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual