Solved qt-creator 4.14.0 failed to launch on debian buster with qt 6.0
-
@SGaist HI I am installing debian bullseye alpha3 because there is a new version of libxcb on it.I cannot compile the library under windows too (6.0.2 and 6.0.3) with cmake and mingw64 because there are errors
regards -
Depending on the version of the library missing, you might be able to cheat and create the missing symbolic link to your current library.
-
@SGaist I have another problem now when I launch my program in debug in qtcreator it stops at main or QAPPlplication and in the application output "could not find the qt platform plugin xcb .so I think I should have installed libxcb before compiling Qt and it is not the case.do you think I should compile again Qt ?
-
You need to have the development package for it installed before building.
I would try to call configure again rather than build from scratch. If it's note running the tests again, nuke the corresponding folder.
-
@SGaist HI I have compiled qt 6.0.3 on debian bulsseye alpha after I have instelled libqxc and my programs cannot run, always the same problem as with qtcreator before but qtcreator works
-
Did you check what exact error message you have ?
Did you start your application with the QT_DEBUG_PLUGINS environment variable set to 1 ? -
@SGaist HI I Have this message 'qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc.
and when I look in /opt/qt6.0.3/qtbase/plugins/platforms/ there isnt any library libqxcb.so. -
@stephane78-0 said in qt-creator '.4.14.0 failed to launch on debian buster with qt 6.0:
and when I look in /opt/qt6.0.3/qtbase/plugins/platforms/ there isnt any library libqxcb.so.
Then libqxcb.so was not built. You should check config.log to finf out why it was not built.
-
@SGaist ok I have found libx11xcb was not installed on my system so I compile again and come here again.
-
@SGaist I have done a configure and it says ; XCB:
Using system-provided xcb-xinput ..... no
Native painting (experimental) ....... no
GL integrations:
GLX Plugin ......................... no
XCB GLX .......................... no
EGL-X11 Plugin ..................... no -
@SGAist should I clean my directory before to make configure ?
-
@SGaist OK I have remove CMakeCache.txt and now I have this line XCB Xlib ............................. yes and I will compile and test again
-
@SGaist Hi I have always the same error when running my application.as there isn't any libqxc.so in /opt/qt6.0.3/qtbase/plugins/platforms/ I have copied those of the qtcreator 4.14.0 but it doesn't work.
-
@SGaist what are the linux systems supported by Qt6 ?
-
@SGaist or should I put an option on the configure command line to compile the qpa plugin xcb ?
-
@SGaist HI I have found that I cant put -xpa xcb -xcb on the configure line.where can we found all the option of configure.in this the line of xcb input etc are at yes but after I have some other erros at the end of the configure that are not because of that and I think I must specify too the mkspecs on the configure line but I don't know the option.
but now my problem is solved because I looked at download.qt.io and download the source, but I have found that the qt online installer installs the binaries of Qt,even in lgpl with qt6 so it is more simple, and I tried my program with it and now it works