[SOLVED] Qt on Slackware Linux
-
wrote on 17 Mar 2014, 15:35 last edited by
There is a space between qmake and -recursive
-
wrote on 17 Mar 2014, 16:12 last edited by
it says: qmake command not found,
also can't find a qmake or qmake-qt5 withwhich qmake
or
which qmake-qt5
btw: i used the online installer straight from the qt website(.run)
-
wrote on 17 Mar 2014, 16:18 last edited by
The try to run qmake with full path.
Let say you have Qt installed in /home/user/Qt5.2.1
then run it
@
/home/user/Qt5.2.1/5.2.1/gcc/bin/qmake
@ -
wrote on 18 Mar 2014, 08:01 last edited by
thats the output in the terminal:
@
bash-4.2$ make
/home/reidom1994/Qt/5.2.1/gcc_64/bin/uic ../GUI_Hello_World/mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt/5.2.1/gcc_64/mkspecs/linux-g++ -I../GUI_Hello_World -I../../Qt/5.2.1/gcc_64/include -I../../Qt/5.2.1/gcc_64/include/QtWidgets -I../../Qt/5.2.1/gcc_64/include/QtGui -I../../Qt/5.2.1/gcc_64/include/QtCore -I. -I. -I. -o main.o ../GUI_Hello_World/main.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt/5.2.1/gcc_64/mkspecs/linux-g++ -I../GUI_Hello_World -I../../Qt/5.2.1/gcc_64/include -I../../Qt/5.2.1/gcc_64/include/QtWidgets -I../../Qt/5.2.1/gcc_64/include/QtGui -I../../Qt/5.2.1/gcc_64/include/QtCore -I. -I. -I. -o mainwindow.o ../GUI_Hello_World/mainwindow.cpp
/home/reidom1994/Qt/5.2.1/gcc_64/bin/moc -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt/5.2.1/gcc_64/mkspecs/linux-g++ -I../GUI_Hello_World -I../../Qt/5.2.1/gcc_64/include -I../../Qt/5.2.1/gcc_64/include/QtWidgets -I../../Qt/5.2.1/gcc_64/include/QtGui -I../../Qt/5.2.1/gcc_64/include/QtCore -I. -I. -I. ../GUI_Hello_World/mainwindow.h -o moc_mainwindow.cpp
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt/5.2.1/gcc_64/mkspecs/linux-g++ -I../GUI_Hello_World -I../../Qt/5.2.1/gcc_64/include -I../../Qt/5.2.1/gcc_64/include/QtWidgets -I../../Qt/5.2.1/gcc_64/include/QtGui -I../../Qt/5.2.1/gcc_64/include/QtCore -I. -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
g++ -Wl,-O1 -Wl,-rpath,/home/reidom1994/Qt/5.2.1/gcc_64 -Wl,-rpath,/home/reidom1994/Qt/5.2.1/gcc_64/lib -o GUI_Hello_World main.o mainwindow.o moc_mainwindow.o -L/home/reidom1994/Qt/5.2.1/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread @ -
wrote on 18 Mar 2014, 14:25 last edited by
I don't see any error message in the output.
Does it mean that issue is gone ?
Does your app works without any error messages ? -
wrote on 19 Mar 2014, 07:47 last edited by
It still appears in the application output :
Starting /home/user/QT C++/myproject/myproject...
libGL error: failed to load driver: i965
libGL error: Try again with LIBGL_DEBUG=verbose for more details.Application still works fine.
I have no idea, but it's working so doesn't matter i think xD
-
wrote on 19 Mar 2014, 17:40 last edited by
What if you will run your app with LIBGL_DEBUG=verbose
something like
@
export LIBGL_DEBUG=verbose
/home/user/QT C++/myproject/myproject…
@If it does not bother you then you can run your app and redirect all output to /dev/null
@
/home/user/QT C++/myproject/myproject… > /dev/null 2>&1
@ -
wrote on 20 Mar 2014, 07:58 last edited by
first one without root:
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/i965_dri.so
libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: i965
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/swrast_dri.sowith root:
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/i965_dri.so
libGL: Can't open configuration file /root/.drirc: No such file or directory.I also tried the second one.
Whats the reason, to redirect the output to /dev/null ^^ -
wrote on 20 Mar 2014, 16:43 last edited by
About /dev/null.
It will hide your error messages and you will not worry about it. :-)Some GNU/Linuxes have a "video" group and only members of that group are allowed to use opengl.
Could you check if Slackware has such restriction. If so then add your self to that video group re-login and try to run your app again. -
wrote on 21 Mar 2014, 08:01 last edited by
i just added my self with $usermod -aG video <username>
-> in /etc/group its says video:x:18:but same error still appears.
-
wrote on 21 Mar 2014, 13:54 last edited by
do you see the same error if you run "glxinfo":http://dri.freedesktop.org/wiki/glxinfo/ or glxgears
@
glxinfo
glxgears
@ -
wrote on 21 Mar 2014, 14:41 last edited by
under normal user: for both
libGL error: failed to load driver: i965
libGL error: Try again with LIBGL_DEBUG=verbose for more details.under root:
its seems to run without errors.
-
wrote on 21 Mar 2014, 14:52 last edited by
what does the following commands show
@
id
ls -l /dev/dri
@ -
wrote on 21 Mar 2014, 15:56 last edited by
I'll try it on monday when i'm on my workstation pc again :)
-
wrote on 24 Mar 2014, 07:40 last edited by
bash-4.2$ id
uid=1000(username) gid=100(users) groups=100(users),18(video)bash-4.2$ ls -l /dev/dri
total 0
crw-rw---- 1 root video 226, 0 Mar 24 08:32 card0
crw-rw---- 1 root video 226, 64 Mar 24 08:32 controlD64 -
wrote on 24 Mar 2014, 16:12 last edited by
I'm running out of ideas :-)
Maybe this last oneDo you have Mesa libraries installed?
What ldd on your app shows?
@
ldd yourapp | grep libGL
@And one more.
When you start qtcreator does it show the same error as your app?
If you build any Qt examples and start them do they show the same error? -
wrote on 25 Mar 2014, 08:50 last edited by
bash-4.2$ ldd myapp | grep libGL
libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f79fab6b000)somehow i get no error anymore, lol.
(i started the same project)I also started an OpenGL example. no errors.
:)idk what happened.
-
wrote on 25 Mar 2014, 14:19 last edited by
Glad to hear that issue is resolved.
-
wrote on 25 Mar 2014, 15:27 last edited by
thank you ! :)
-
wrote on 25 Mar 2014, 15:46 last edited by
Could you put [SOLVED] in front of the title of your initial post.
22/32