QuasarApp / CQtDeployer

This project is used to deploy applications written using QML, qt or other С / С++ frameworks.
https://quasarapp.ddns.net:3031/docs/QuasarApp/CQtDeployer/latest/
GNU Lesser General Public License v3.0
570 stars 89 forks source link

Cant run deployed sh :"/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found" #775

Closed BingoZha closed 11 months ago

BingoZha commented 11 months ago

I compiled the project in Ubuntu 22.04 and use CQtDeployer to deploy.It can run perfectly in Ubuntu. Then I move the deployed folder to centOS 7.9, it reports some error: /root/Deployer/ServerTest/DistributionKit/bin/ServerTest: /lib64/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /root/Deployer/ServerTest/DistributionKit/bin/ServerTest) /root/Deployer/ServerTest/DistributionKit/bin/ServerTest: /lib64/libstdc++.so.6: versionGLIBCXX_3.4.21' not found (required by /root/Deployer/ServerTest/DistributionKit/bin/ServerTest) /root/Deployer/ServerTest/DistributionKit/bin/ServerTest: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /root/Deployer/ServerTest/DistributionKit/bin/ServerTest) How to fix it?

EndrII commented 11 months ago

This is libc issue. So just build and deploy your distribution on oldest OS, The centOS 7.9 have libc version 2.17 - this is supper too old... so and unfixable

For example, Ubuntu 16.04 has libc version 2.23 and actually version is 2.37 (2.35 for ubuntu 22.04)

So you should build your app only on centos 7.9

BingoZha commented 11 months ago

Thank you.