• 382阅读
  • 2回复

求助:Qt5.15.12 在uos下编译报错 [复制链接]

上一主题 下一主题
离线tonyzhou1985
 

只看楼主 倒序阅读 楼主  发表于: 02-29
操作系统:uos社区版
cpu x86_64
qt5.15.12

编译 qtsdk 报错 如下:

limit -n 4096 && g++ @/home/tony/share/qt-everywhere-src-5.15.12/build/qtwebengine/src/core/release/QtWebEngineCore_o.rsp -Wl,--start-group @/home/tony/share/qt-everywhere-src-5.15.12/build/qtwebengine/src/core/release/QtWebEngineCore_a.rsp -Wl,--end-group -Wl,-z,noexecstack -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -m64 -Wl,-O2 -Wl,--gc-sections -rdynamic -Wl,-O1 -Wl,--enable-new-dtags -Wl,-rpath=/home/tony/Qt/qt_5.15.12/lib -Wl,-whole-archive -lqtwebenginecoreapi -Wl,-no-whole-archive -Wl,--no-undefined -Wl,--version-script,QtWebEngineCore.version -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQt5WebEngineCore.so.5 -o libQt5WebEngineCore.so.5.15.12   /home/tony/share/qt-everywhere-src-5.15.12/build/qtdeclarative/lib/libQt5Quick.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtbase/lib/libQt5Gui.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtdeclarative/lib/libQt5QmlModels.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtwebchannel/lib/libQt5WebChannel.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtdeclarative/lib/libQt5Qml.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtbase/lib/libQt5Network.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtlocation/lib/libQt5Positioning.so /home/tony/share/qt-everywhere-src-5.15.12/build/qtbase/lib/libQt5Core.so -lpthread -lGL -lpthread -ldl -lrt -lnss3 -lnssutil3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lresolv -ljpeg -lm -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lpng16 -lz -lfreetype -lexpat -lfontconfig -lX11-xcb -lxcb -lxkbcommon -ldbus-1 -L/home/tony/share/qt-everywhere-src-5.15.12/build/qtwebengine/src/core/api/release -lGL  
/usr/bin/ld: /home/tony/share/qt-everywhere-src-5.15.12/build/qtwebengine/src/core/release/obj/services/resource_coordinator/public/cpp/memory_instrumentation/memory_instrumentation/os_metrics_linux.o: relocation R_X86_64_PC32 against undefined symbol `__ehdr_start' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: 最后的链结失败: nonrepresentable section on output
collect2: error: ld returned 1 exit status


要如何解决?
本帖提到的人: @fsu0413
离线liudianwu

只看该作者 1楼 发表于: 03-03
可以先把webengine模块去掉再来编译,他依赖的东西太多
欢迎关注微信公众号:Qt实战/Qt入门和进阶(各种开源作品、经验整理、项目实战技巧,专注Qt/C++软件开发,视频监控、物联网、工业控制、嵌入式软件、国产化系统应用软件开发) QQ:517216493  WX:feiyangqingyun  QQ群:751439350
离线tonyzhou1985

只看该作者 2楼 发表于: 03-06
回 liudianwu 的帖子
liudianwu:可以先把webengine模块去掉再来编译,他依赖的东西太多 (2024-03-03 08:42) 

其它都编译好了,这一步是webengine模块最后一步链接库时报错了。以前用qt5.15.10的webengine编译过  也没什么问题,这个5.15.8的反到出了问题。
快速回复
限100 字节
 
上一个 下一个