Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Building Qt for Windows Mobile
Forum Updated to NodeBB v4.3 + New Features

Building Qt for Windows Mobile

Scheduled Pinned Locked Moved Mobile and Embedded
16 Posts 5 Posters 10.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.
  • K Offline
    K Offline
    koahnig
    wrote on last edited by
    #7

    I have windows 7 64 bit systems.

    I have done also already on win xp 32bit with 4.5.? and 4.6.0 and 4.6.2. There was basically no difference.

    Vote the answer(s) that helped you to solve your issue(s)

    1 Reply Last reply
    0
    • L Offline
      L Offline
      ludde
      wrote on last edited by
      #8

      Just FYI, I have successfully built Qt 4.7.2 using the wincewm60professional-msvc2008 mkspec. Only problem I had was I had to exclude the examples (using -nomake examples), because the paths became too long. But that does not seem to be the problem you are running into. Have not tried to build 4.7.3 yet.

      There's one thing in what you say above that sounds slightly strange though. You point to folder in the source tree - C:\Qt\4.7.3\src\corelib\tmp\moc\debug_shared - which really should be in the build tree. Are you trying to use your Windows build tree as source tree for your Windows Mobile build? Might work, but I would use a clean source tree for shadow building. You can do all your builds from the same source tree, but then I think you should do them all as shadow builds - I use this to create 32 bit Windows, 64 bit Windows and Windows Mobile builds from one source tree.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        ludde
        wrote on last edited by
        #9

        Just tried building 4.7.3, and had no problems with that either. And I'm also building on a Windows 7 64 bit machine. My configure.cache contains:

        @
        -platform
        win32-msvc2008
        -xplatform
        wincewm60professional-msvc2008
        -no-qt3support
        -debug-and-release
        -opensource
        -exceptions
        -stl
        -rtti
        -nomake
        examples
        @

        1 Reply Last reply
        0
        • G Offline
          G Offline
          gtSasha
          wrote on last edited by
          #10

          I got further in my efforts.

          This configuration at least produces no compile errors:

          c:\Qt\4.7.3-mobile>c:\Qt\4.7.3\configure -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008 -no-qt3support -no-webkit -no-phonon -no-phonon-backend -opensource -release -qt-sql-sqlite -nomake examples -nomake demos

          It gets to the point where it is actually linking the library but then it errors-out complaining about SSL-socket symbols.

          qabstractsocket.obj : error LNK2019: unresolved external symbol "public: bool __
          cdecl QSslSocket::waitForDisconnected(int)" (?waitForDisconnected@QSslSocket@@QA
          A_NH@Z) referenced in function "public: bool __cdecl QAbstractSocket::waitForDis
          connected(int)" (?waitForDisconnected@QAbstractSocket@@QAA_NH@Z)
          ....\lib\QtNetwork4.dll : fatal error LNK1120: 31 unresolved externals

          Is there a special option I need to specify to make sure that ssl is compiled?

          Thanks

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

            Thank you ludde,

            I am trying again to build Qt for WinMo but still running into the same problems. I tried on three different computers and fail every time.

            Are there detailed step-by-step instructions on how to build Qt for Windows Mobile? I tried following this: http://www.qtcentre.org/wiki/index.php?title=Building_Qt_on_Windows_CE but it does not work. Since it is working for you and so many others it must be that I am not configuring it correctly.

            Here are my steps:

            1. I create folders named c:\Qt\4.7.3-mobile and c:\Qt\4.7.3-mobile\bin

            2. Add C:\Qt\4.7.3\bin and C:\Qt\4.7.3-mobile\bin to the PATH environment variable

            3. Open Visual Studio 2008 Command Prompt, change to c:\Qt\4.7.3-mobile and execute
              c:\Qt\4.7.3-mobile>c:\Qt\4.7.3\configure -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008 -no-qt3support -no-webkit -no-phonon -no-phonon-backend -opensource -release -qt-sql-sqlite -nomake examples -nomake demos

            I've also tried replicating your options but it would not work either.

            1. The configure program runs for a while and creates a folder structure inside c:\Qt\4.7.3-mobile with a bunch of makefiles

            2. setcepaths wincewm60professional-msvc2008

            3. nmake

            The nmake program runs for a while until it fails.

            You have mentioned something about a clean source tree for shadow building. What does it mean? It builds WinMo Qt in c:\Qt\4.7.3-mobile using sources from c:\Qt\4.7.3 - where Qt got originally installed. The Qt originally installed is the one for windows (http://qt.nokia.com/downloads/windows-cpp-vs2008). Are you saying that there is a different version of Qt or Qt source code that I need to install? Where do I get that?

            Thanks again.

            1 Reply Last reply
            0
            • L Offline
              L Offline
              ludde
              wrote on last edited by
              #12

              Hi again,

              By "clean source tree" I mean a freshly unpacked "Qt everywhere" source distribution. Seems you are not using a source distribution at all, but a pre-built Windows distribtuion, which is probably why it's not working. You can get the source distribution e.g. from "http://qt.nokia.com/downloads/win-ce-cpp":http://qt.nokia.com/downloads/win-ce-cpp.

              Also had a look at the Qt Centre page you refer too, but cannot really comment on that. Seems they are using Visual Studio to build Qt, which I have never attempted.

              If you still cannot make it work I have a .bat file I use for building that I could post. Has always worked for me, and saves you some tedious typing. (I don't have it where I am right now, though.)

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gtSasha
                wrote on last edited by
                #13

                It worked!!!!

                Thank you very much!

                I have just one tiny issue left. I can't integrate the new Qt build into Visual Studio 2008 when I try to add the version through the Qt/Option menu it complains that: This Qt version is not compatible to your current Visual Studio (Qt builds VS version 0, current version: 1500)

                I've searched this forum and the web in general and it seems that it is a VS plug-in issue. People were able to resolve it by upgrading/downgrading their plug-in. I have 1.1.9 and it does not work.

                Has anyone here been able to successfully use some version of VS plug-in with win-ce build of 4.7.3? What is the right plug-in version for 4.7.3?

                Thanks.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  ludde
                  wrote on last edited by
                  #14

                  Glad to hear it worked! I mainly use Qt Creator (even though I use the VS compiler), so I'm afraid I can't help you with the VS plugin problem. 1.1.9 seems to be the latest version, so it should work with 4.7.3.

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    L.MCH
                    wrote on last edited by
                    #15

                    The latest VS plugins have problems when trying to recognize the Qt version when you add a new qt build.

                    AFAIK at least for VS2005 the latest version without those problems is 1.1.7

                    I discovered it the hard way, I had built 4.7.2 for CE 6.0, added it to a VS project (with 1.1.7 plugin) and everything was fine, later upgraded the VS plugin (keeping the already integrated builds) and everything was fine too, then when I built 4.7.3 for CE 6.0 and tried to integrate it to VS it produced the same error reported by gtSasha.

                    After uninstalling 1.1.9 and reinstalling 1.1.7 everything worked fine as before.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      shixiaoyou
                      wrote on last edited by
                      #16

                      Dear getsasha:

                      how to fix this issue? i meet same issue when i build qt source code
                      c:\Qt\4.7.3\src\corelib\io\qtextstream.cpp(3398) : fatal error C1083: Cannot open include file: ‘qtextstream.moc’: No such file or directory.

                      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