Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved] Qt 4.8, MSVC2010, nmake, don't know how to make 'sub-src'
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt 4.8, MSVC2010, nmake, don't know how to make 'sub-src'

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 2.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.
  • P Offline
    P Offline
    postb99
    wrote on last edited by
    #1

    Hello,

    I try to compile Qt 4.8.5 on a Windows 7 machine, with VS 2010 SP1, Windows SDK 7.1. I need to build in x64 mode.

    Is this wiki page still accurate? http://qt-project.org/wiki/Building_Qt_Desktop_for_Windows_with_MSVC

    I did:

    got the Qt sources and installes OpenSSL binaries

    set up QTDIR, OPENSSL, PATH, QMAKESPEC (win32-msvc2010)

    added -MP2 option as stated on wiki page

    tried both configure listed below

    nmake sub-src fails with "don't know how to make 'sub-src'"

    What am I missing? Additionnally, am I sure it will perform a x64 build?
    I guess I don't need phonon.
    Thank you for any information.

    configure version 1:
    @configure -release -opensource -shared -ltcg -no-fast -exceptions -accessibility -stl -qt-sql-sqlite -no-qt3support -no-openvg -platform win32-msvc2010 -graphicssystem raster -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -no-dsp -no-vcproj -incredibuild-xge -plugin-manifests -qmake -process -rtti -mmx -3dnow -sse -sse2 -openssl -no-dbus -phonon -phonon-backend -multimedia -audio-backend -webkit -script -scripttools -declarative -arch windows -qt-style-windows -qt-style-windowsxp -qt-style-windowsvista -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -native-gestures
    @

    configure version 2:
    @configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010
    @

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Just run nmake, no need for sub-src. If you really want to skip building tools, you can also run this:
      @
      bin\qmake projects.pro QT_BUILD_PARTS="libs"
      nmake
      @

      (Z(:^

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        That wiki page looks overly complicated, to be honest. Building Qt is really much easier than that ;)

        (Z(:^

        1 Reply Last reply
        0
        • P Offline
          P Offline
          postb99
          wrote on last edited by
          #4

          Thanks, nmake alone works better. I intended to build libs then tools anyways.
          I agree, could anyone edit the wiki page? :-)

          But I'm missing something in my PATH or some other setting for headers to be found...
          @c:\qt\qt4.8.5\src\corelib\codecs\qisciicodec_p.h(56) : fatal error C1083: Cannot
          open include file: 'QtCore/qtextcodec.h': No such file or directory@

          I had a look at Qt5 corresponding page:

          http://qt-project.org/doc/qt-5/windows-building.html

          I'm currently searching in the forum about this include problem.

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Doh, even there they put unneeded calls :( You don't need to set any environment variables to be able to build Qt: configure does all this automatically. But it does look much better :)

            I think the best description of the build process is the page for "building from git":http://qt-project.org/wiki/Building_Qt_5_from_Git. But none of that is necessary for you, as you are compiling Qt 4.

            A standard unpack/configure/nmake should do everything without hiccups. I have never seen the error you've got, so sadly I can't help here.

            (Z(:^

            1 Reply Last reply
            0
            • P Offline
              P Offline
              postb99
              wrote on last edited by
              #6

              Solved. The wiki page really has unaccurate instructions now.
              And I had not clean sources. So I unpacked sources again, ran only
              @configure -mp -opensource -nomake demos -nomake examples -platform win32-msvc2010@ then

              @nmake@

              and just have to wait for compilation end :-) I see some warning about data types conversions but it seems it runs smootly.

              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