由于想让其他人不需要编译庞大的SDK也能直接编写Qt工程代码,所以原意打算压缩一个编译环境包之类的东西,但是发现Qmake部分还是有些问题,哪怕已经将qt生成部分全部拷贝。
在其他虚拟机中解压环境后直接选择/Qt_5.12.5/bin/qmake会报错
The qmake executable /usr/local/pad-env/Qt_5.12.5/bin/qmake could not be added: "/usr/local/pad-env/Qt_5.12.5/bin/qmake" produced no output: /usr/local/pad-env/Qt_5.12.5/bin/qmake: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /usr/local/pad-env/Qt_5.12.5/bin/qmake)
/usr/local/pad-env/Qt_5.12.5/bin/qmake: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/atompad-env/Qt_5.12.5/bin/qmake)
/usr/local/pad-env/Qt_5.12.5/bin/qmake: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/pad-env/Qt_5.12.5/bin/qmake)
也许应该手动编译静态GLIBC?还望有知道的兄弟指点一二。