Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help to built TWAIN and establish environment #48

Open
kamidehlvi opened this issue Mar 26, 2019 · 4 comments
Open

Need help to built TWAIN and establish environment #48

kamidehlvi opened this issue Mar 26, 2019 · 4 comments

Comments

@kamidehlvi
Copy link

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

@sanbrother
Copy link

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

@kamidehlvi
Copy link
Author

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

@sanbrother
Copy link

@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

@kamidehlvi
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants