wangwenx190 / framelesshelper

Project moved to: https://github.com/stdware/qwindowkit Cross-platform window customization framework for Qt Widgets and Qt Quick. Supports Windows, Linux and macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS链接过程出错,是否要有什么依赖?

czyt1988 opened this issue · comments

commented

更新之前macOS正常,今天拉取最新的main后,macOS系统在链接过程出错,是否要有什么依赖?
我是用github的actions跑的

[100%] Linking CXX shared library /Users/runner/work/SARibbon/SARibbon/bin_qt5.14.2_release_64/libSARibbonBar.dylib
Undefined symbols for architecture x[86](https://github.com/czyt1988/SARibbon/actions/runs/6489963893/job/17625054431#step:5:87)_64:
  "wangwenx1[90](https://github.com/czyt1988/SARibbon/actions/runs/6489963893/job/17625054431#step:5:91)::FramelessHelper::FramelessData::create()", referenced from:
      wangwenx190::FramelessHelper::FramelessManagerPrivate::createData(QObject const*, unsigned long long) in framelessmanager.cpp.o
      wangwenx190::FramelessHelper::FramelessManager::addWindow(QObject const*, unsigned long long) in framelessmanager.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [/Users/runner/work/SARibbon/SARibbon/bin_qt5.14.2_release_64/libSARibbonBar.0.7.0.dylib] Error 1
make[1]: *** [src/SARibbonBar/CMakeFiles/SARibbonBar.dir/all] Error 2
make: *** [all] Error 2

清除cmake cache后重新构建,最好完全删掉cmake构建文件夹

明白了,你手动定义了缺失的那个宏,导致了这个问题,我马上更新代码。

代码已经push。请测试最新代码是否还有这个问题。

commented

验证ok