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. TWAIN Sample compilation

TWAIN Sample compilation

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 2.0k Views 2 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.
  • W Offline
    W Offline
    Waqar
    wrote on last edited by
    #1

    Hi, Just trying to compile
    https://github.com/twain/twain-samples

    I tried to open following project file:
    ...\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro

    But I got following errors.

    Error while parsing file C:\Users\Waqar\Downloads\twain-samples-master\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro. Giving up.
    Could not find qmake spec 'default'.
    Error while parsing file C:\Users\Waqar\Downloads\twain-samples-master\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro. Giving up.

    And then these....
    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    Could not find qmake spec 'default'.

    raven-worxR 1 Reply Last reply
    0
    • W Waqar

      Hi, Just trying to compile
      https://github.com/twain/twain-samples

      I tried to open following project file:
      ...\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro

      But I got following errors.

      Error while parsing file C:\Users\Waqar\Downloads\twain-samples-master\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro. Giving up.
      Could not find qmake spec 'default'.
      Error while parsing file C:\Users\Waqar\Downloads\twain-samples-master\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.pro. Giving up.

      And then these....
      Running Windows Runtime device detection.
      No winrtrunner.exe found.
      Running Windows Runtime device detection.
      No winrtrunner.exe found.
      Running Windows Runtime device detection.
      No winrtrunner.exe found.
      Could not find qmake spec 'default'.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Waqar
      are you trying to build in QtCreator?
      If so it seems you do not have a property Kit setup.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Waqar
        wrote on last edited by
        #3

        Thanks for your reply.

        Could you let me know from where i can download it.
        I downloaded and installed the QtCreator. It keep asking me for Kit.

        After that I again went to qt.io/download where I found a windows installer that made my system busy for a day and after that the same thing.

        Rather then from site I googled and found an Offline installer 3.7GB it might be the right choice :). 43 minutes to download. I will give it a try and let you know.

        mrjjM 1 Reply Last reply
        0
        • W Waqar

          Thanks for your reply.

          Could you let me know from where i can download it.
          I downloaded and installed the QtCreator. It keep asking me for Kit.

          After that I again went to qt.io/download where I found a windows installer that made my system busy for a day and after that the same thing.

          Rather then from site I googled and found an Offline installer 3.7GB it might be the right choice :). 43 minutes to download. I will give it a try and let you know.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Waqar
          Hi
          make sure not to select too many things to install.
          Open up the tree (in the installer) and select only one Qt packet.
          Like mingw .

          If In doubt ask here first to avoid wasting hours installing things you dont need.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Waqar
            wrote on last edited by
            #5

            Thanks for your time.

            I'm downloading it, and will do it.

            In this TWAIN sample I also find that I can make the build if I have following Lib Files.

            qtmain.lib QtCore4.lib QtGui4.lib QtScript4.lib

            Can you guide me from where/which folders i can extract these files after my installation completes.

            mrjjM 1 Reply Last reply
            0
            • W Waqar

              Thanks for your time.

              I'm downloading it, and will do it.

              In this TWAIN sample I also find that I can make the build if I have following Lib Files.

              qtmain.lib QtCore4.lib QtGui4.lib QtScript4.lib

              Can you guide me from where/which folders i can extract these files after my installation completes.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Waqar
              Hi
              In the Qt folder.
              Those are old Qt version 4.8.
              Are you installing that or newer Qt5?

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Waqar
                wrote on last edited by
                #7

                @mrjj said in TWAIN Sample compilation:

                Those are old Qt version 4.8.

                The version that I downloaded and installed is following along with this new error.

                0_1556877631887_d1a43654-83fb-4553-a381-9522a2aca9cb-image.png

                1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Hi
                  Ok, that is actually just the Editor version. (and the Qt it was build with)
                  It can use multiple Qt version.
                  I assume you use Qt5.12. You can see it in the Projects what kit you are using and hence Qt version.

                  In any case, if the code was for 4.8.
                  You will need to fix some of includes names for Qt and maybe some other stuff more to get
                  it to compile. Some Qt things changed from 4.8 to 5.12 so you might need to port some stuff.

                  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