Unsolved Creator has dependency analysis capabilities for individual Fortran, C and C++ source code files?
-
My current work is transplanting one project in Netbeans to Qt Creator, and Netbeans provides automatic dependency checking, so the dependency checking of CMake would not work. My question is weather Qt Creator has dependency analysis capabilities for individual Fortran, C and C++ source code files without CMake?
-
QtCreator is just an IDE, it uses build systems to manage projects and their dependencies.
You can use QMake or CMake.
I'm quite sure that Netbeans uses a build system as well and does not track the dependencies by itself, but I may be wrong. -
@Need4Speak
Talking about qmake (the build system that's usually used with QtCreator), yes it has dependency tree building, but for targets (binaries). Dependency for files makes no sense anyway. -
@jsulm,”Automatic dependency checking works for C/C++ projects that were created in the IDE (managed projects). The IDE builds dependency checking logic into the generated Makefile. “ at https://netbeans.org/kb/docs/cnd/depchecking.html. Does not it mean Netbeans track the dependencies by generate makefile? Does Qt Creator own ability like this? Thanks a lot for your reply. ( ^_^ )
-
@kshegunov , "NetBeans IDE supports automatic checking of file dependencies and does its best to make incremental rebuild work correctly." at "https://netbeans.org/kb/docs/cnd/depchecking.html". What i want to know is weather Qt Creattor support incremental build natively.:-)
-
@Need4Speak said:
What i want to know is weather Qt Creattor support incremental build natively.:-)
Although, the term "file dependency" is the first time I hear when talking about building, the answer is "Yes!". Qt Creator wouldn't be of much use if I had to rebuild whole projects for a missed brace, would it?
It does that by default, you don't need to do anything but click "Build". When you want a full build, there's the "Full rebuild" option. -
@kshegunov , thanks a lot, you help me! And could you please show some evidences so i can persuade my boss? Thanks again. :-)
-
I don't have "proof" per se. You could browse the Qt Creator documentation though.
These might be of use:
http://doc.qt.io/qtcreator/creator-building-targets.html
http://doc.qt.io/qtcreator/creator-build-settings.html -
@kshegunov ,thanks, the “To build and clean projects without dependencies, select the Build Without Dependencies, Rebuild Without Dependencies, and Clean Without Dependencies options in the context menu in the Projects view.” at http://doc.qt.io/qtcreator/creator-building-targets.html helps. Furthermore, are there any other docs, references of Qt Creator which more detail than offical doc? Offical doc seems to simple than other IDEs' doc.
-
@Need4Speak said:
To build and clean projects without dependencies, select the Build Without Dependencies, Rebuild Without Dependencies, and Clean Without Dependencies options in the context menu in the Projects view.
I suspect this is not what you're thinking of. These options are for ignoring the dependency tree for the projects (you can have multiple of those in one session) and building a single one, without the others. (http://doc.qt.io/qtcreator/creator-build-dependencies.html)
My advice would be to just download the IDE, try it out yourself on a few simple testing projects see if it works as you want.Furthermore, are there any other docs, references of Qt Creator which more detail than offical doc? Offical doc seems to simple than other IDEs' doc.
I don't know of any, maybe besides the Qt wiki, but I don't often visit either.
-
Hi,
Official doc seems too simple ? Then it's a good news :)
More seriously, the goal of Qt Creator is to be simple to use and its documentation follows the same objective: be clear and easy to follow.
This allows for new comers to get started quickly and painlessly.