Results 1 to 9 of 9

Thread: Qt Creator and plain C project without compiling

  1. #1

    Default Qt Creator and plain C project without compiling

    Please help me to install Qt Creator correctly to use it as simply text editor (like it).

    My project: C language, without any frameworks. Without building and compiling (will do in another IDE).

    Which components should I click when installation master of free Qt Creator asks? I checked IDE but all ticks from other components switched off (to minimize memory volume).
    After that when I tried 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 ->

    I got "No valid kits found".

    I tried to add version by Tools -> Options -> Build&Run -> QT Versions (currently empty) -> Add -> and obviously no qmake.exe files existed.

    Is it possible somehow to create a project without installing components? I need only a project tree, SRV and editor.
    If not, how can I install QT Creator in minimalistic way (only to provide qmake.exe file to the project wizard as it asks). I tried to leave some ticks as they were set by default, but in that case installation downloaded so much files from the Internet that I aborted the process (limited in downloading megabytes)...

  2. #2
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Creator and plain C project without compiling

    You need a kit, but a kit does not require Qt. Just set a compiler and debugger, and choose "None" for Qt version. Voila!

  3. #3

    Default Re: Qt Creator and plain C project without compiling

    Quote Originally Posted by Brandybuck View Post
    You need a kit, but a kit does not require Qt. Just set a compiler and debugger, and choose "None" for Qt version. Voila!
    The thing is that I am not going to compile and debug in Creator. Does I need to set it anyway?
    Which components can I check in installation for minimalistic installation?

    By default it is:
    компоненты.jpg

    What can I discard? All of this download too much...
    Last edited by elusive; 16th October 2014 at 06:36.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Creator and plain C project without compiling

    There is a Qt Creator only download runnig 70-90MB depending on platform.
    http://qt-project.org/downloads

    You are, presumably, going to compile this program somehow so you must have a C compiler and debugger you can point Qt Creator at to keep it happy (even if you never use it). If you don't what to use Qt then creating a project that depends on qmake will not work. The File menu allows you to create new source files completely independent of any project creation wizard.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Creator and plain C project without compiling

    I think a feasible option is to use the option to import an existing non-qmake project.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6

    Default Re: Qt Creator and plain C project without compiling

    Quote Originally Posted by ChrisW67 View Post
    There is a Qt Creator only download runnig 70-90MB depending on platform.
    http://qt-project.org/downloads

    You are, presumably, going to compile this program somehow so you must have a C compiler and debugger you can point Qt Creator at to keep it happy (even if you never use it).
    I am going to compile the project outside QtCreator - it doesn't support the Compiler that I need. In IDE that support this compiler text editor is very very poor....
    In the end I left only MinGW and IDE, installed and managed to create the project in the end. Thank you!

    Still another issue arose... I am not sure that I can post another question in another branch, but still probably you can help me.
    Compiler that I need has additional to normal-C keywords (special for microprocessor). QtCreator's compiler surely not and it markes half of the text as wrong. It is inconvenient.

    Is it possible to tune MinGW compiler so that it won't mark a specified list of words? Or add to it somehow 'adds' from another compiler?...

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Creator and plain C project without compiling

    Quote Originally Posted by elusive View Post
    I am going to compile the project outside QtCreator - it doesn't support the Compiler that I need.
    What is that compiler by the way? Creator doesn't really care what compiler you use, it just calls make and parses the compiler output so you can practically attach any compiler that you want to it.

    Still another issue arose... I am not sure that I can post another question in another branch, but still probably you can help me.
    Compiler that I need has additional to normal-C keywords (special for microprocessor). QtCreator's compiler surely not and it markes half of the text as wrong. It is inconvenient.
    Qt Creator does not have any "compiler", it only has a code model parser which obviously parses the C dialect it understands. For imported projects there is a project.defines file where you can add custom directives Creator will "understand", so if you have a 'mycustomkeyword' keyword, you can add the following line to that file:

    Qt Code:
    1. #define mycustomkeyword
    To copy to clipboard, switch view to plain text mode 
    and Creator will stop underlining it as unknown. However if this keyword has arguments Creator might still complain about the language grammar.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  8. #8
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Creator and plain C project without compiling

    If you are only going to use Qt Creator as a text editor, then simply open the file you want to edit. Qt Creator should not grumble unless you try to do any project related things.

  9. #9
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Creator and plain C project without compiling

    If all you want is a text editor that understands C indentation and so forth, then use Notepad++ and add any plugins you might want to enhance it. A whole lot easier than using QtCreator as simply a text editor.

    Or you can download the free Microsoft Visual Studio Express Edition.

Similar Threads

  1. Replies: 4
    Last Post: 10th October 2014, 15:10
  2. project plain c++ without qt library
    By crisHerald in forum Newbie
    Replies: 7
    Last Post: 22nd May 2013, 21:18
  3. Qt Creator Plain C++ Project won't run/debug...
    By jiapei100 in forum Qt Programming
    Replies: 9
    Last Post: 26th July 2012, 18:09
  4. Qt Creator is not compiling my project.
    By LastElemtnal in forum Qt Tools
    Replies: 2
    Last Post: 4th April 2012, 13:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.