Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.22k
stars
414
forks
source link
segmentation fault while running on another computer #534
hello, I meet segmentation fault when I move my qt app to another computer
I write a minimal program, and still meet the segmentation fault when run “QApplication a(argc, argv);”
How I packed:
linuxdeployqt testForAnotherComputer -appimage
version: linuxdeployqt (commit aeafcd2), build 13 built on 2022-01-28 22:37:07 UTC
working on my computer(ubuntu16.04) like this:
run:
./testForAnotherComputer
output:
1
QXcbXConnection: Failed to initialize XRander
Qt: XKEYBOARD extension not present on the server.
2
3
4
not working on other computer(ubuntu16.04):
run:
./testForAnotherComputer
output:
1
Segmentation fault (core dumped)
hello, I meet segmentation fault when I move my qt app to another computer I write a minimal program, and still meet the segmentation fault when run “QApplication a(argc, argv);”
I use qt5.10.0 my code(only modified here):
include "mainwindow.h"
include
int main(int argc, char *argv[]) { printf("1\n"); QApplication a(argc, argv); printf("2\n"); MainWindow w; printf("3\n"); w.show(); printf("4\n"); return a.exec(); }
How I packed: linuxdeployqt testForAnotherComputer -appimage version: linuxdeployqt (commit aeafcd2), build 13 built on 2022-01-28 22:37:07 UTC
working on my computer(ubuntu16.04) like this: run: ./testForAnotherComputer output: 1 QXcbXConnection: Failed to initialize XRander Qt: XKEYBOARD extension not present on the server. 2 3 4
not working on other computer(ubuntu16.04): run: ./testForAnotherComputer output: 1 Segmentation fault (core dumped)
other computer:
(base) xxxxxxx@xxxxxxx:~/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release$ ldd testForAnotherComputer linux-vdso.so.1 (0x00007ffe09bfb000) libQt5Widgets.so.5 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libQt5Widgets.so.5 (0x00007f533176a000) libQt5Core.so.5 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libQt5Core.so.5 (0x00007f533101c000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5330c9a000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5330a84000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5330693000) libQt5Gui.so.5 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libQt5Gui.so.5 (0x00007f532fead000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f532fc8e000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f532f9e5000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f532f647000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f532f42d000) libicui18n.so.56 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libicui18n.so.56 (0x00007f532ef94000) libicuuc.so.56 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libicuuc.so.56 (0x00007f532ebdc000) libicudata.so.56 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libicudata.so.56 (0x00007f532d1f9000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f532cff5000) libgthread-2.0.so.0 => /home/xxxxxxx/Desktop/build-testForAnotherComputer-Desktop_Qt_5_10_0_GCC_64bit-Release/./lib/libgthread-2.0.so.0 (0x00007f532cdf2000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f532cae1000) /lib64/ld-linux-x86-64.so.2 (0x00007f5331fa3000) libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f532c8b1000) libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f532c5de000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f532c36e000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f532c034000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f532be22000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f532bc00000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f532b9fc000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f532b7f6000)