Unsolved TWAIN Sample compilation
-
Hi, Just trying to compile
https://github.com/twain/twain-samplesI tried to open following project file:
...\twain-samples-master\TWAIN-Samples\Twain_DS_sample01\src\src.proBut 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'. -
@Waqar
are you trying to build in QtCreator?
If so it seems you do not have a property Kit setup. -
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.
-
@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.
-
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.
-
@Waqar
Hi
In the Qt folder.
Those are old Qt version 4.8.
Are you installing that or newer Qt5? -
@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.
-
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.