New install, error with "qmake".
-
Hi
just installed Serena
after i did
sudo apt-get install build-essential
and also with qt5-default
then it worked.
qt5-default is very important. -
@bogwon QtCreator does not use qmake from PATH - instead it uses qmake defined in the Kit you're using. The reason for this is that you can have as many different Qt versions installed as you need. Please check your Kit in "Tools/Options.../Build & Run/Kits" - are there any errors/warnings?
"The QT package promises to include everything you need to build QT programs" - this is not correct. It promises to include its own tools, but compiler are not part of it (except MinGW on Windows). Make sure g++ is installed. -
To add to my fellows who already noted it and since you are on Linux, you need to install g++ as well.
Note that I find it surprising that it's not already the case since you seem to have your distribution installed Qt development environment.
-
OK, we're making progress. g++ was missing, installed it and the qmake error went away. Now when I try to build an example it complains about GL/gl.h missing.
I have some OpenGL stuff installed, my old OpenGL program compiles and runs, so I am at a loss here as to what is needed.
I could have sworn that in my last go-round with Linux the c++ compiler was installed by default, and may even have been the same as the C compiler.
-
@bogwon C++ compiler is not the same as C compiler. GNU Compiler Collection (GCC) is a collection of different compilers, one of them is C++, it is called g++.
Regarding the error: install mesa-common-dev and libgl1-mesa-dev packages -
Besides qt5-default
this works every time
https://wiki.qt.io/Install_Qt_5_on_Ubuntu -
Great !
Then please mark the thread as soled using the "Topic Tools" button so that other forum users may know a solution has been found :)
-
-
@rohan22
HI
Did you install the Qt visual 2015 packet ?Also, did you go download the actual visual studio compiler from microsoft site ?
It must match. Qt version and Visual studio version
So it wont work if u installed say vs 2013 or vs 2017
-
Hi
Not sure what that is.
Make sure you check on C++ in VS installer. Its not on pr default.
Also no debugger pr default . must also be installed.
the b4 bit version
and make sure the Qt version macth your compiler.
https://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-msvc2015_64-5.8.0.exeIf all fails and you really just wanted to use Qt and not have to use Visual Studio
then try
https://download.qt.io/archive/qt/5.8/5.8.0/qt-opensource-windows-x86-mingw530-5.8.0.exe
It has compiler and debugger with :)