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. <direct.h> not found from /Qt/5.9.1/mingw53_32/mkspecs/win32-g++/qplatformdefs.h

<direct.h> not found from /Qt/5.9.1/mingw53_32/mkspecs/win32-g++/qplatformdefs.h

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 849 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.
  • ModelTechM Offline
    ModelTechM Offline
    ModelTech
    wrote on last edited by ModelTech
    #1

    I am trying to compile this library, which worked perfectly on linux (Qt5.7) but when doing so under windows (Qt5.9.1), I get a strange error that the included 'direct.h' in /Qt/5.9.1/mingw53_32/mkspecs/win32-g++/qplatformdefs.h cannot be found. Any suggestions?

    So far, thw windows installed Qt5.9.1 has always worked for all my other projects...

    aha_1980A 1 Reply Last reply
    0
    • ModelTechM ModelTech

      I am trying to compile this library, which worked perfectly on linux (Qt5.7) but when doing so under windows (Qt5.9.1), I get a strange error that the included 'direct.h' in /Qt/5.9.1/mingw53_32/mkspecs/win32-g++/qplatformdefs.h cannot be found. Any suggestions?

      So far, thw windows installed Qt5.9.1 has always worked for all my other projects...

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by aha_1980
      #2

      hi @ModelTech,

      the library has not been updated since 3 years, so it's likely that it won't compile with newer Qt's.

      have you seen the (still open) pull request? it contains build fixes for Qt 5.8, maybe they help you.

      regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • ModelTechM Offline
        ModelTechM Offline
        ModelTech
        wrote on last edited by
        #3

        I fixed the bug as they suggested there, which enables to compile it on Linux, but the windows compilation seems to get stuck on a qt problem as the <direct.h> is included in a windows-specific qt platform file qplatformdefs.h. So, I would guess this is not necessarily directly related to the library being outdated but I could be wrong :?

        1 Reply Last reply
        0
        • ModelTechM Offline
          ModelTechM Offline
          ModelTech
          wrote on last edited by
          #4

          Well, I have solved this one problem by adding extra version numbers to the QtOfficeOpenXml.version.in file that is somewhere in the package, but now I run into linking issues:

          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x138): undefined reference to `inflateEnd'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x158): undefined reference to `deflateEnd'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x198): undefined reference to `deflateReset'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x1b4): undefined reference to `inflateReset'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x291): undefined reference to `crc32'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x397): undefined reference to `inflateInit2_'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x3fe): undefined reference to `deflateInit2_'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x525): undefined reference to `deflate'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x566): undefined reference to `crc32'
          ./.obj/release/kgzipfilter.o:kgzipfilter.cpp:(.text+0x631): undefined reference to `inflate'
          ./.obj/release/kzip.o:kzip.cpp:(.text+0x36): undefined reference to `crc32'
          ./.obj/release/kzip.o:kzip.cpp:(.text+0x2a0b): undefined reference to `crc32'
          ./.obj/release/kzip.o:kzip.cpp:(.text+0x2df8): undefined reference to `crc32'
          collect2.exe: error: ld returned 1 exit status
          
          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