Important: Please read the Qt Code of Conduct -

Trying to make configure accepting Tslib

  • Hello!

    I have been banging my head against this for a few hours now...

    I built Qt 5.12.7 natively on a Pi. I have one of the cheap SPI touchscreens. I got it working with the screen (just have to hide the cursor somehow) but the touch is a bit worse.

    Tslib downloaded, compiled and I got it working fine. Calibration and test application run as they should. All well there.

    But I can't make configure add Tslib as it should. "ERROR: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed.", it says. Looking in the log:

    loaded result for library config.qtbase_gui.libraries.tslib
    Trying source 0 (type inline) of library tslib ...
    None of [ libts.a] found in [] and global paths.
    => source produced no result.
    test config.qtbase_gui.libraries.tslib FAILED

    I put symbolic links to the libs in the places I think they should be. I really can't make this work... Probably missed something simple.

    Please let me know if you have some input.

    Best regards, Jonas

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you install the development package of tslib ?

  • Thank you!

    You mean tslib-dev?

    I tried installing it now, it was not installed. No difference when running configure but probably makes a difference later on.

    I tried finding exactly where this test is made to see what it actually does but I cannot find where it is done. Maybe that could give a clue about missing environment variables or something?

  • @JonasE said in Trying to make configure accepting Tslib:

    None of [ libts.a] found in [] and global paths.

    And where is configure looking, exactly? [] looks like a missing environment variable, but which one? And "global paths", what does it use? Tried adding -R with a path to where I put them, but that didn't help.

  • Lifetime Qt Champion

    Now that you installed it, did you run configure from a clean state ?

  • Oh yes. Thank you, Master SGaist.

    Builiding now, let's hope it builds!

    Best regards, Jonas

Log in to reply