twain/twain-samples

Need help to built TWAIN and establish environment

Opened this issue · 4 comments

Dear TWAIN fellows,
I have developed many applications using ISIS protocol which is propriety and black box, now I want to go with TWAIN /SANE to develop my own interfacing application for a scanner. please help me or give me documentation in detail to how to configure twain DS and DSM with my application on windows platform (specially to configure the development environment and mandatory requirements). The details provided in the twainsample is confusing me.
Regards,
Kamran

I am doing similar things recently. I here share something that might be helpful

  1. Install QT with compilers (Google it and download it)
  2. Setup Windows environment variables, TWAINDS_VS2008.sln needs to know where QT compilers are. For example
    QTDIR=D:\Qt\Qt5.11.1\5.11.1\mingw53_32
    QTDIR_64=D:\Qt\Qt5.11.1\5.11.1\msvc2017_64

@sanbrother thank you for your comments. can you please give more details or step by step help.
regards,

@kamidehlvi Please have a look at https://sanbrother.github.io/twain.html
After that, open TWAINDS_VS2008.sln and solve some compilation issue. Or, you can refer to this #46

@sanbrother hi,
Thanks for your valuable comments about twain compilation, I am working on QT windows and successfully compile twain sample using Mingw compiler. As per my R&D i suppose that if I have compiled above code in windows it can work on Linux as well. As I have both options to receive .o file or .exe file after compilation using MinGW.
But unfortunately, when I test this .o Linux Ubuntu 16.4 it not work using Mingw-g++ my Question is is this works or not.
Second thing is , if I want to configure QT in linux it requires “window.h” which is not available , here my question is for cross platform we need to compile on both of the OS(Linux,Windows etc) moreover for Linux how can we find or bypass “windows.h” requirements, please.