2
0
Fork 0
Godot Engine – Multi-platform 2D and 3D game engine
 
 
 
 
 
 
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 +07:00
core Merge pull request #21420 from elasota/fix-last-mipmap 2018-08-27 17:48:41 +07:00
doc Fall back to GLES2 if GLES3 is not working 2018-08-26 16:40:46 +07:00
drivers Revert "Try closing gracefully before terminating process" 2018-08-27 17:32:43 +07:00
editor Merge pull request #21456 from MarianoGnu/tileset_editor 2018-08-27 17:49:02 +07:00
main Fall back to GLES2 if GLES3 is not working 2018-08-26 16:40:46 +07:00
misc Style: Enable clang-format on GLSL shaders 2018-08-27 07:34:14 +07:00
modules Merge pull request #21420 from elasota/fix-last-mipmap 2018-08-27 17:48:41 +07:00
platform Pass -isysroot to compiler / linker when doing a macOS build 2018-08-27 18:01:05 +07:00
scene Revert "Fix some 3D texture issues" 2018-08-27 10:12:07 +07:00
servers Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +07:00
thirdparty Merge pull request #21474 from elasota/fix-cvtt-scalar 2018-08-27 13:36:23 +07:00
.appveyor.yml
.clang-format
.editorconfig
.gitattributes
.gitignore
.mailmap
.travis.yml
AUTHORS.md
CHANGELOG.md
CODEOWNERS
CONTRIBUTING.md
COPYRIGHT.txt
DONORS.md
ISSUE_TEMPLATE.md
LICENSE.txt
LOGO_LICENSE.md
README.md
SConstruct
compat.py
gles_builders.py
icon.png
icon.svg
logo.png
logo.svg
methods.py Pass -isysroot to compiler / linker when doing a macOS build 2018-08-27 18:01:05 +07:00
platform_methods.py
version.py

README.md

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