go-qamel / qamel

Simple QML binding for Go
MIT License
176 stars 19 forks source link

macOS build failed #42

Open lunny opened 3 years ago

lunny commented 3 years ago

macOS big sur 11.4 Qt 5.14.2

$ qamel build
Starting build process.

Load config file...done
Generating vendor files...done
Removing old build files...done
Generating binding files...done
Generating Qt resource file...done
Generating code for QML objects...done
Building app...
Failed to build app: exit status 2
# runtime/cgo
In file included from _cgo_export.c:3:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdlib.h:181:5: error: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]