TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

twain on linux

Forums › TWAIN Classic › twain on linux

  • This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by jimwatters.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 18, 2009 at 11:08 am #22473 Reply
    avnm
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    I have read that twain 2.0 is available on linux platforms.

    1) I suppose it needs to be installed on linux, may i ask how to install it?
    For instance on ubuntu and possibly also suse linux

    2) I suppose to work with a scanner i need a linux/twain driver.
    Where is a list of the available drivers?
    Do i need to install the driver separately?

    Thanks

    March 19, 2009 at 6:36 am #24826 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    Where is a list of the available drivers?

    there isn’t one, nor is there one for windows or mac.

    Do i need to install the driver separately?

    yes.

    March 19, 2009 at 3:25 pm #24827 Reply
    avnm
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    As regard the first question, i found there is a link to the data source manager on the main page.

    I am trying to install the example application on linux ubuntu.
    I mean the one at this url

    https://sourceforge.net/project/showfiles.php?group_id=212173 .

    I followed the instructions but when i make i get this

    main.cpp: In function âvoid EnableDS()â:
    main.cpp:312: error: âMSGâ was not declared in this scope
    main.cpp:312: error: expected `;’ before âMsgâ
    main.cpp:314: error: âLPMSGâ was not declared in this scope
    main.cpp:314: error: âMsgâ was not declared in this scope
    main.cpp:314: error: âGetMessageâ was not declared in this scope
    main.cpp:319: error: âMsgâ was not declared in this scope
    main.cpp:348: error: âLPMSGâ was not declared in this scope
    main.cpp:348: error: âTranslateMessageâ was not declared in this scope
    main.cpp:349: error: âDispatchMessageâ was not declared in this scope
    make: *** [main.o] Error 1

    what’s wrong?

    March 19, 2009 at 3:35 pm #24828 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    it looks to me (when reading TranslateMessage & DispatchMessage) that you’re compiling the windows source. there should have been a #define that caused the compile to only compile the *nix code. Or are TranslateMessage & DispatchMessage defined under your *nix platform?

    What are you compiling with?

    .

    March 19, 2009 at 3:42 pm #24829 Reply
    avnm
    Participant
    • Topics - 2
    • Replies - 3
    • Total Posts - 5

    root@test-rfid:/tmp/twainapp.source.2.0.5/Twain_App_sample01/src# qmake src.pro

    root@test-rfid:/tmp/twainapp.source.2.0.5/Twain_App_sample01/src# make

    March 19, 2009 at 5:47 pm #24830 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    Yes you have discovered a bug in the code.
    some #ifdef TWH_CMP_MSC around the code for MSG should resolve it for Linux for now.

    #ifdef TWH_CMP_MSC
    MSG Msg;

    if(!GetMessage((LPMSG)&Msg, NULL, 0, 0))
    {
    break;//WM_QUIT
    }
    #endif
    #ifdef TWH_CMP_MSC
    TranslateMessage ((LPMSG)&Msg);
    DispatchMessage ((LPMSG)&Msg);
    #endif

    Regards,
    Jim Watters

    **************************************************
    JFL Peripheral Solutions Inc.
    http://www.jflinc.com/
    Your Expert Source of Custom Software and Services
    for TWAIN Applications, Data Sources,
    Peripheral Drivers and Support Software.
    **************************************************

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: twain on linux
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.