CefView / QCefView

A Qt Widget encapsulated CEF view based on QWidget
https://cefview.github.io/QCefView/
GNU Lesser General Public License v2.1
545 stars 144 forks source link

Unable to build QCefView on MacOS 14.1.1 #358

Open Armmegon opened 11 months ago

Armmegon commented 11 months ago

Running: cmake --build .build/macos.arm64

provides ends up failing the build with this output:


CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509cert_principal_ctocpp.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    cd /Users/venelin/QCefView
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/b3/lpmd2r4n39ncky7skw1j610m0000gn/C/com.apple.DeveloperTools/15.0.1-15A507/Xcode/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache -target arm64-apple-macos11.0 -fmessage-length\=255 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -std\=gnu++11 -Wno-trigraphs -fno-exceptions -fno-rtti -fno-sanitize\=vptr -O0 -Werror -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 -Wshorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING\=1 -DOS_MACOS\=1 -DOS_POSIX\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility\=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -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 -I/Users/venelin/QCefView/.build/macos.arm64/CefViewCore/output/Debug/lib/include -I/Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources-normal/arm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources/arm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources -F/Users/venelin/QCefView/.build/macos.arm64/CefViewCore/output/Debug/lib -std\=gnu++17 -fno-strict-aliasing -fstack-protector -funwind-tables -fvisibility\=hidden -Wall -Werror -Wextra -Wendif-labels -Wnewline-eof -Wno-missing-field-initializers -Wno-unused-parameter -mmacosx-version-min\=10.13 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fobjc-call-cxx-cdtors -fvisibility-inlines-hidden -std\=c++17 -Wno-narrowing -Wsign-compare -Wno-undefined-var-template -MMD -MT dependencies -MF /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509cert_principal_ctocpp.d --serialize-diagnostics /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509cert_principal_ctocpp.dia -c /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc -o /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509cert_principal_ctocpp.o
clang: error: overriding '-mmacosx-version-min=10.13' option with '-target arm64-apple-macos11.0' [-Werror,-Woverriding-t-option]

CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/window_delegate_cpptoc.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    cd /Users/venelin/QCefView
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /var/folders/b3/lpmd2r4n39ncky7skw1j610m0000gn/C/com.apple.DeveloperTools/15.0.1-15A507/Xcode/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache -target arm64-apple-macos11.0 -fmessage-length\=255 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -std\=gnu++11 -Wno-trigraphs -fno-exceptions -fno-rtti -fno-sanitize\=vptr -O0 -Werror -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 -Wshorten-64-to-32 -Wnewline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -DCMAKE_INTDIR\=\"Debug\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCEF_USE_SANDBOX -DWRAPPING_CEF_SHARED -D_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING\=1 -DOS_MACOS\=1 -DOS_POSIX\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility\=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -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 -I/Users/venelin/QCefView/.build/macos.arm64/CefViewCore/output/Debug/lib/include -I/Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources-normal/arm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources/arm64 -I/Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/DerivedSources -F/Users/venelin/QCefView/.build/macos.arm64/CefViewCore/output/Debug/lib -std\=gnu++17 -fno-strict-aliasing -fstack-protector -funwind-tables -fvisibility\=hidden -Wall -Werror -Wextra -Wendif-labels -Wnewline-eof -Wno-missing-field-initializers -Wno-unused-parameter -mmacosx-version-min\=10.13 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fobjc-call-cxx-cdtors -fvisibility-inlines-hidden -std\=c++17 -Wno-narrowing -Wsign-compare -Wno-undefined-var-template -MMD -MT dependencies -MF /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/window_delegate_cpptoc.d --serialize-diagnostics /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/window_delegate_cpptoc.dia -c /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc -o /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/window_delegate_cpptoc.o
clang: error: overriding '-mmacosx-version-min=10.13' option with '-target arm64-apple-macos11.0' [-Werror,-Woverriding-t-option]

note: Run script build phase 'Generate CMakeFiles/ALL_BUILD' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ALL_BUILD' from project 'QCefView')
note: Run script build phase 'Generate src/CMakeFiles/QCefView_autogen' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QCefView_autogen' from project 'QCefView')
note: Run script build phase 'Generate example/QCefViewTest/CMakeFiles/QCefViewTest_autogen' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QCefViewTest_autogen' from project 'QCefView')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QCefViewTest' from project 'QCefView')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'QCefView' from project 'QCefView')
note: Run script build phase 'Generate CMakeFiles/ZERO_CHECK' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'ZERO_CHECK' from project 'QCefView')
note: Run script build phase 'CMake PostBuild Rules' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'CefViewWing' from project 'QCefView')
** BUILD FAILED **
The following build commands failed:
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/libcef_dll_wrapper2.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/wrapper/libcef_dll_wrapper2.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/libcef_dll_dylib.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/wrapper/libcef_dll_dylib.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/libcef_dll_wrapper.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/wrapper/libcef_dll_wrapper.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/cef_zip_archive.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/wrapper/cef_zip_archive.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/zip_reader_ctocpp.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/zip_reader_ctocpp.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/xml_reader_ctocpp.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/xml_reader_ctocpp.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/transfer_util.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/transfer_util.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509certificate_ctocpp.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/x509certificate_ctocpp.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/write_handler_cpptoc.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/cpptoc/write_handler_cpptoc.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/x509cert_principal_ctocpp.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/ctocpp/x509cert_principal_ctocpp.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
    CompileC /Users/venelin/QCefView/.build/macos.arm64/build/libcef_dll_wrapper.build/Debug/Objects-normal/arm64/window_delegate_cpptoc.o /Users/venelin/QCefView/CefViewCore/dep/cef_binary_113.3.1+g525fa10+chromium-113.0.5672.128_macosarm64/libcef_dll/cpptoc/views/window_delegate_cpptoc.cc normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'libcef_dll_wrapper' from project 'QCefView')
(11 failures)

Any idea why is that and how can be fixed ?

tishion commented 10 months ago

I guess cef 113 doesn't support your build env. maybe you can downgrade the cef version first