Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtMobility build errors on Mac
Qt 6.11 is out! See what's new in the release blog

QtMobility build errors on Mac

Scheduled Pinned Locked Moved General and Desktop
11 Posts 4 Posters 5.5k 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.
  • J Offline
    J Offline
    jonricha
    wrote on last edited by
    #1

    Hi,

    I'm trying to build QtMobility on Mac so that I can:

    import Qt.multimedia 1.0

    in qml

    When I tried to build it on Mac 10.5.8, I got these build errors:

    qlandmarkfilehandler_lmx.cpp:116: error: cannot convert ‘QCoreXmlStreamReader*’
    to ‘QXmlStreamReader*’ in assignment
    qlandmarkfilehandler_lmx.cpp:121: error: invalid use of undefined type ‘struct Q
    XmlStreamReader’
    qlandmarkfilehandler_lmx_p.h:67: error: forward declaration of ‘struct QXmlStrea
    mReader’
    qlandmarkfilehandler_lmx.cpp:125: error: invalid use of undefined type ‘struct Q
    XmlStreamReader’
    qlandmarkfilehandler_lmx_p.h:67: error: forward declaration of ‘struct QXmlStrea
    mReader’
    qlandmarkfilehandler_lmx.cpp:126: error: invalid use of undefined type ‘struct Q
    XmlStreamReader’
    .
    .
    .

    Has anyone else had these problems? It sure would be nice if there was a binary delivery of QtMobility (if there is, I can't find it).

    Thanks,
    Jon

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      ygor
      wrote on last edited by
      #2

      Did you build your own Qt environment or are you using the pre-bundled one ?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jonricha
        wrote on last edited by
        #3

        Pre-bundled

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          ygor
          wrote on last edited by
          #4

          I am planning to use QtMobility for iCalendar input. I will be adding it to a scratch-built environment. I would suspect you will have to scratch-build a "sandbox" to use it. The pre-bundled setup is OK for simple stuff and to become familiar with the tools, but there are so many possibilities, it would be really tough to pre-build a bundle that covers all possibilities.

          I would consider posting info about how I build my environment. That should help you along.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jonricha
            wrote on last edited by
            #5

            I thought that what I was trying was simple (to play an audio file through qml)...

            But if this is really the only way to go, then I do appreciate the help :-)

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mutaphysis
              wrote on last edited by
              #6

              Hi,

              I was not able to build all of qt mobility with the bundled qt - but at least multimedia should be no problem

              @

              List all your modules here, I could not get location working out of the box

              ./configure -modules "multimedia gallery" -prefix /Developer/
              make
              make install
              @

              bye
              Henrik

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jonricha
                wrote on last edited by
                #7

                Hi Henrik,

                Thanks for the command line. I did try (successfully) building the multimedia module, but I don't think I set the prefix the way you did. I ended up getting a multimedia library that Qt Creator found (the underlining went away) but when I tried to run my QML app, the library couldn't be loaded. I think there might be some difference with the Qt version used to build mutlimedia and the one used by my Qt Creator...I'll have to check on that.

                I will also try building with the prefix that you've mentioned...being a newbie to Macs, I wasn't really sure what to put there...sure would be nice if the docs suggested a little more about that.

                Thanks,
                Jon

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mutaphysis
                  wrote on last edited by
                  #8

                  Yeah, prebuilt mac binaries would be super good ;)

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    ricardo.sato
                    wrote on last edited by
                    #9

                    I was having this same problem to build Qt Mobility on my OS X 10.6 and found the solution following another topic:
                    "http://developer.qt.nokia.com/forums/viewthread/1516":http://developer.qt.nokia.com/forums/viewthread/1516

                    A bug was reported:
                    "http://bugreports.qt.nokia.com/browse/QTMOBILITY-688":http://bugreports.qt.nokia.com/browse/QTMOBILITY-688

                    and the 1.1 branch has it fixed:
                    "http://qt.gitorious.org/qt-mobility/qt-mobility/commits/1.1":http://qt.gitorious.org/qt-mobility/qt-mobility/commits/1.1

                    Good luck ;)

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mutaphysis
                      wrote on last edited by
                      #10

                      Thanks!

                      I now can build all modules using
                      "http://qt.gitorious.org/qt-mobility/qt-mobility/archive-tarball/1.1":http://qt.gitorious.org/qt-mobility/qt-mobility/archive-tarball/1.1

                      1 Reply Last reply
                      0
                      • ? This user is from outside of this forum
                        ? This user is from outside of this forum
                        Guest
                        wrote on last edited by
                        #11

                        hi hhinrich, can you convert it to a link

                        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