QCefView
QCefView copied to clipboard
[BUG]: linux平台下,QCefContext即使在Release下实例化依然会堵塞
Describe the bug 【Bug描述】
新建一个空白的Qcef工程,realse和debug都在QCefContext实例化时堵塞
main.cc
mainwindow.cc
Environment 【BUG产生的环境】
- OSR/NCW Mode:默认
- OS & Version: [e.g. Windows/macOS/Linux]Ubuntu 20.04.5
- Qt Version: Qt 5.15.2
- CEF Version: V1.1.0
Additional context 【更多额外信息】
...
QCef版本为 V1.1.0,CEF版本为102.0.5005.115
在sample 下面的test cmakefile里面有提及debug会有问题,必须要强行指定链接,也就是防止在运行的时候,libcef so 在libc之后加载。我发现我这边release也有问题,如下处理: unix:LIBS += -L$$PWD/3rd_Party/Linux/bin -lcef -lQCefView unix:QMAKE_LFLAGS += -Wl,--no-as-needed
nice alert, it help me