Configure for x86
-
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 -
@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
-
@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 -
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 :-)
-
@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?
-
@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.