-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS link failure - Undefined symbols for architecture x86_64: "xmain(int, char const**)", referenced from: -[XWinApplication run] in CocoaMain.o #6
Comments
I did notice in your CMakeLists.txt file that you didn't pass any source variables to # 👇 So here's your sources:
set(src src/main.cpp)
add_subdirectory(external/crosswindow)
# ❌ But they're not passed into the 3rd argument here:
xwin_add_executable(
# Target
${PROJECT_NAME}
# Source Files (make sure to surround in quotations so CMake treats it as a list)
"${SOURCE_FILES}"
) Could you try replacing Also, we have a few examples you can try out over here. I'd recommend playing with that one if you want to work with Metal or OpenGL in MacOS. Keep me posted if anything. |
Oh silly me. Woth correct Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project pp.xcodeproj build -target ALL_BUILD -parallelizeTargets -configuration Debug -hideShellScriptEnvironment
User defaults from command line:
HideShellScriptEnvironment = YES
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
CreateBuildDirectory temp_dir/cross/cmake-build-debug (in target 'pp' from project 'pp')
cd temp_dir/cross
builtin-create-build-directory temp_dir/cross/cmake-build-debug
CreateBuildDirectory temp_dir/cross/cmake-build-debug/external/crosswindow (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
builtin-create-build-directory temp_dir/cross/cmake-build-debug/external/crosswindow
WriteAuxiliaryFile temp_dir/cross/cmake-build-debug/pp.build/Debug/ZERO_CHECK.build/Script-3FCA2972E4C496F8E995BCF4.sh (in target 'ZERO_CHECK' from project 'pp')
cd temp_dir/cross
write-file temp_dir/cross/cmake-build-debug/pp.build/Debug/ZERO_CHECK.build/Script-3FCA2972E4C496F8E995BCF4.sh
MkDir temp_dir/cross/cmake-build-debug/Debug/pp.app (in target 'pp' from project 'pp')
cd temp_dir/cross
/bin/mkdir -p temp_dir/cross/cmake-build-debug/Debug/pp.app
MkDir temp_dir/cross/cmake-build-debug/Debug/pp.app/Contents (in target 'pp' from project 'pp')
cd temp_dir/cross
/bin/mkdir -p temp_dir/cross/cmake-build-debug/Debug/pp.app/Contents
MkDir temp_dir/cross/cmake-build-debug/Debug/pp.app/Contents/MacOS (in target 'pp' from project 'pp')
cd temp_dir/cross
/bin/mkdir -p temp_dir/cross/cmake-build-debug/Debug/pp.app/Contents/MacOS
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Init.o temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Init.cpp normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Init.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Init.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Init.cpp -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Init.o
WriteAuxiliaryFile temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CrossWindow.LinkFileList (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
write-file temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CrossWindow.LinkFileList
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaEventQueue.o temp_dir/cross/external/crosswindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaEventQueue.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaEventQueue.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaEventQueue.o
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Dialogs.o temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Dialogs.cpp normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Dialogs.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Dialogs.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Dialogs.cpp -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Dialogs.o
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaWindow.o temp_dir/cross/external/crosswindow/src/CrossWindow/Cocoa/CocoaWindow.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaWindow.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaWindow.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Cocoa/CocoaWindow.mm -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/CocoaWindow.o
PhaseScriptExecution Generate\ CMakeFiles/ZERO_CHECK temp_dir/cross/cmake-build-debug/pp.build/Debug/ZERO_CHECK.build/Script-3FCA2972E4C496F8E995BCF4.sh (in target 'ZERO_CHECK' from project 'pp')
cd temp_dir/cross
/bin/sh -c temp_dir/cross/cmake-build-debug/pp.build/Debug/ZERO_CHECK.build/Script-3FCA2972E4C496F8E995BCF4.sh
make: `temp_dir/cross/cmake-build-debug/CMakeFiles/cmake.check_cache' is up to date.
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/WindowDesc.o temp_dir/cross/external/crosswindow/src/CrossWindow/Common/WindowDesc.cpp normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/WindowDesc.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/WindowDesc.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Common/WindowDesc.cpp -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/WindowDesc.o
CompileC temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Event.o temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Event.cpp normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'CrossWindow' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/external/crosswindow/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/external/crosswindow/Debug -std\=c++14 -x objective-c++ -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Event.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Event.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Common/Event.cpp -o temp_dir/cross/cmake-build-debug/external/crosswindow/pp.build/Debug/CrossWindow.build/Objects-normal/x86_64/Event.o
WriteAuxiliaryFile temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources/Entitlements.plist (in target 'pp' from project 'pp')
cd temp_dir/cross
write-file temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources/Entitlements.plist
ProcessProductPackaging "" temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/pp.app.xcent (in target 'pp' from project 'pp')
cd temp_dir/cross
Entitlements:
{
"com.apple.security.get-task-allow" = 1;
}
builtin-productPackagingUtility -entitlements -format xml -o temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/pp.app.xcent
CompileC temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/CocoaMain.o temp_dir/cross/external/crosswindow/src/CrossWindow/Main/CocoaMain.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'pp' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -DOBJC_OLD_DISPATCH_PROTOTYPES\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/Debug -std\=c++14 -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/CocoaMain.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/CocoaMain.dia -c temp_dir/cross/external/crosswindow/src/CrossWindow/Main/CocoaMain.mm -o temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/CocoaMain.o
CompileC temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/main.o temp_dir/cross/src/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'pp' from project 'pp')
cd temp_dir/cross
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -target x86_64-apple-macos11.1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR\=\"Debug\" -DXWIN_COCOA\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -Itemp_dir/cross/cmake-build-debug/Debug/include -Itemp_dir/cross/external/crosswindow/src -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources-normal/x86_64 -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources/x86_64 -Itemp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/DerivedSources -Ftemp_dir/cross/cmake-build-debug/Debug -std\=c++14 -MMD -MT dependencies -MF temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/main.d --serialize-diagnostics temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/main.dia -c temp_dir/cross/src/main.cpp -o temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/main.o
temp_dir/cross/src/main.cpp:35:48: error: no member named 'Mouse' in 'xwin::EventType'
if (event.type == xwin::EventType::Mouse)
~~~~~~~~~~~~~~~~~^
temp_dir/cross/src/main.cpp:37:29: error: no type named 'MouseData' in namespace 'xwin'
const xwin::MouseData mouse = event.data.mouse;
~~~~~~^
temp_dir/cross/src/main.cpp:37:58: error: no member named 'mouse' in 'xwin::EventData'
const xwin::MouseData mouse = event.data.mouse;
~~~~~~~~~~ ^
3 errors generated.
** BUILD FAILED **
The following build commands failed:
CompileC temp_dir/cross/cmake-build-debug/pp.build/Debug/pp.build/Objects-normal/x86_64/main.o temp_dir/cross/src/main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure) Or without XCode:
I'll try one of your other examples later. In my current iteration I just need forms, trees (nice-to-have) and progress bars. So nothing fancy. |
Oh thanks, EDIT: So this was an error in our intro docs actually, it's no longer called That being said, there are some bindings missing with MacOS Cocoa related to this, so I'm still patching that in. |
What am I doing wrong on my macOS 11.1 (20C69)?
CMakeLists.txt
src/main.cpp
https://github.com/alaingalvan/CrossWindow/blob/b2d4f08/readme.md#usage
sh
The text was updated successfully, but these errors were encountered: