Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. QT Error with Twain Data Source
Forum Updated to NodeBB v4.3 + New Features

QT Error with Twain Data Source

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
37 Posts 2 Posters 13.7k 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.
  • mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by mrjj
    #2

    Hi and welcome
    What do you compile it with ?
    Seems not be setup running the moc tool an ui tool.
    http://doc.qt.io/archives/qt-4.8/moc.html
    Are you using Qt Creator?

    Its very old. QT 4.5.3. For newer Qt you will have to port some of the classes.

    1 Reply Last reply
    1
    • B Offline
      B Offline
      bhim
      wrote on last edited by
      #3

      @mrjj said in QT Error with Twain Data Source:

      What do you compile it with ?

      I m compiling it with Visual Studio 2008 and not using QT Creator. Can you please guide me where i can get moc tool and ui tool?

      mrjjM 1 Reply Last reply
      0
      • B bhim

        @mrjj said in QT Error with Twain Data Source:

        What do you compile it with ?

        I m compiling it with Visual Studio 2008 and not using QT Creator. Can you please guide me where i can get moc tool and ui tool?

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

        @bhim

        Hi
        They are included but visual studio knows nothing about it.
        Often a plugin for VS is used to help make this happen.
        Not sure there is plugin for 2008.
        2013 seems to be the oldest
        https://download.qt.io/official_releases/vsaddin/
        but it seems to have existed
        https://forum.qt.io/topic/5722/solved-how-generate-moc-files-automatically-using-visual-studio-2008

        so maybe i just need more coffee ;)

        also this seems the newest Qt that works with vs2008
        https://download.qt.io/official_releases/qt/4.8/4.8.7/

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bhim
          wrote on last edited by bhim
          #5

          Thanks for your help. I have download and use said version of QT. However it dont let me configure this project. Its complaining abut the Kit not found. Also when i go to configure default Kit, QT version is ot populating. Can you please llo at attached and help me?

          0_1513798961034_3ac45dc0-c19e-4f4d-a96c-836908e9c8ea-image.png

          0_1513799034167_4322bffb-2a7b-4896-a12b-8813ead562b6-image.png
          Thanks
          Bhim

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

            Hi
            you installed
            qt-opensource-windows-x86-vs2008-4.8.7.exe ?
            and you had vs 2008 already installed?

            what does it list in Qt versions tab?

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bhim
              wrote on last edited by
              #7

              Yes, i installed and used qt-opensource-windows-x86-vs2008-4.8.7.exe

              It list only None in QT Version tab.

              I had vs 2008 also already installed.

              Please help.

              mrjjM 1 Reply Last reply
              0
              • B bhim

                Yes, i installed and used qt-opensource-windows-x86-vs2008-4.8.7.exe

                It list only None in QT Version tab.

                I had vs 2008 also already installed.

                Please help.

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

                @bhim
                Hi
                It should have picked it up.
                Not sure what went wrong.
                Sadly i dont have any vs 2008 to test with and not sure why no Qt is listed.

                Give some time. Maybe someone is still using vs2008 :)

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  bhim
                  wrote on last edited by
                  #9

                  Also this is what i have installed, can this be the culprit?

                  0_1513799635064_17aeedfa-7447-44a1-b2d3-2051839c272c-image.png

                  Meantime i will also try on a machine where vs2008 is not installed.

                  mrjjM 1 Reply Last reply
                  0
                  • B bhim

                    Also this is what i have installed, can this be the culprit?

                    0_1513799635064_17aeedfa-7447-44a1-b2d3-2051839c272c-image.png

                    Meantime i will also try on a machine where vs2008 is not installed.

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

                    @bhim
                    Did you also install a QT binary ?
                    That is only the editor
                    named something like Qt 2008 visual studio 2008

                    can you show image of all that can be selected?

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      bhim
                      wrote on last edited by
                      #11

                      I am not sure if i installed QT binary. Can you please provide me download path? Also the QT Version drop down is only show None.

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        bhim
                        wrote on last edited by
                        #12

                        Hi ,

                        Thanks for your help. I m able to open and configure the project now. But getting below error when i build it. Can you please have a look and help.

                        0_1513803176191_8ae67440-c489-4b3f-b3b6-6fdbf8954d33-image.png

                        mrjjM 1 Reply Last reply
                        0
                        • B bhim

                          Hi ,

                          Thanks for your help. I m able to open and configure the project now. But getting below error when i build it. Can you please have a look and help.

                          0_1513803176191_8ae67440-c489-4b3f-b3b6-6fdbf8954d33-image.png

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

                          @bhim
                          seem to be kinda old/invalid .pro file
                          can you show what is inside?

                          1 Reply Last reply
                          0
                          • B Offline
                            B Offline
                            bhim
                            wrote on last edited by
                            #14

                            Below is the content of pro file

                            unix {
                            TEMPLATE = subdirs
                            VERSION = 1.0
                            DEFINES += UNIX
                            }

                            SUBDIRS = src

                            I have also shared entire project at below location for you.

                            https://drive.google.com/drive/folders/1gj69Kh7Xy8-p91uE3QUao673wqxoHidx?usp=sharing

                            mrjjM 1 Reply Last reply
                            0
                            • B bhim

                              Below is the content of pro file

                              unix {
                              TEMPLATE = subdirs
                              VERSION = 1.0
                              DEFINES += UNIX
                              }

                              SUBDIRS = src

                              I have also shared entire project at below location for you.

                              https://drive.google.com/drive/folders/1gj69Kh7Xy8-p91uE3QUao673wqxoHidx?usp=sharing

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

                              @bhim
                              its wrong project file
                              there is
                              src.pro
                              in src

                              that seems better

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                bhim
                                wrote on last edited by
                                #16

                                Thanks It much better now. Though i am still getting lot of errors but these are datatype error and seems like code specific.

                                Thanks a lot for your help.

                                Bhim

                                mrjjM 1 Reply Last reply
                                0
                                • B bhim

                                  Thanks It much better now. Though i am still getting lot of errors but these are datatype error and seems like code specific.

                                  Thanks a lot for your help.

                                  Bhim

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

                                  @bhim
                                  Np.
                                  I noticed there are some FreeImage lib files.
                                  Not sure it uses it but make sure they are compatible with vs 2008 if it does.

                                  Its pretty old project. there are no newer twain samples?

                                  1 Reply Last reply
                                  0
                                  • B Offline
                                    B Offline
                                    bhim
                                    wrote on last edited by bhim
                                    #18

                                    This is the latest sample they have. With this i m getting below error , would you be able to help with this one as well?

                                    I know how to take care of these in VS but not in QT.

                                    0_1513807832766_fe2a45f3-5e33-45ca-984a-82710a9c14af-image.png

                                    mrjjM 1 Reply Last reply
                                    0
                                    • B bhim

                                      This is the latest sample they have. With this i m getting below error , would you be able to help with this one as well?

                                      I know how to take care of these in VS but not in QT.

                                      0_1513807832766_fe2a45f3-5e33-45ca-984a-82710a9c14af-image.png

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

                                      @bhim
                                      Well Qt is just a normal c++ LIB
                                      and those are normal windows API calls so fix them like you normal would.
                                      seems to be unicode related.
                                      Didnt it later become common to put _TCHAR or something in front ?
                                      or use wchar_t* and not char * ?
                                      maybe you can just use the A version of the API and not W version

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

                                        Hi
                                        I wondered if
                                        https://github.com/twain/twain-samples
                                        is something else than the twain you try ?

                                        1 Reply Last reply
                                        0
                                        • B Offline
                                          B Offline
                                          bhim
                                          wrote on last edited by
                                          #21

                                          I tried the exact same exact same Twain.

                                          mrjjM 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