Go to file
Alexandru Croitor 3624644630 Pass -isysroot to compiler / linker when doing a macOS build
Previously the compiler would use system headers located at
/System/Library/Frameworks, which could result in compilation failures
due to the headers not always being up-to-date in regards to the
latest installed macOS SDK headers that come with Xcode.

Fix the issue by passing the SDK path via the -isysroot option to the
compiler and linker invocations.

If no custom SDK path is given, the build system queries the SDK path
via xcrun --show-sdk-path, which returns something similar to

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
 /Developer/SDKs/MacOSX.sdk/

Querying via xcrun is now also done for iphone (and simulator)
platforms as well.

Here is an example of a compilation failure message due to outdated
headers:

platform/osx/os_osx.mm:1421:41: error: use of undeclared identifier 'NSAppKitVersionNumber10_12'; did you mean 'NSAppKitVersionNumber'?
                                if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_12) {
                                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    NSAppKitVersionNumber
/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:26:28: note: 'NSAppKitVersionNumber' declared here
2018-08-27 18:01:05 +02:00
core Merge pull request #21420 from elasota/fix-last-mipmap 2018-08-27 17:48:41 +02:00
doc Fall back to GLES2 if GLES3 is not working 2018-08-26 16:40:46 +02:00
drivers Revert "Try closing gracefully before terminating process" 2018-08-27 17:32:43 +02:00
editor Merge pull request #21456 from MarianoGnu/tileset_editor 2018-08-27 17:49:02 +02:00
main Fall back to GLES2 if GLES3 is not working 2018-08-26 16:40:46 +02:00
misc Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +02:00
modules Merge pull request #21420 from elasota/fix-last-mipmap 2018-08-27 17:48:41 +02:00
platform Pass -isysroot to compiler / linker when doing a macOS build 2018-08-27 18:01:05 +02:00
scene Revert "Fix some 3D texture issues" 2018-08-27 10:12:07 -03:00
servers Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
thirdparty Merge pull request #21474 from elasota/fix-cvtt-scalar 2018-08-27 13:36:23 +02:00
.appveyor.yml CI: Disable debug_symbols on Travis/AppVeyor 2018-08-21 12:36:57 +02:00
.clang-format Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
.editorconfig Adds C# rule to .editorconfig. 2018-07-20 08:42:13 +02:00
.gitattributes Add .xml to .gitattributes 2017-10-13 21:29:26 +11:00
.gitignore Add more IDE created files into .gitignore 2018-05-19 16:32:37 +08:00
.mailmap Disable colored output and progress bar when building outside of a TTY 2018-01-13 17:56:41 +01:00
.travis.yml CI: Disable debug_symbols on Travis/AppVeyor 2018-08-21 12:36:57 +02:00
AUTHORS.md Update AUTHORS and DONORS list 2018-08-13 08:10:16 +02:00
CHANGELOG.md Add a project changelog 2018-02-22 18:25:40 +01:00
CODEOWNERS Fix typo in gdnative module path in CODEOWNERS 2018-07-20 08:04:54 +02:00
compat.py fixed building using scons with python3 2018-05-28 18:41:16 +01:00
CONTRIBUTING.md fix some typos 2017-11-28 16:18:22 +01:00
COPYRIGHT.txt BPTC support 2018-08-21 22:56:04 -04:00
DONORS.md Update AUTHORS and DONORS list 2018-08-13 08:10:16 +02:00
gles_builders.py Running builder (content generator) functions in subprocesses on Windows 2018-07-27 21:37:55 +02:00
icon.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
icon.svg
ISSUE_TEMPLATE.md Issue template: Remove checkbox and reword some comments 2018-01-05 10:58:04 +01:00
LICENSE.txt Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
logo.png Optimize images losslessly using oxipng -o6 --strip all --zopfli 2018-06-28 19:17:41 +02:00
logo.svg
LOGO_LICENSE.md
methods.py Pass -isysroot to compiler / linker when doing a macOS build 2018-08-27 18:01:05 +02:00
platform_methods.py Fixed short circuiting on non-Windows platforms 2018-07-30 23:55:15 +02:00
README.md README: Use HTTPS URL for image. (#17851) 2018-03-30 22:11:52 +02:00
SConstruct Running builder (content generator) functions in subprocesses on Windows 2018-07-27 21:37:55 +02:00
version.py Bump version to 3.1-dev 2018-01-30 00:19:24 +01:00

Godot Engine logo

Godot Engine

Homepage: https://godotengine.org

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported in one click to a number of platforms, including the major desktop platforms (Linux, Mac OSX, Windows) as well as mobile (Android, iOS) and web-based (HTML5) platforms.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Software Freedom Conservancy not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in Godot Engine

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the homepage.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

To get in touch with the developers, the best way is to join the #godotengine IRC channel on Freenode.

Documentation and demos

The official documentation is hosted on ReadTheDocs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from within the engine.

The official demos are maintained in their own GitHub repository as well.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more info.

Travis Build Status AppVeyor Build Status Code Triagers Badge