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. Compilation Issue - Qt 5.1, MinGW, OpenGL

Compilation Issue - Qt 5.1, MinGW, OpenGL

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 3 Posters 5.6k Views
  • 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.
  • A Offline
    A Offline
    asb89
    wrote on last edited by
    #1

    Hi everyone ! :)

    I'm trying to compile Qt 5.1 in order to take advantage of the Qt Mobility modules and get ready for mobile platforms but I'm facing a problem.

    I'm following this nice tutorial : http://qt-project.org/wiki/Building_Qt_5_from_Git
    But when I type
    @configure -developer-build -opensource -nomake examples -nomake tests@
    I get the following
    @Running configuration tests...
    WARNING: The DirectX SDK could not be detected:
    The library 'd3d9.lib' could not be found.
    Disabling the ANGLE backend.

    WARNING: Using OpenGL ES 2.0 without ANGLE.
    Specify -opengl desktop to use Open GL.
    The build will most likely fail.@

    I'm on Windows 8, d3d9.lib can be located there:
    @C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/Lib
    C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/IA64
    C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/x64
    C:/Program Files (x86)/Windows Kit/8.0/Lib/win8/um/x86
    C:/Program Files (x86)/Windows Kit/8.0/Lib/win8/um/x64@

    I tried setting DXSDK_DIR variable path to :
    @C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A
    C:/Program Files (x86)/Windows Kit/8.0/@

    Same problem for both.

    Do you have any idea on what i'm doing wrong ?
    Thank you very much :) :)

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Carel
      wrote on last edited by
      #2

      Try

      @ configure -developer-build -opensource -nomake examples -nomake tests -opengl desktop
      @

      That's how I got past the angle complaint. Alternatively you must install angle but I can't help much there.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgeyer
        wrote on last edited by
        #3

        It seems like the directory structure of the DirectX SDK included in the Windows 8 SDK isn't properly recognized (based on your directory structure and the "related code":http://qt.gitorious.org/qt/qtbase/blobs/stable/tools/configure/environment.cpp#line613).

        You might be able to work around by adding one of the directories containing d3d9.lib to the LIB environment variable. Alternatively you can install the DirectX SDK.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          asb89
          wrote on last edited by
          #4

          Thank you very much for your answers ! :)

          • So... does -opengl desktop keep enable the opengl es 2.0 ? Because that's is apparently the standard now to develop cross plateform apps... Anyways, when I use this tag I'm getting errors during the compilation time.

          • I tried to install the straight Direct X SDK on my machine but hit this "issue ":http://support.microsoft.com/kb/2728613 which the solution does not work for me ^^ And if I only install libs and includes of the SDK the installer finishes fine but Qt complains during the configure step about fxc.exe missing.

          • Then I change the code of the configure program to fit the Windows Kit path as you suggest.
            @QStringList Environment::libraryPaths(Compiler compiler)
            {
            QStringList libraryPaths;
            if (compiler == CC_MINGW) {
            libraryPaths = mingwPaths(detectMinGW(), "lib");
            }
            // MinGW: Although gcc doesn't care about LIB, qmake automatically adds it via -L
            libraryPaths += splitPathList(QString::fromLocal8Bit(qgetenv("LIB")));

            // Add Direct X SDK for ANGLE
            const QString directXSdk = detectDirectXSdk();
            if (!directXSdk.isEmpty()) {
            #ifdef Q_OS_WIN64
            libraryPaths += directXSdk + QLatin1String("/lib/x64");
            #else
            libraryPaths += directXSdk + QLatin1String("/Lib/win8/um/x86"); // ASB
            #endif
            }
            for(int i = 0; i < libraryPaths.size(); ++i)
            {
            cout << "lib+=" << libraryPaths[i].toStdString() << endl;
            }
            return libraryPaths;
            }@
            Running configuration tests...
            lib+=C:/Development/Qt/Qt-MinGW-5.0.1/Tools/MinGW/i686-w64-mingw32/lib
            lib+=C:/Development/Qt/Qt-MinGW-5.0.1/Tools/MinGW/lib
            lib+=C:/Program Files (x86)/Windows Kit/8.0/Lib/win8/um/x86
            WARNING: The DirectX SDK could not be detected:
            The library 'd3d9.lib' could not be found.
            Disabling the ANGLE backend.

          WARNING: Using OpenGL ES 2.0 without ANGLE.
          Specify -opengl desktop to use Open GL.
          The build will most likely fail.
          }@

          So... now my question would be, when will the awesome qt team release Qt 5.1 ? :D

          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