Ubuntu18 system qt generate double-click the program can not run problem

1.Ubuntu18 install qt compiled program files of type application / x-sharedlib, not double-click to run directly. File type should be x-executable.

2. Solution

  After you add the following content in the .pro file, delete the previously compiled files and re-compile, generate executable file.

QMAKE_LFLAGS += -no-pie

Guess you like

Origin www.cnblogs.com/zhangnianyong/p/11511270.html
Recommended