Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Configure for x86
QtWS25 Last Chance

Configure for x86

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 901 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.
  • SpyerGameS Offline
    SpyerGameS Offline
    SpyerGame
    wrote on last edited by SpyerGame
    #1

    I have Lattepanda v1 (atom processor x86 -intel (cpu & gpu))
    I want to build qt 5.15.2 on ubuntu server 22.04 for qt quick app with -platform eglfs on my hdmi display
    what are./configure ? arguments, I have to set for my purpose ?
    thx alot

    sierdzioS 1 Reply Last reply
    0
    • SpyerGameS SpyerGame

      I have Lattepanda v1 (atom processor x86 -intel (cpu & gpu))
      I want to build qt 5.15.2 on ubuntu server 22.04 for qt quick app with -platform eglfs on my hdmi display
      what are./configure ? arguments, I have to set for my purpose ?
      thx alot

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @SpyerGame it depends on what modules and functionalities you need.

      Do you want to compile Qt on that device or on your more powerful PC?

      If you mean to ask about how to compile Qt for 32 bit while your machine is 64 bit, then it should be enough to pass linux-g++-32 as the mkspec:

      ./configure -platform linux-g++-32
      

      (Z(:^

      SpyerGameS 1 Reply Last reply
      2
      • sierdzioS sierdzio

        @SpyerGame it depends on what modules and functionalities you need.

        Do you want to compile Qt on that device or on your more powerful PC?

        If you mean to ask about how to compile Qt for 32 bit while your machine is 64 bit, then it should be enough to pass linux-g++-32 as the mkspec:

        ./configure -platform linux-g++-32
        
        SpyerGameS Offline
        SpyerGameS Offline
        SpyerGame
        wrote on last edited by SpyerGame
        #3

        @sierdzio thx to replied it.
        I have laptop with intel cpu and intel & nvidia gpu.
        And my board is lattepanda v1 support win10 x64 bit and ubuntu desktop and ubuntu server. (Because when I bought this board, Windows 10 64 bit was installed)
        I want to compile qt source for run my qt quick app on my lattepand board.
        I think to reach this purpose I must compile qt source with enable opengl.

        But I don't know what parameters to consider to configure qt
        And is it possible to do this in Ubuntu that is installed in my laptop and build my application with it and put it on my board and run it with -platform eglfs or I have to do it on my board?
        Because my laptop has two graphics cards, of course I don't know if it has anything to do with this case or not

        sierdzioS 1 Reply Last reply
        0
        • SpyerGameS SpyerGame

          @sierdzio thx to replied it.
          I have laptop with intel cpu and intel & nvidia gpu.
          And my board is lattepanda v1 support win10 x64 bit and ubuntu desktop and ubuntu server. (Because when I bought this board, Windows 10 64 bit was installed)
          I want to compile qt source for run my qt quick app on my lattepand board.
          I think to reach this purpose I must compile qt source with enable opengl.

          But I don't know what parameters to consider to configure qt
          And is it possible to do this in Ubuntu that is installed in my laptop and build my application with it and put it on my board and run it with -platform eglfs or I have to do it on my board?
          Because my laptop has two graphics cards, of course I don't know if it has anything to do with this case or not

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          I think to reach this purpose I must compile qt source with enable opengl.

          That's normal, Qt requires OpenGL.

          Because my laptop has two graphics cards, of course I don't know if it has anything to do with this case or not

          This is not important. Qt cares about OpenGL drivers, not about the vendor of the GPU. And on Linux driver layer is nicely abstracted by MESA.

          And is it possible to do this in Ubuntu that is installed in my laptop and build my application with it and put it on my board and run it with -platform eglfs or I have to do it on my board?

          Yes, should be possible although I am not sure about eglfs to be honest, I only used it when cross-compiling.

          But I don't know what parameters to consider to configure qt

          Well, take a look at the output of configure --help and at the docs.

          If you don't need web engine I highly recommend to skip it, it will help.

          I can't guess all the options you want or need, so I'll only give you some basics:

          export QTVER=6.5.2
          # this is where Qt will be installed
          mkdir $QTVER
          # this is wher all the build artifacts will be, directory can be removed after compilation+installation are done
          mkdir $QTVER-build
          
          cd $QTVER-build
          ../qt-everywhere-src-6.5.2/configure -opensource -confirm-license -prefix $PWD/../${QT_VER} -platform linux-g++-32 -skip qtwebengine 
          
          cmake --build . --parallel
          
          cmake --install .
          

          I recommend this approach with separate build directory because it keeps both the installation dir and source dir clean. It is easy to retry when compilation fails. And be prepared, it will fail a lot until you get everything set up right. It's always like that :-)

          (Z(:^

          SpyerGameS 1 Reply Last reply
          2
          • sierdzioS sierdzio

            I think to reach this purpose I must compile qt source with enable opengl.

            That's normal, Qt requires OpenGL.

            Because my laptop has two graphics cards, of course I don't know if it has anything to do with this case or not

            This is not important. Qt cares about OpenGL drivers, not about the vendor of the GPU. And on Linux driver layer is nicely abstracted by MESA.

            And is it possible to do this in Ubuntu that is installed in my laptop and build my application with it and put it on my board and run it with -platform eglfs or I have to do it on my board?

            Yes, should be possible although I am not sure about eglfs to be honest, I only used it when cross-compiling.

            But I don't know what parameters to consider to configure qt

            Well, take a look at the output of configure --help and at the docs.

            If you don't need web engine I highly recommend to skip it, it will help.

            I can't guess all the options you want or need, so I'll only give you some basics:

            export QTVER=6.5.2
            # this is where Qt will be installed
            mkdir $QTVER
            # this is wher all the build artifacts will be, directory can be removed after compilation+installation are done
            mkdir $QTVER-build
            
            cd $QTVER-build
            ../qt-everywhere-src-6.5.2/configure -opensource -confirm-license -prefix $PWD/../${QT_VER} -platform linux-g++-32 -skip qtwebengine 
            
            cmake --build . --parallel
            
            cmake --install .
            

            I recommend this approach with separate build directory because it keeps both the installation dir and source dir clean. It is easy to retry when compilation fails. And be prepared, it will fail a lot until you get everything set up right. It's always like that :-)

            SpyerGameS Offline
            SpyerGameS Offline
            SpyerGame
            wrote on last edited by
            #5

            @sierdzio Thank you very much for your time and patience for this topic

            And on Linux driver layer is nicely abstracted by MESA.

            This is enough to install the Intel 400 hd graphics driver?
            sudo apt install mesa

            Yes, should be possible although I am not sure about eglfs to be honest, I only used it when cross-compiling.

            Of course, I wrote my app with version 5.15.2, I had two questions

            • Should I migrate to version 6 or not?
            • Can I build qt source in Ubuntu desktop operating system on my laptop and build my app with it, or must I do this on the lattePanda board? And if I can do it on my laptop, is it different from the build that qt creator (of my ubuntu laptop ) does?
            sierdzioS 1 Reply Last reply
            0
            • SpyerGameS SpyerGame

              @sierdzio Thank you very much for your time and patience for this topic

              And on Linux driver layer is nicely abstracted by MESA.

              This is enough to install the Intel 400 hd graphics driver?
              sudo apt install mesa

              Yes, should be possible although I am not sure about eglfs to be honest, I only used it when cross-compiling.

              Of course, I wrote my app with version 5.15.2, I had two questions

              • Should I migrate to version 6 or not?
              • Can I build qt source in Ubuntu desktop operating system on my laptop and build my app with it, or must I do this on the lattePanda board? And if I can do it on my laptop, is it different from the build that qt creator (of my ubuntu laptop ) does?
              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @SpyerGame said in Configure for x86:

              @sierdzio Thank you very much for your time and patience for this topic

              And on Linux driver layer is nicely abstracted by MESA.

              This is enough to install the Intel 400 hd graphics driver?
              sudo apt install mesa

              I don't know about Intel, I think their driver is already included in the kernel. Installing mesa won't hurt, for sure.

              Yes, should be possible although I am not sure about eglfs to be honest, I only used it when cross-compiling.

              Of course, I wrote my app with version 5.15.2, I had two questions

              • Should I migrate to version 6 or not?

              Well, yes, Qt 5 has pretty much reached end of life. And since compiling Qt is hard, maybe better first port to Qt 6 and then compile Qt. Otherwise you'll need to do it twice.

              • Can I build qt source in Ubuntu desktop operating system on my laptop and build my app with it, or must I do this on the lattePanda board?

              Yes you can build on your laptop. Since both computers use x86 architecture it won't even need to be a cross-compilation.

              And if I can do it on my laptop, is it different from the build that qt creator (of my ubuntu laptop ) does?

              I don't understand this question. I guess you mean to ask if the prebuilt Qt for this, taken from Qt installer? Then yes, your laptop is 64 bit x86 and Lattepanda is also 64 bit x86.

              (Z(:^

              1 Reply Last reply
              1

              • Login

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