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. Build warnings on new project
Forum Updated to NodeBB v4.3 + New Features

Build warnings on new project

Scheduled Pinned Locked Moved Qt Creator and other tools
19 Posts 3 Posters 9.3k 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #9

    First, you must tell Qt Creator that you have a new Qt version (Settings, Qt4, then hit the add button and fill in the full path to qmake of the version you need).

    Then you must go to the settings of your current project (project view) and choose the newly added version.

    Then you should completely re-build you project to catch up the new settings etc. and link against the new version. Don't forget to choose the debug settings! Otherwise, the compiler will not generate debugging output.

    Breakpoints can be set at any time, befere debugging, as well as when the debugger runs.

    The "unable to read symbols..." message seem not to be critical, I suppose it's because the release versions of the libs are loaded.

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

    1 Reply Last reply
    0
    • mzimmersM Offline
      mzimmersM Offline
      mzimmers
      wrote on last edited by
      #10

      First, you must tell Qt Creator that you have a new Qt version (Settings, Qt4, then hit the add button and fill in the full path to qmake of the version you need).

      Settings being Preferences, I assume (I'm on a Mac).

      And, how do I know the version of qmake that I need? Currently, I seem to be using /usr/bin/qmake, which is a link to a file called qmake-4.7 in the same directory. Is this not the correct qmake?

      And, in your second paragraph, are you referring to Preferences -> Projects -> CMake? That's the only place I can find to enter anything like a pathname for a makefile.

      Thanks.

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

        Yep, it's preferences (Cmd-,).

        The 4.7.2 version is installed somewhere. I cannot tell you where, as I do compile the libs myself. You have to add the full path to qmake of that version. What version is /usr/bin/qmake (call /usr/bin/qmake -version in the Terminal.app).

        In the second paragraph I meant the project view of Qt creator. It's not in the preferences, it's the last but one icon in the mode selector on the left.

        !http://doc.qt.nokia.com/qtcreator-2.1/images/qtcreator-breakdown.png!

        You can change the "settings":http://doc.qt.nokia.com/qtcreator-2.1/creator-build-settings.html for the various projects there

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

        1 Reply Last reply
        0
        • mzimmersM Offline
          mzimmersM Offline
          mzimmers
          wrote on last edited by
          #12

          OK, I ran the qmake -version command, and it's telling me it's using 4.7.0. I guess this is expected, as I haven't found 4.7.2 yet.

          So, am I looking for a directory structure with 4.7.2 or something similar in it? I'm struggling to find things a bit from finder, as Spotlight only show visible files and directories, and Qt seems to put stuff in invisible areas (like /usr). Any tips on how I might chase the new version down?

          EDIT:

          Oh yeah...mdfind. Sorry for asking the same question twice in a 24-hour period. I'll get this stuff down; there's just a lot to digest at the moment.

          1 Reply Last reply
          0
          • mzimmersM Offline
            mzimmersM Offline
            mzimmers
            wrote on last edited by
            #13

            Here's another idea for finding the 4.7.2 stuff: do Qt installs create a log file? And if so, where would I find it? Maybe it will show the files created.

            1 Reply Last reply
            0
            • mzimmersM Offline
              mzimmersM Offline
              mzimmers
              wrote on last edited by
              #14

              Breakthrough! I couldn't find those files, because they weren't there. Evidently, I needed to download and install BOTH .dmg files for 4.7.2 for the Mac. (That wasn't clear to this tyro.)

              So...I went to the Qt4 preferences, and rebuilt the debugging helpers, turning the red X into a nice green check mark. So, progress definitely has been made. (I didn't use the add button as you suggested, but I think I'm OK here. Please let me know if you think otherwise.)

              Now, for the second step of your procedure: in my build settings, the Qt version pull-down says Qt in PATH. In my PATH, I'm pointing to /Developer/Tools/Qt, which has a qmake alias that points to version 4.7.2. So, again, I assume I'm OK, right?

              But...I'm still getting those stupid directory not found messages. I guess I'm not all the way home yet, am I?

              1 Reply Last reply
              0
              • mzimmersM Offline
                mzimmersM Offline
                mzimmers
                wrote on last edited by
                #15

                Aargh. I just realized I'm also still getting those "Unable to read symbols" messages at the start of a debugging session. Apparently, I missed a step somewhere; any idea what it might have been?

                Thanks.

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

                  The symlink and PATH version are ok. Everything seems ok from here.

                  I'm not sure what's going wrong here. I have a different setup, so I cannot test it. And unfortunately it's not allowed to put OS X onto a virtual machine to have a testing sandbox.

                  You might get some more infos on IRC channels #qt-creator and #qt on freenode.

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

                  1 Reply Last reply
                  0
                  • mzimmersM Offline
                    mzimmersM Offline
                    mzimmers
                    wrote on last edited by
                    #17

                    Is it possible I screwed up one of the steps you mentioned above? Anything else I should try rebuilding?

                    EDIT:

                    Here's the error message I get when I try to build:

                    bq. No rule to make target 'clock.cpp', needed by 'clock.o'. Stop.

                    clock is the first file alphabetically, so I assume it would happen with any.

                    I found a Makefile in the build-desktop directory, and deleted it. It was regenerated, so I guess that answers that question, but...it seems to be picking up some information about the build from somewhere.

                    So...what's the "right" way to put this back in order?

                    Thanks.

                    1 Reply Last reply
                    0
                    • mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #18

                      Oh, right...qmake -project.

                      I keep forgetting about those UNIX commands; I'm hoping to work exclusively from the GUI, if possible. If there is a GUI equivalent to this command, I'd appreciate someone telling me about it.

                      Thanks...

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        dhjdhj
                        wrote on last edited by
                        #19

                        I don't understand the claim that the problem with the warnings (directory not found) is fixed in the latest builds.

                        I'm running the very latest version of Qt (based on 4.8, not even any 4.7 variant) and I still see those warning messages every time I build on my Mac

                        I might add that I've seen this claim expressed in many different places, but it's not my experience.

                        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