New answers tagged qt
It helped me to use QT_SELECT=qt5 environment variable. Source: https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/1177823 qmake --version QMake version 2.01a Using Qt version 4.8.7 in /usr/lib/x86_64-linux-gnu QT_SELECT=qt5 qmake --version QMake version 3.0 Using Qt version 5.4.2 in /usr/lib/x86_64-linux-gnu
You only have the runtime shared library packages installed. That is fine if all you want to do is RUN pre-compiled programs that depend on those libs. If you want to compile programs that depend on those libs, you need to install the various qt4 -dev packages - these contain the header files etc needed to compile programs using those libs. You probably ...
QXcbConnection: Could not connect to display localhost:10.0 The error above may contain some clues. It means that, for this user, the variable $DISPLAY is set to localhost:10.0 After you su to root, you can check the variable again with echo $DISPLAY. then change the value of the variable for the normal user accordingly. Correct value is probably ...
the posted code has a syntax error. There is an extra '&' it should be: /soft/main 2>&1 >> /var/log/app.log & which starts the main executable in background and re-directs both stdout and stderr to append to the app.log file
Top 50 recent answers are included