Solved Qt creator : Custom excecutable
-
I have just finished building Qt 5.9.1 on my Ubuntu 16.04. While trying to build the project in my Qt Creator 3.5.1, this is what i am getting in the general messages :
/opt/qt5.9.1_x86/mkspecs/features/toolchain.prf(50): system(execute) requires one or two arguments.
Project ERROR: Cannot run compiler 'g++'. Maybe you forgot to setup the environment?
Error while parsing file /home/karthi/Qt/untitled4/untitled4.pro. Giving up.
Warnings while parsing QML type information of /opt/qt5.9.1_x86/qml:
/opt/qt5.9.1_x86/qml/builtins.qmltypes:1:24: Reading only version 1.1 parts.
/opt/qt5.9.1_x86/qml/builtins.qmltypes:10:5: Expected only Component and ModuleApi object definitions.Build is also done and the bin file is made. While running the project it is asking for Custom Executable. I am also not able to view my headers or source files in the Project tab. Only the project folder is visible. But the files is there in the source folder.
Kindly help me with this issue. Thank you
-
Hi and welcome to devnet,
Might be a silly question but did you install the basic development tools on your machine ? Basically
apt-get install build-essential
? -
Hi SGaist,
Yes , i did. I am uploading a screen shot.! -
Hi, try installing or building Qt not in /opt but instead in your home directory.
-
@hskoglund Hi.. i already have 5.9.0, 4.8.0 and 5.8.0 in /opt/ and it works fine.
-
Ok but where is the gcc_64 subdirectory? I think Qt is happier if that is present :-)
-
@hskoglund can you help me with any other workaround ? Because i will be cross compiling the same version of Qt after testing it on my x86.
-
One more thing i have noticed is that, if i build the project and just close the Qt Creator and open it again. Then if i open the same project again, it works perfectly. No questions asked by Qt Creator.
-
What parameters did you use to build Qt 5.9.1
-
@SGaist This is the parameters i have given
./configure -tslib -opensource -confirm-license -skip wayland -nomake examples -c++std c++11 -v -prefix /opt/qt5.9.1_x86
-
I was not able to find the exact issue. But Qt Creator 4.3.0 is not having the issue.
Now should i mark this topic as solved ? -
Yes you can. Resolution is : upgrade Qt Creator.