Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

mac编译报错 #311

Open
Ellen-coder opened this issue Nov 3, 2023 · 1 comment
Open

mac编译报错 #311

Ellen-coder opened this issue Nov 3, 2023 · 1 comment

Comments

@Ellen-coder
Copy link

FAILED: lib/libFramelessHelperCore.dylib
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -flto=thin -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -dynamiclib -Wl,-headerpad_max_install_names -o lib/libFramelessHelperCore.dylib -install_name @rpath/libFramelessHelperCore.dylib src/core/CMakeFiles/FramelessHelperCore.dir/FramelessHelperCore_autogen/mocs_compilation.cpp.o src/core/CMakeFiles/FramelessHelperCore.dir/utils.cpp.o src/core/CMakeFiles/FramelessHelperCore.dir/framelesshelper_qt.cpp.o src/core/CMakeFiles/FramelessHelperCore.dir/framelesswindowsmanager.cpp.o src/core/CMakeFiles/FramelessHelperCore.dir/utils_mac.mm.o src/core/CMakeFiles/FramelessHelperCore.dir/FramelessHelperCore_autogen/EWIEGA46WW/qrc_framelesshelpercore.cpp.o -F/Users/7ic/Qt5.14.2/5.14.2/clang_64/lib -Wl,-rpath,/Users/7ic/Qt5.14.2/5.14.2/clang_64/lib /Users/7ic/Qt5.14.2/5.14.2/clang_64/lib/QtGui.framework/QtGui /Users/7ic/Qt5.14.2/5.14.2/clang_64/lib/QtCore.framework/QtCore && :
ld: warning: ignoring file '/Users/7ic/Qt5.14.2/5.14.2/clang_64/lib/QtCore.framework/Versions/5/QtCore': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/Users/7ic/Qt5.14.2/5.14.2/clang_64/lib/QtGui.framework/Versions/5/QtGui': found architecture 'x86_64', required architecture 'arm64'
ld: Undefined symbols:
_CFRelease, referenced from:
wangwenx190::FramelessHelper::Utils::startSystemMove(QWindow*, QPoint const&) in
_CGEventCreateMouseEvent, referenced from:
wangwenx190::FramelessHelper::Utils::startSystemMove(QWindow*, QPoint const&) in
_NSApp, referenced from:
wangwenx190::FramelessHelper::Utils::getSystemTheme() in
wangwenx190::FramelessHelper::Utils::shouldAppsUseDarkMode_macos() in
_NSAppearanceNameAqua, referenced from:
wangwenx190::FramelessHelper::Utils::getSystemTheme() in
wangwenx190::FramelessHelper::Utils::shouldAppsUseDarkMode_macos() in
_NSAppearanceNameDarkAqua, referenced from:
wangwenx190::FramelessHelper::Utils::getSystemTheme() in
wangwenx190::FramelessHelper::Utils::shouldAppsUseDarkMode_macos() in
OBJC_CLASS$_NSArray, referenced from:
in
OBJC_CLASS$_NSColor, referenced from:
in
OBJC_CLASS$_NSEvent, referenced from:
in
qt_mac_toQColor(NSColor const*), referenced from:
wangwenx190::FramelessHelper::Utils::getControlsAccentColor() in
qRegisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*), referenced from:
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
__GLOBAL__sub_I_qrc_framelesshelpercore.cpp in
qUnregisterResourceData(int, unsigned char const*, unsigned char const*, unsigned char const*), referenced from:
(anonymous namespace)::initializer::~initializer() in
qputenv(char const*, QByteArray const&), referenced from:
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
QArrayData::deallocate(QArrayData*, unsigned long, unsigned long), referenced from:
QString::~QString() in
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
QByteArray::~QByteArray() in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
...
QArrayData::shared_null, referenced from:
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
wangwenx190::FramelessHelper::Utils::getSystemButtonIconResource(wangwenx190::FramelessHelper::Global::SystemButtonType, wangwenx190::FramelessHelper::Global::SystemTheme, wangwenx190::FramelessHelper::Global::ResourceType) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
...
QByteArray::reallocData(unsigned int, QFlagsQArrayData::AllocationOption), referenced from:
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
wangwenx190::FramelessHelper::FramelessHelper::Core::initialize(QFlagswangwenx190::FramelessHelper::Global::Option) in
...

  这个是什么原因导致的呢 求解
@wangwenx190
Copy link
Owner

看起来混用了x86和arm,不清楚你那边怎么搞的

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants