Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Source files do not appear
Forum Updated to NodeBB v4.3 + New Features

Source files do not appear

Scheduled Pinned Locked Moved Qt Creator and other tools
23 Posts 5 Posters 34.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mannion
    wrote on last edited by
    #10

    It seems to work if I clear the build directory paths with set lib= and set include= within the Qt command prompt. Has anyone got an automated way of achieving this. Thanks for the help with Qt Creators IDE though that all seems fine now.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mannion
      wrote on last edited by
      #11

      No the problem keeps recurring.

      I can build everything within Qt command prompt using:
      qmake -project
      qmake
      make

      (make is a batch file to call the MinGW gcc compiler). If I do a build in Qt command prompt then I can edit the source within Qt Creator and build without any problems. If I don't do the Qt command prompt build first then Qt Creator hits the MSVS conflict problem in the build. Any ideas?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #12

        In Qt Creator's project view on tab build settings on the very bottom you can tweak the environment. There is a checkbox "delete system environment" (or something like that, I have a German version). You can try to check this and get rid of the "polluted" env vars.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mannion
          wrote on last edited by
          #13

          Thankyou that seems to do the trick. Checking the clean environment box in Projects mode under Build Settings and then setting all of the environment variables solves the issue. If yoiu arte using one of the example applications you have to create a fresh project file though to avoid using the System Environment variables.. So for example with examples/widgets/scribble below the existing project file was:

          @HEADERS = mainwindow.h
          scribblearea.h
          SOURCES = main.cpp
          mainwindow.cpp
          scribblearea.cpp

          install

          target.path = $$[QT_INSTALL_EXAMPLES]/widgets/scribble
          sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS scribble.pro
          sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/scribble
          INSTALLS += target sources

          symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri)@

          After running Qmake -project and creating a new project file, below evrerything is fine.

          @######################################################################

          Automatically generated by qmake (2.01a) Fri 3. Dec 10:02:34 2010

          ######################################################################

          TEMPLATE = app
          TARGET =
          DEPENDPATH += .
          INCLUDEPATH += .

          Input

          HEADERS += mainwindow.h scribblearea.h
          SOURCES += main.cpp mainwindow.cpp scribblearea.cpp@

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mannion
            wrote on last edited by
            #14

            One more question though. Is there a quicker way of doing this rather than setting up all of the environment variables manually for each project?

            I would use MSVS C++ compilers but with the LGPL there is no support for using MSVS C++. Is this correct? This problem must be common for developers who want to use the LGPL or developers who have a commercial license and have clients who want them to develop under the LGPL for their own future maintenance requirements.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #15

              As far as I know there is no limitation on compiling the LGPL version with Visual Studio. It seems there are just no prebuilt binaries available, so you will have to compile Qt yourself (that's not difficult, just get you some coffee or, better, have lunch in the meantime :-) )

              You will find some instructions on how to compile Qt on Windows here: http://doc.qt.nokia.com/4.7/install-win.html

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mannion
                wrote on last edited by
                #16

                It was on that URL

                http://doc.qt.nokia.com/4.7/install-win.html

                where I was put off using the LGLP of Qt with Visual Studio.

                bq. Open Source Versions of Qt is not officially supported for use with any version of Visual Studio. Integration with Visual Studio is available as part of the Qt Commercial Edition.

                Do you advise using Visual Studio over Qt Creator? I have MSVS 6.0 and MSVS 2005.

                Thanks again for your help.

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #17

                  It's not supported does not mean, it does not work :-)

                  As the commercial versions are supported by Nokia, I don't see any reasons not to go with MSVS. Although the Visual Studio add in is only available for the commercial users of Qt. Without that, developing Qt in MSVS is quite cumbersome.

                  I don't know if the open source version of Qt Creator does support MSVS. But as it calls command line tools only, I cannot see any reason why not. I'd give it a try.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DenisKormalev
                    wrote on last edited by
                    #18

                    Volker, quote from qt.nokia.com:

                    bq. Want to use Qt together with Visual Studio on Windows? Download the Visual-Studio add-in, which can be used for development together with all Qt licenses.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #19

                      Citing http://doc.qt.nokia.com/4.7/install-win.html

                      bq. Open Source Versions of Qt is not officially supported for use with any version of Visual Studio. Integration with Visual Studio is available as part of the Qt Commercial Edition.

                      So the Qt docs are not up to date and consistent everywhere. Good to hear, that I'm wrong :-)

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        DenisKormalev
                        wrote on last edited by
                        #20

                        Volker, yes, I think that info at downloads page at qt.nokia.com is more up to date than docs.

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goetz
                          wrote on last edited by
                          #21

                          Denis, could you add the link to the page to your previous post - would be handy to compare both for other readers.

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            DenisKormalev
                            wrote on last edited by
                            #22

                            Volker, it is "http://qt.nokia.com/downloads":http://qt.nokia.com/downloads . Text itself is at bottom of the page under "Other downloads" header

                            1 Reply Last reply
                            0
                            • TRI99ERT Offline
                              TRI99ERT Offline
                              TRI99ER
                              wrote on last edited by
                              #23
                              This post is deleted!
                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved