Qt Creator: New plain C project without compiling and using Qt - qt-creator

I want to use QT Creator simply as text editor (fascinating editor) and compile outside the IDE.
I downloaded free version of QT and try to create new project:
New Project -> Non-Qt project -> Plain C Project (Creates a plain C project using qmake, not using the QT library) -> Choose... -> set URL ->
And next Creator says "No valid kits found".
When I try to Add new kit in Tools -> Options -> Build&Run -> QT Versions (currently empty) -> Add -> I can not find any files named "qmake.exe" that he asks.
Which workaround I can use to resolve it? Where should I find qmake.exe file???

You find it along with Qt libraries (bin/qmake)

Related

Not compiling with OpenCV, saving to predictions.png instead

OPENCV is not detecting or compiling please help me anyone
I am using yolov3 for object detection using darknet code everything works fine and i set the make file with
opencv=1
but still the same error occurs
[]
I had the same issue, to solve this,
Check if opencv path is present or not when u use cmake
(Opencv_DIR), if not provide the path
.. C:\Users\nimes\OpenCV\build\install\x64\vc16\bin then configure
and generate.
Provide the same path to your system environment variable.
Now use visual studio opening Darknet.sln , run All_Build -> build and then provide the path by
right click darknet -> properties, c/c++ -> additional include directories, similar to linker, now right click Install -> build
Now run the command in command prompt and opencv will up running.

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.

Qt Creator - Add source directories for reverse engineering

I'm using Qt creator as a visual interface for gdb to reverse engineer an open source app running on a remote (embedded) device.
The app is build using automake and doesn't have a .pro file and neither do the libraries it uses.
I would like to do static analysis of the code and am looking for a simple way to jump to function declarations for the library functions.
For example, I find a library function call press F2 (Shotcut for follow symbol under cursor) and that brings me to the header file.
Is there a way to include the library source directories without creating a .pro file for each of them?
You can import a Autotools project into QtCreator as explained in the documentation:
Enable the Autotools Plugin: Help > About Plugins > Build Systems > AutotoolsProjectManager
Restart QtCreator
Open Makefile.am throught File > Open File or Project

Compiling Qt5 project without QT Creator

We have built a large-ish program using QT Creator 5 on Fedora (easy install). We now have to compile for older distro's including RH5 and RH6.
I realize that QT Creator doesn't support the older versions of libstdc++ which ship with RH5 and RH6. However, can we still use make & qmake from the command line to compile our project under other distros?
Qt Creator gives you the commands.
Open Qt Creator and your project (on Fedora). Then go to the "Projects" tab (the one with a folder icon at the left of your window). The window should show you the compiling steps it uses for building your program (and the cleaning steps too). Most of the time. Copy those steps in a shell script, adapt it to your targeted plateform (RHEL in your case) and then compile the program by launching your script on the targeted plateform (i.e. RHEL). Otherwise you can using the traditional qmake && make on Red Hat.

Cannot make new project in QT on mac osx

I have been stuck on this for the past couple days. I have installed QT 4.8 and I have installed the libraries as well. But when I come to make a new project, I am only given the option of creating a plain C++ project with CMake. I do not have the option of using the automated qmake. And I have no idea why. If someone could please help it out it would be much appreciated.
Here is a picture of what I see.
When I see the kits in preferences, I see this.
But in the QT versions section, If I click on that to choose something, It is empty. There is nothing to choose from.
Add a Qt Version. Go to Qt Creator > Preferences... > Build & Run > Qt Versions.
Click Add.
On Mac, /usr is hidden by default, but you can access the path directly — press ⌘⇧G and type /usr into the popup.
Navigate to your qmake executable and click Open.
Under Helpers, expand Details, and click Build All.
Add a Qt Kit. Go to Qt Creator > Preferences... > Build & Run > Kits.
Click Add.
Select your compiler and Qt version.
Click OK.
Make sure the qmake-related plugins are enabled. Go to Qt Creator > About Plugins... and enable the following:
Build Systems > GenericProjectManager
Build Systems > Qt4ProjectManager
Build Systems > QtSupport
Qt Creator > ProjectExplorer
Qt Quick > QmlJSTools — As of Qt Creator 2.7.0, qmake projects now need QmlJSTools, which might not be enabled if you had a previous version of Qt Creator installed.
Then, click Close and restart Qt Creator. You should now be able to create qmake projects.

Resources