Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed
QtWS25 Last Chance

Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qt5tslibcross-compile
21 Posts 4 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jsulm
    26 Nov 2021, 09:24

    @sitti If you execute configure it executes many tests to check what is available and what not. Take a look at configure.log file - it should have more information about failing tslib test.

    S Offline
    S Offline
    sitti
    wrote on 26 Nov 2021, 10:17 last edited by
    #5

    @jsulm In the configure.log I can see the following about tslib:

    loaded result for library config.qtbase_gui.libraries.tslib
    Trying source 0 (type inline) of library tslib ...
    None of [libts.so libts.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.tslib FAILED
    
    J R 2 Replies Last reply 26 Nov 2021, 10:20
    0
    • S sitti
      26 Nov 2021, 10:17

      @jsulm In the configure.log I can see the following about tslib:

      loaded result for library config.qtbase_gui.libraries.tslib
      Trying source 0 (type inline) of library tslib ...
      None of [libts.so libts.a] found in [] and global paths.
        => source produced no result.
      test config.qtbase_gui.libraries.tslib FAILED
      
      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 26 Nov 2021, 10:20 last edited by
      #6

      @sitti said in Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed:

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

      It can't find libts.so
      Can you post the whole tslib test output? It should actually try to build a small application linking against tslib.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S sitti
        26 Nov 2021, 10:17

        @jsulm In the configure.log I can see the following about tslib:

        loaded result for library config.qtbase_gui.libraries.tslib
        Trying source 0 (type inline) of library tslib ...
        None of [libts.so libts.a] found in [] and global paths.
          => source produced no result.
        test config.qtbase_gui.libraries.tslib FAILED
        
        R Offline
        R Offline
        raven-worx
        Moderators
        wrote on 26 Nov 2021, 10:33 last edited by raven-worx
        #7

        @sitti
        You do not need -I and -L flags on Qt configure, neither the QMAKE_* variables in your mkspecs file.

        Most stuff in configure is handled via pkgconfig, but it seems not so for tslib
        If it would be handled via pkgconfig sometime it needs to be guided in the right direction (for armhf packages):

        export PKG_CONFIG_PATH=/usr/local/lib/arm-linux-gnueabihf/pkgconfig:/usr/lib/arm-linux-gnueabihf/pkgconfig:$PKG_CONFIG_PATH
        

        whats your host system?
        When you are on a Debian based system are you sure you installed libts-dev:armhf?

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sitti
          wrote on 1 Dec 2021, 08:10 last edited by sitti 12 Jan 2021, 08:23
          #8

          @raven-worx Hi, my host system is Ubuntu 20.04.3 LTS

          If it would be handled via pkgconfig sometime it needs to be guided in the right direction (for armhf packages):

          Is there a way to understand how tslib can be configured in a cross compiled Qt build?

          are you sure you installed libts-dev:armhf
          libts-dev is installed. If I do

          sudo apt install libts-dev:armhf
          

          it says it doesn't find libts-dev:armhf packet.
          Thanks

          R 1 Reply Last reply 1 Dec 2021, 08:50
          0
          • S sitti
            1 Dec 2021, 08:10

            @raven-worx Hi, my host system is Ubuntu 20.04.3 LTS

            If it would be handled via pkgconfig sometime it needs to be guided in the right direction (for armhf packages):

            Is there a way to understand how tslib can be configured in a cross compiled Qt build?

            are you sure you installed libts-dev:armhf
            libts-dev is installed. If I do

            sudo apt install libts-dev:armhf
            

            it says it doesn't find libts-dev:armhf packet.
            Thanks

            R Offline
            R Offline
            raven-worx
            Moderators
            wrote on 1 Dec 2021, 08:50 last edited by
            #9

            @sitti
            https://packages.debian.org/de/buster/libts-dev

            maybe run apt update beforehand.

            Do you even have the armhf repositories added in your system at all?!

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            S 1 Reply Last reply 1 Dec 2021, 08:56
            0
            • R raven-worx
              1 Dec 2021, 08:50

              @sitti
              https://packages.debian.org/de/buster/libts-dev

              maybe run apt update beforehand.

              Do you even have the armhf repositories added in your system at all?!

              S Offline
              S Offline
              sitti
              wrote on 1 Dec 2021, 08:56 last edited by sitti 12 Jan 2021, 08:57
              #10

              @raven-worx libts-dev is present in my host system.
              I already have the tslib cross-compiled for my ARM target device. I am looking for a way to make the Qt build aware of tslib. Adding -tslib to the configure line sees to be not sufficient..

              R 1 Reply Last reply 1 Dec 2021, 09:00
              0
              • S sitti
                1 Dec 2021, 08:56

                @raven-worx libts-dev is present in my host system.
                I already have the tslib cross-compiled for my ARM target device. I am looking for a way to make the Qt build aware of tslib. Adding -tslib to the configure line sees to be not sufficient..

                R Offline
                R Offline
                raven-worx
                Moderators
                wrote on 1 Dec 2021, 09:00 last edited by
                #11

                @sitti
                ok where exactly did you put the output of cross compiled tslib?
                Make sure its in one of the compilers/hosts default search paths.
                e.g. /usr/local/lib/arm-linux-gnueabihf and /usr/local/include/

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                S 1 Reply Last reply 1 Dec 2021, 09:28
                0
                • R raven-worx
                  1 Dec 2021, 09:00

                  @sitti
                  ok where exactly did you put the output of cross compiled tslib?
                  Make sure its in one of the compilers/hosts default search paths.
                  e.g. /usr/local/lib/arm-linux-gnueabihf and /usr/local/include/

                  S Offline
                  S Offline
                  sitti
                  wrote on 1 Dec 2021, 09:28 last edited by sitti 12 Jan 2021, 09:29
                  #12

                  @raven-worx currently they are in a custom path, and I was trying to add those paths to the search path, but without success for now. By the way, now I will add the libts and its header to the paths you suggested.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    sitti
                    wrote on 1 Dec 2021, 12:02 last edited by
                    #13

                    @raven-worx said in Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed:

                    compilers/hosts default search paths.

                    i am still stuck trying to cross-compile qt with the library. I also tried to give the -sysroot option to my configure command, after copying my libts.so and tslib.h in sysroot lib/ and include/ directory:

                    ./configure -opensource -confirm-license -xplatform arm-cortex_a8-linux-gnueabi-g++ -prefix test1/ -sysroot /home/andrea/cross-compiler/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot -no-opengl -no-pch -no-evdev -tslib
                    

                    The configure.log always says:

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

                    How can I tell to qt configure where to find my tslib?

                    R 1 Reply Last reply 1 Dec 2021, 13:44
                    0
                    • S sitti
                      1 Dec 2021, 12:02

                      @raven-worx said in Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed:

                      compilers/hosts default search paths.

                      i am still stuck trying to cross-compile qt with the library. I also tried to give the -sysroot option to my configure command, after copying my libts.so and tslib.h in sysroot lib/ and include/ directory:

                      ./configure -opensource -confirm-license -xplatform arm-cortex_a8-linux-gnueabi-g++ -prefix test1/ -sysroot /home/andrea/cross-compiler/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot -no-opengl -no-pch -no-evdev -tslib
                      

                      The configure.log always says:

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

                      How can I tell to qt configure where to find my tslib?

                      R Offline
                      R Offline
                      raven-worx
                      Moderators
                      wrote on 1 Dec 2021, 13:44 last edited by raven-worx 12 Jan 2021, 13:45
                      #14

                      @sitti
                      Remove the sysroot parameter.

                      as i mentioned a few posts above, Qt tries to compile the following simple "project" and checks if the compiler returns and exit code unequal 0:

                      #include <tslib.h>
                      int main()
                      {
                          ts_open("foo", 0);
                      }
                      

                      try to compile it with the following comand to see where it is failing:

                      arm-cortex_a8-linux-gnueabi-g++ tslib_test.cpp -lts
                      

                      Also please post the output of:

                      arm-cortex_a8-linux-gnueabi-g++ -E -x c++ - -v < /dev/null 
                      

                      This prints the include directories used by the compiler.

                      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                      If you have a question please use the forum so others can benefit from the solution in the future

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        sitti
                        wrote on 1 Dec 2021, 14:04 last edited by
                        #15

                        The simple tslib program is compiled apparently without any issue, an a.out executable has been created.
                        The command

                        arm-cortex_a8-linux-gnueabi-g++ -E -x c++ - -v < /dev/null
                        

                        gives the following output:

                        Using built-in specs.
                        COLLECT_GCC=arm-cortex_a8-linux-gnueabi-g++
                        Target: arm-cortex_a8-linux-gnueabi
                        Configured with: /home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/src/gcc-linaro-4.8-2013.06-1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-cortex_a8-linux-gnueabi --prefix=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm --with-sysroot=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot --enable-languages=c,c++,java --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=hard --with-pkgversion='crosstool-NG 1.19.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-mpfr=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-mpc=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-isl=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-cloog=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-libelf=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix --enable-target-optspace --disable-nls --disable-multilib --with-local-prefix=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot --enable-c99 --enable-long-long --with-float=hard
                        Thread model: posix
                        gcc version 4.8.2 20130603 (prerelease) (crosstool-NG 1.19.0) 
                        COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mcpu=cortex-a8' '-mfloat-abi=hard' '-mfpu=vfpv3' '-mtls-dialect=gnu'
                         /home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/cc1plus -E -quiet -v -iprefix /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/ -isysroot /home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot -D_GNU_SOURCE - -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3 -mtls-dialect=gnu
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2"
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/arm-cortex_a8-linux-gnueabi"
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/backward"
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include"
                        ignoring nonexistent directory "/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot/include"
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include-fixed"
                        ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include"
                        #include "..." search starts here:
                        #include <...> search starts here:
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/arm-cortex_a8-linux-gnueabi
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/backward
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include-fixed
                         /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include
                         /home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/usr/include
                        End of search list.
                        # 1 "<stdin>"
                        # 1 "<command-line>"
                        # 1 "/home/andrea/cross-compiler/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot/usr/include/stdc-predef.h" 1 3 4
                        # 1 "<command-line>" 2
                        # 1 "<stdin>"
                        COMPILER_PATH=/home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/:/home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/bin/
                        LIBRARY_PATH=/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/lib/:/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/lib/:/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/usr/lib/
                        COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mcpu=cortex-a8' '-mfloat-abi=hard' '-mfpu=vfpv3' '-mtls-dialect=gnu'
                        
                        R 1 Reply Last reply 1 Dec 2021, 14:50
                        0
                        • S sitti
                          1 Dec 2021, 14:04

                          The simple tslib program is compiled apparently without any issue, an a.out executable has been created.
                          The command

                          arm-cortex_a8-linux-gnueabi-g++ -E -x c++ - -v < /dev/null
                          

                          gives the following output:

                          Using built-in specs.
                          COLLECT_GCC=arm-cortex_a8-linux-gnueabi-g++
                          Target: arm-cortex_a8-linux-gnueabi
                          Configured with: /home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/src/gcc-linaro-4.8-2013.06-1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-cortex_a8-linux-gnueabi --prefix=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm --with-sysroot=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot --enable-languages=c,c++,java --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-fpu=vfpv3 --with-float=hard --with-pkgversion='crosstool-NG 1.19.0' --enable-__cxa_atexit --disable-libmudflap --disable-libgomp --disable-libssp --disable-libquadmath --disable-libquadmath-support --with-gmp=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-mpfr=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-mpc=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-isl=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-cloog=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-libelf=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/target/arm-cortex_a8-linux-gnueabi/buildtools --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --enable-threads=posix --enable-target-optspace --disable-nls --disable-multilib --with-local-prefix=/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot --enable-c99 --enable-long-long --with-float=hard
                          Thread model: posix
                          gcc version 4.8.2 20130603 (prerelease) (crosstool-NG 1.19.0) 
                          COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mcpu=cortex-a8' '-mfloat-abi=hard' '-mfpu=vfpv3' '-mtls-dialect=gnu'
                           /home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/cc1plus -E -quiet -v -iprefix /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/ -isysroot /home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot -D_GNU_SOURCE - -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3 -mtls-dialect=gnu
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2"
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/arm-cortex_a8-linux-gnueabi"
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/backward"
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include"
                          ignoring nonexistent directory "/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/home/francesco/devel/tastiera_arm/linux/buildroot/cross_compiler/crosstool-ng-1.19.0/opt/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot/include"
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include-fixed"
                          ignoring duplicate directory "/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/../../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include"
                          #include "..." search starts here:
                          #include <...> search starts here:
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/arm-cortex_a8-linux-gnueabi
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include/c++/4.8.2/backward
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/include-fixed
                           /home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/include
                           /home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/usr/include
                          End of search list.
                          # 1 "<stdin>"
                          # 1 "<command-line>"
                          # 1 "/home/andrea/cross-compiler/toolchain_arm/arm-cortex_a8-linux-gnueabi/sysroot/usr/include/stdc-predef.h" 1 3 4
                          # 1 "<command-line>" 2
                          # 1 "<stdin>"
                          COMPILER_PATH=/home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/:/home/andrea/cross-compiler/toolchain_arm/bin/../libexec/gcc/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/bin/
                          LIBRARY_PATH=/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/:/home/andrea/cross-compiler/toolchain_arm/bin/../lib/gcc/arm-cortex_a8-linux-gnueabi/4.8.2/../../../../arm-cortex_a8-linux-gnueabi/lib/:/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/lib/:/home/andrea/cross-compiler/toolchain_arm/bin/../arm-cortex_a8-linux-gnueabi/sysroot/usr/lib/
                          COLLECT_GCC_OPTIONS='-E' '-v' '-shared-libgcc' '-mcpu=cortex-a8' '-mfloat-abi=hard' '-mfpu=vfpv3' '-mtls-dialect=gnu'
                          
                          R Offline
                          R Offline
                          raven-worx
                          Moderators
                          wrote on 1 Dec 2021, 14:50 last edited by
                          #16

                          @sitti said in Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed:

                          The simple tslib program is compiled apparently without any issue, an a.out executable has been created.

                          ok strange.

                          are you always deleting your build folder before you calling Qt's configure again and start another build?

                          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                          If you have a question please use the forum so others can benefit from the solution in the future

                          S 1 Reply Last reply 1 Dec 2021, 14:52
                          0
                          • R raven-worx
                            1 Dec 2021, 14:50

                            @sitti said in Cross-compile Qt5 with tslib: Feature 'tslib' was enabled, but the pre-condition 'libs.tslib' failed:

                            The simple tslib program is compiled apparently without any issue, an a.out executable has been created.

                            ok strange.

                            are you always deleting your build folder before you calling Qt's configure again and start another build?

                            S Offline
                            S Offline
                            sitti
                            wrote on 1 Dec 2021, 14:52 last edited by sitti 12 Jan 2021, 14:52
                            #17

                            @raven-worx I configure from inside the source directory (not shadow build). I usually do a make distclean before start another configure+build. Is it ok?

                            R 1 Reply Last reply 1 Dec 2021, 14:55
                            0
                            • S sitti
                              1 Dec 2021, 14:52

                              @raven-worx I configure from inside the source directory (not shadow build). I usually do a make distclean before start another configure+build. Is it ok?

                              R Offline
                              R Offline
                              raven-worx
                              Moderators
                              wrote on 1 Dec 2021, 14:55 last edited by
                              #18

                              @sitti
                              thats rather bad. better always use a separate build directory when building Qt - so you can easily delete the folder and start over again.
                              I dont know if make dist-clean really deletes everything which might affect the configure test cache.

                              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                              If you have a question please use the forum so others can benefit from the solution in the future

                              S 1 Reply Last reply 1 Dec 2021, 15:09
                              0
                              • R raven-worx
                                1 Dec 2021, 14:55

                                @sitti
                                thats rather bad. better always use a separate build directory when building Qt - so you can easily delete the folder and start over again.
                                I dont know if make dist-clean really deletes everything which might affect the configure test cache.

                                S Offline
                                S Offline
                                sitti
                                wrote on 1 Dec 2021, 15:09 last edited by
                                #19

                                @raven-worx sure that make sense, I just created a parallel build directory, from now on I will follow your suggestion. Lets see if something changes...

                                R 1 Reply Last reply 1 Dec 2021, 15:14
                                0
                                • S sitti
                                  1 Dec 2021, 15:09

                                  @raven-worx sure that make sense, I just created a parallel build directory, from now on I will follow your suggestion. Lets see if something changes...

                                  R Offline
                                  R Offline
                                  raven-worx
                                  Moderators
                                  wrote on 1 Dec 2021, 15:14 last edited by raven-worx 12 Jan 2021, 18:35
                                  #20

                                  @sitti
                                  maybe also provide -v to the configure call. I am not sure if it also prints the used compiler call though.

                                  --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                                  If you have a question please use the forum so others can benefit from the solution in the future

                                  S 1 Reply Last reply 1 Dec 2021, 16:30
                                  0
                                  • R raven-worx
                                    1 Dec 2021, 15:14

                                    @sitti
                                    maybe also provide -v to the configure call. I am not sure if it also prints the used compiler call though.

                                    S Offline
                                    S Offline
                                    sitti
                                    wrote on 1 Dec 2021, 16:30 last edited by
                                    #21

                                    @raven-worx doing a shadow build in a parallel directory (instead of build inside the source folder), the tslib support has been added succesfully (the reason is a mistery for now). The make process gives other errors, but the tslib subject is solved. Thank you.

                                    1 Reply Last reply
                                    1

                                    14/21

                                    1 Dec 2021, 13:44

                                    • Login

                                    • Login or register to search.
                                    14 out of 21
                                    • First post
                                      14/21
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Users
                                    • Groups
                                    • Search
                                    • Get Qt Extensions
                                    • Unsolved