QtCreator does not open terminal for building - terminal

I was using qmake build system in my QtCreator 4.1.0-beta1, everything was fine. When I ran my project, a new terminal popped up.
When I switched to CMake build system, no new terminal window was created anymore. How can I force QtCreator to run the build in a new terminal window like it does with qmake?

Projects -> Build & Run -> Run -> Check "Run in terminal"

Related

Xcode debug executable failed

I am working on a sketch plugin project with xcode. A sketch plugin can be understood as a framework bundle. In the scheme of my project, i set the Execatable to Sketch.app ,and i also checed the Debug executable box. When i run my project, i got Message from debugger: unable to attach from the console and the Sketch.app cannot be opened. But when the Debug executable box is not checked, my project worked. But without the Debug executable be checked, i cannot debug my code.
Can someone help me out ?
The xcode version is 10.1 and the my mac version is 10.14.6.
enter image description here
Quit Xcode
Open the Terminal.app
rm -rf ~/Library/Developer/Xcode
I can Xcode debugging
Please check this solution
1. Check if all frameworks are loaded successfully
2. File Menu -> Project Settings -> "Legacy Build System".
3. Product -> Scheme -> Edit Scheme... -> Run -> Info -> Launch = Automatically

How to set a number of parallel jobs for make in Cmake QtCreator project?

My project is managed by CMake and I use QtCreator as a main IDE.
I want to make QtCreator run make -j number_here command when it launches a build task to speed it up, but I am unable to find a corresponding configuration in QtCreator's project settings UI. I became somewhat lost in all it's settings.
Should I modify CMakeLists.txt file somehow or is it configurable from the QtCreator's UI?
You can configure this in Qt Creator:
Go to: left panel/Projects/Build Settings.
Note: On the left Build & Run, select the build of your targeted "Kit" if you have several.
Build Steps (below CMake options), click Details.
In Tools arguments: add -jnumber_here.
Profit!
ref: https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-build-j

cmake is already in PATH, why does QT still say "no CMake executable was found in the path"

My OS is MAC and I am trying to configure a project.
I installed cmake using brew install cmake.
cmake is installed and is on the PATH:
cjdeMacBook-Pro:~ cjz$ which cmake
/usr/local/bin/cmake
cjdeMacBook-Pro:~ cjz$ echo $PATH
/anaconda2/bin:/Users/cjz/dcm4che-5.10.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
As we can see, cmake is already in $PATH, but when I try to config the project, QT says that "no CMake executable was found in the path"
What is going on?
in QtCreator goto Tools -> Options... -> Build & Run click on Cmake tab and look if your cmake found. If not add it there.
If you still have this error. Open your project settings -> Build -> Build Environment click on details and look there if the PATH variable is correct.
If you still have this error. Build project from shell and use some verbosity options to see more output for your error.
For MacOSX an installer is available. It is quite easy to use it and to update your CMake installation. The app is installed into Applications.
Go to QtCreator -> Options -> Build & Run -> Tab CMake. Add an entry or select the current one. On the bottom set the path by using the Select... button. Just choice the CMake app. That's all.

How can I run my *.pro file with QtCreator?

All.
I just setup Ubuntu 14.04 and installed QT5.4 using command below. (VMware)
$ wget http://download.qt-project.org/development_releases/qt/5.4/5.4.0-rc/qt-opensource-linux-x86-5.4.0-rc.run
$ chmod +x qt-opensource-linux-x86-5.4.0-rc.run
$ ./qt-opensource-linux-x86-5.4.0-rc.run
QtCreator could be installed in this step.
BUT I cannot execute *.pro file for my Qt Project.
Type of this is 'plain text document (text/plain)' and executed by gedit.
So I tried to change application for executing QtCreator there aren't in the Application List.
I am executing QtCreator by running qtcreator file in '/home/XXX/Qt5.4.0/Tools/QtCreator/bin/'.
In addition, when I find QtCreator in Ubuntu SW center, QtCreator is not installed.
Must I install QtCreator and apply QT5.4 kit again?
Or Can I execute *.pro by my current QtCreator?
I am not a native English speaker so I am sorry for my bad English.
I couldn't find any information about my problem using my language.
PS) I prepared image to understand my problem, I can not post it because I don't have 10 reputation.... sorry.
Thanks,
Honken
You don't execute *.pro files with QtCreator. *.pro files are to be executed using qmake in console ex.
$ qmake yourProject.pro
For more infomation see Qmake Tutorial
If you want to use QtCreator to build your project, you have to:
Start QtCreator
Select File -> Open project
Choose your *.pro file from the disk.
Select Build -> Run qmake

How to run "make install" from Xcode

I have custom Makefile and External build target in Xcode.
When I click "Build" it runs "make"
When I click "Clear" it runs "make clean"
How to run "make install" (or any other target) from Xcode?
(btw, this is AVR project and xcode project file was created using avr-project tool shipped with Crosspack-AVR)
$xcodebuild install
from the command line within the project directory, just like make.
you can create a new external target and call make install or xcodebuild install

Resources