Qt configure ignores paths
-
Hello.
I'm trying to compile Qt5 in a raspberry, but configure ignores include and library paths and always says:-- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) -- Could NOT find EGL (missing: EGL_INCLUDE_DIR HAVE_EGL EGL_LIBRARY) -- Could NOT find GLESv2 (missing: GLESv2_INCLUDE_DIR GLESv2_LIBRARY HAVE_GLESv2 HAVE_GLESv2)
The system is Arch arm, and this is the configure call:
CPLUS_INCLUDE_PATH=/opt/vc/include:/usr/local/include C_INCLUDE_PATH=/opt/vc/include:/usr/local/include LIBRARY_PATH=/opt/vc/build:/usr/local/lib ../configure -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ \ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs \ -prefix /usr/local/qt5 \ -developer-build -I /opt/vc/include -L /opt/vc/lib \ -I /usr/local/include -L /usr/local/lib \ -no-ssl 2>&1 | tee config.out
As you can see I'm trying to pass the paths everywhere.
I've also checked the GL, EGL and GLES tests manually, passing -I and -L to gcc, and everything works fine.
I've also made the modifications suggested in QTBUG-62216 with no success.Does anyone knows why every path is ignored in the configure proccess?
Tanks in advance.PD: I've tried to upload CMakeError.log and CMakeOutput.log as they are very long, but I can't. If needed just tell me and I'll paste them here.
-
But then it's not Qt5 but Qt6 what you're trying to compile.
-
@Paco-Andres said in Qt configure ignores paths:
PD: I've tried to upload CMakeError.log and CMakeOutput.log as they are very long, but I can't. If needed just tell me and I'll paste them here.
There are no such files when you run configure in Qt5.
Take a look into config.log to see what configure is trying to compile to find those libs. -
But I don't know why I've got those files generated by configure.
Instead of upload them here I've uploaded them to drive and these are the links:
CMakeError.log
CMakeOutput.logFor giving more information, these are the steps I've followed:
- Clone the git repository.
- Initialize it with module-subset=essential.
- Tried to configure for compiling.
-
But then it's not Qt5 but Qt6 what you're trying to compile.
-
Yes, I've notice it now.
I've downloaded with:
git clone git://code.qt.io/qt/qt5.git
I've tried again and it downloads Qt6.
I'll search another way to download Qt5.
Thanks.
-
@Paco-Andres said in Qt configure ignores paths:
I've tried again and it downloads Qt6.
This is the Qt repo with all Qt versions
I'll search another way to download Qt5.
What's wrong with https://download.qt.io/official_releases/qt/ ?
-
I'm very used to git.
I've added --branch=5.12.12 and it seems to work.
Thank you very much.