Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. From schroot to croos compile

From schroot to croos compile

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 555 Views 1 Watching
  • 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.
  • X Offline
    X Offline
    XolYnrac
    wrote on last edited by XolYnrac
    #1

    Hello everyone.
    In our project we were using schroot to build our project.

    The OS installed in the schroot is an old version of Debian and 32bits that is the same as the production environment. Additionally, it has all the library packages necessary for building.

    We have also built some mkspecs that are used in the build process and which invoke external tools such as xsdcxx.

    The compilation can be done by entering the schroot or by invoking the necessary commands inside the schroot from the host through a wrapper, but in both cases, the compilation is actually done inside the schroot.

    All is working fine, we even have another schroot with a more modern Debian for a target with modern specifications (like arch = amd64).

    Now we have the need to use code analysis tools such as Parasoft or SonarQube Scanner, but they do not work if the compilation is done in the schroot.

    Searching the net I have seen that cross compile would solve the problem. That is why I turn to you hoping for guidance on where to start

    Thank you very much

    Pd:

    We are using qmake

    Targets are:

    1. debian 8 with 32bits intel and qt4.8
    2. debian9 with 64bits intel and qt5.10
    3. rapsbian with armv8 qt5.10
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you explain the issues you get with these tools ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      X 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Can you explain the issues you get with these tools ?

        X Offline
        X Offline
        XolYnrac
        wrote on last edited by
        #3

        @SGaist
        build-wrapper-linux-x86-64 tool of Sonarqube report in the build-wrapper-dump.json:

        {
        "version":"6.41",
        "captures":[
        {
        }]}
        
        SGaistS 1 Reply Last reply
        0
        • X XolYnrac

          @SGaist
          build-wrapper-linux-x86-64 tool of Sonarqube report in the build-wrapper-dump.json:

          {
          "version":"6.41",
          "captures":[
          {
          }]}
          
          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @XolYnrac for all three targets ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          X 1 Reply Last reply
          0
          • SGaistS SGaist

            @XolYnrac for all three targets ?

            X Offline
            X Offline
            XolYnrac
            wrote on last edited by XolYnrac
            #5

            @SGaist
            the first two yes, the last dont was tested

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you explain how you are using it in your workflow ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              X 1 Reply Last reply
              0
              • SGaistS SGaist

                Can you explain how you are using it in your workflow ?

                X Offline
                X Offline
                XolYnrac
                wrote on last edited by XolYnrac
                #7

                @SGaist

                the comand line is

                xolynrac@developer:/mycodedir/build-wrapper-linux-x86-64 --out-dir outputdir make debug
                
                

                where make is executed( through a wrapper) into a schroot that have /mycodedir mounted en the same path.

                I have tried build-wrapper-linux-x86-64 compiling a local small code and that works fine, the file build-wrapper-dump.json (resulting file of build-wrapper-linux-x86-64) contain captures.

                That is the reason that I need to pass to crooscompile.

                I apreciate your guiadance

                SGaistS 1 Reply Last reply
                0
                • X XolYnrac

                  @SGaist

                  the comand line is

                  xolynrac@developer:/mycodedir/build-wrapper-linux-x86-64 --out-dir outputdir make debug
                  
                  

                  where make is executed( through a wrapper) into a schroot that have /mycodedir mounted en the same path.

                  I have tried build-wrapper-linux-x86-64 compiling a local small code and that works fine, the file build-wrapper-dump.json (resulting file of build-wrapper-linux-x86-64) contain captures.

                  That is the reason that I need to pass to crooscompile.

                  I apreciate your guiadance

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @XolYnrac wait... that is a static code analysis tool. Why do you want to run it when compiling for different architectures ?

                  That said, don't they provide a 32bit wrapper as well ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

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