Error the opengl functionality tests failed

Hi Qters, When i configure qt-everywhere-opensource-src-5.9.0. using ubuntu virtual machine , the error occur : the opengl functionality tests failed You might need to modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2], QM...

Forum Updated on Feb 6th

This topic has been deleted. Only users with topic management privileges can see it.

  • Hi Qters,

    When i configure qt-everywhere-opensource-src-5.9.0. using ubuntu virtual machine ,

    the error occur :

    the opengl functionality tests failed
    You might need to modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform

    I have install opengl :

    sudo apt-get install build-essential
    sudo apt-get install libgl1-mesa-dev
    sudo apt-get install libglu1-mesa-dev
    sudo apt-get install libglut-dev

    Now i do not know how to

    modify the include and library search paths by editting QMAKE_INCLUDE_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2

    Can you provide any clues ?

    Thanks in advance!

  • @liubbc Add -v to your configure call, then you will see what is really missing

  • how to add -v?

  • @vincent365 said in the opengl functionality tests failed:

    how to add -v?

    You are compiling Qt from source, right? The first step is to call configure. So, you need to add ‘-v’ flag there:

    configure -v [other config options you use for building Qt, like -confirm-license -nomake examples etc.]
    

    I suspect you miss some OpenGL stuff. Try calling:

    sudo apt-get build-dep qt5-default
    
  • ees.o .obj/uncompr.o .obj/zutil.o
    make[3]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap’
    make[2]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src’
    Makefile:45: recipe for target ‘sub-src-make_first’ failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase’
    Makefile:72: recipe for target ‘module-qtbase-make_first’ failed
    make: *** [module-qtbase-make_first] Error 2

    when I crossing-build the source it show these errors. Do you kown it?

  • @vincent365 said in the opengl functionality tests failed:

    ees.o .obj/uncompr.o .obj/zutil.o
    make[3]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src/tools/bootstrap’
    make[2]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase/src’
    Makefile:45: recipe for target ‘sub-src-make_first’ failed
    make[1]: *** [sub-src-make_first] Error 2
    make[1]: Leaving directory ‘/home/lihongxi/work/qt-everywhere-opensource-src-5.6.0/qtbase’
    Makefile:72: recipe for target ‘module-qtbase-make_first’ failed
    make: *** [module-qtbase-make_first] Error 2

    when I crossing-build the source it show these errors. Do you kown it?

    This output does not show the error message, please look for it.

    Also, please don’t steal somebody else’s thread, your issue is probably unrelated to what liubbc wrote about.

  • saw similar issue, installed the following fixed it

    libgl1-mesa-dev 
    libglu1-mesa-dev
    
  • I know I am late , but others may be still looking, so anyway: please try adding -opengl desktop as a parameter. Worked for me.

  • I got this error when I didn’t have the ninja build system installed, and configure created the Makefile based build system. After installing ninja (the ninja-build package on Debian), it worked.

  • I am also getting same error while compiling qt-everywhere-src-5.12.12 on CetnOS 7
    Tried to get more logs with ./configure -v option

    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    I already installed : yum install mesa-libGL-devel mesa-libGLU-devel
    Still same error

  • @KiranS Check the configure.log file — there must be more information than what you posted (compiler/linker call and the actual error message).

  • @jsulm checked config log which has multiple dependency errors:

    /root/tmp/qt-everywhere-src-5.12.12/qtdeclarative/config.tests/d3d12/d3d12.cpp:40:19: fatal error: d3d12.h: No such file or directory
    /root/tmp/qt-everywhere-src-5.12.12/qtlocation/config.tests/winrt/main.cpp:30:28: fatal error: windows.system.h: No such file or directory
    /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/alsa/alsatest.cpp:29:28: fatal error: alsa/asoundlib.h: No such file or directory
    /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/khr/khr.cpp:29:29: fatal error: KHR/khrplatform.h: No such file or directory
    /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/re2/re2.cpp:29:21: fatal error: re2/re2.h: No such file or directory
    /root/tmp/qt-everywhere-src-5.12.12/qtwebengine/config.tests/snappy/snappy.cpp:29:20: fatal error: snappy.h: No such file or directory

    to resolve it I installed below packages but no luck

    libvkd3d-devel
    kf5-kwindowsystem-devel
    alsa-lib-devel
    pcre2-devel
    snappy-devel
    
  • @KiranS said in the opengl functionality tests failed:

    but no luck

    Still same errors?
    I suggest to run configure from clean state (new build folder).

  • @jsulm Thank you for your help, errors disappeared after running configure in fresh directory. :)

  • I was also having that problem, but configure is indeed fine with OpenGL when run from a fresh directory (and after installing the relevant OpenGL package(s), I can’t recall which ones). Man, so much time wasted on such a simple fix.

  • Add -no-opengl to the configure command line option saves my life.

I’m trying to build an executable Qt-based program for Linux, and link Qt statically in the binary. According to the Qt docs, to do this I’m going to need to build Qt from source, starting with the commands:

cd /path/to/Qt
./configure -static -prefix /path/to/Qt

when I try this, I get a long bunch of output ending with:

ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

Check config.log for details.

This isn’t the first time I had problems with OpenGL and Qt… when I built my program with dynamic linking (using binary Qt libs) I got a similar problem, which I solved by symlinking to libGL.so from /usr/lib.

The output from configure said to go and find the «mkspec» for my platform, so I looked at Qt/5.13.1/Src/qtbase/mkspecs/linux-g++-64 (I explicitly told it to use that platform with the -platform command). I rooted around and tried setting those envvars to various combinations of paths that seemed plausible, to no avail.

It also mentioned a config.log file. When I look in this file, I can see open GL mentioned only in this block:

loaded result for library config.qtbase_gui.libraries.opengl
Trying source 0 (type pkgConfig) of library opengl ...
+ /usr/bin/pkg-config --exists --silence-errors gl
pkg-config did not find package.
  => source produced no result.
Trying source 1 (type makeSpec) of library opengl ...
Include path /usr/include/libdrm is invalid.
header entry 'config.qtbase_gui.libraries.opengl.headers.0' passed condition.
GL/gl.h not found in [/usr/include/libdrm] and global paths.
  => source produced no result.
test config.qtbase_gui.libraries.opengl FAILED
loaded result for library config.qtbase_gui.libraries.opengl_es2
Trying source 0 (type pkgConfig) of library opengl_es2 ...
+ /usr/bin/pkg-config --exists --silence-errors glesv2
pkg-config did not find package.
  => source produced no result.
Trying source 1 (type makeSpec) of library opengl_es2 ...
None of [libGLESv2.so libGLESv2.a] found in [] and global paths.
  => source produced no result.
test config.qtbase_gui.libraries.opengl_es2 FAILED

Indeed pkg-config --print-errors --exists gl can’t find anything. No idea where it’s getting that /usr/include/libdrm path…

User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

[SOLVED] Problem while building the Qt5 on Ubuntu 18.04

I’m trying to build Qt5 source code now. But no success yet.
Please review my steps and let me know any possible mistakes.

Download the Qt5 (ver5.10) source code

Code: Select all

sudo apt-get build-dep qt5-default git
sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrv
git clone https://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.10
perl init-repository  

Add a mali_hack (Line 90 in Qt 5.10 qtbase/src/platformsupport/eglconvenience/qxlibeglintegration.cpp)

Code: Select all

                 return visualId;
             }
+            //hack
+            return visualId;
+            //end hack

Change «qtbase/mkspecs/linux-g++/qmake.conf» file like this

Code: Select all

# 
# qmake configuration for linux-g++ 
# 

MAKEFILE_GENERATOR = UNIX 
CONFIG += incremental 
QMAKE_INCREMENTAL_STYLE = sublib 

include(../common/linux.conf) 
include(../common/gcc-base-unix.conf) 
include(../common/g++-unix.conf) 

#QMAKE_INCDIR += /usr/include 
#QMAKE_LIBDIR += /usr/lib 

#QMAKE_INCDIR_OPENGL = /usr/include/GL 
#QMAKE_LIBDIR_OPENGL = /usr/lib/arm-linux-gnueabihf/mesa 
QMAKE_INCDIR_EGL = /usr/include/EGL 
QMAKE_LIBDIR_EGL = /usr/lib/arm-linux-gnueabihf/mali-egl
QMAKE_INCDIR_OPENGL_ES2 = /usr/include/GLES2
QMAKE_LIBDIR_OPENGL_ES2 = /usr/lib/arm-linux-gnueabihf/mali-egl
#QMAKE_INCDIR_OPENVG = $QMAKE_INCDIR_EGL
#QMAKE_LIBDIR_OPENVG = /usr/lib/arm-linux-gnueabihf/mali-egl

QMAKE_LIBS_EGL += -lEGL
#QMKAE_LIBS_GL += -lGL
QMAKE_LIBS_OPENGL_ES2 += -lGLESv2 -lEGL -lmali

#QMAKE_LFLAGS += -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf
QMAKE_CFLAGS += -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard
QMAKE_CXXFLAGS += $$QMAKE_CFLAGS
QMAKE_CFLAGS_RELEASE += -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard
DISTRO_OPTS += "hard-float"
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CXXFLAGS -O2

QT_INSTALL_PREFIX="/home/odroid/qt5/build" ## Edit this if you have a preference 

# Preferred eglfs backend 
EGLFS_DEVICE_INTEGRATION = eglfs_linuxfb 
load(qt_config)

Make a QMake file.

Code: Select all

cd qtbase
./configure -prefix "/home/odroid/qt5/build" -release -confirm-license -opensource -platform linux-g++ -opengl es2 -no-pch

But I met this error message.

Code: Select all

<srcbase> = /home/odroid/qt5/qtbase 
<outbase> = /home/odroid/qt5/qtbase ource -platform linux-g++ -opengl es2 -no-pch
Creating qmake...
.Done.

This is the Qt Open Source Edition.

You have already accepted the terms of the Open Source license.

Running configuration tests...
Done running configuration tests.

Configure summary:

Build type: linux-g++ (arm, CPU features: neon)
Configuration: use_gold_linker compile_examples enable_new_dtags largefile neon shared rpath release c++11 c++14 c++1z concurrent dbus reduce_exports stl
Build options:
  Mode ................................... release
  Optimize release build for size ........ no
  Building shared libraries .............. yes
  Using C++ standard ..................... C++1z
  Using ccache ........................... no
  Using gold linker ...................... yes
  Using new DTAGS ........................ yes
  Using precompiled headers .............. no
  Using LTCG ............................. no
  Target compiler supports:
    NEON ................................. yes
  Build parts ............................ libs examples tools
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... yes
  Qt D-Bus directly linked to libdbus .... yes
  Qt Gui ................................. yes
  Qt Network ............................. yes
  Qt Sql ................................. yes
  Qt Testlib ............................. yes
  Qt Widgets ............................. yes
  Qt Xml ................................. yes
Support enabled for:
  Using pkg-config ....................... yes
  QML debugging .......................... yes
  udev ................................... yes
  Using system zlib ...................... yes
Qt Core:
  DoubleConversion ....................... yes
    Using system DoubleConversion ........ yes
  GLib ................................... yes
  iconv .................................. no
  ICU .................................... yes
  Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
  Using system PCRE2 ..................... no
Qt Network:
  getifaddrs() ........................... yes
  IPv6 ifname ............................ yes
  libproxy ............................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ no
  OpenSSL 1.1 ............................ yes
  SCTP ................................... no
  Use system proxies ..................... yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... yes
    Using system HarfBuzz ................ yes
  Fontconfig ............................. yes
  Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
      Using system libjpeg ............... yes
    PNG .................................. yes
      Using system libpng ................ yes
  EGL .................................... no
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no
  Vulkan ................................. no
  Session Management ..................... yes
Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... yes
  INTEGRITY HID .......................... no
  mtdev .................................. yes
  tslib .................................. no
  xkbcommon-evdev ........................ yes
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. no
  LinuxFB ................................ yes
  VNC .................................... yes
  Mir client ............................. no
  X11:
    Using system-provided XCB libraries .. yes
    EGL on X11 ........................... no
    Xinput2 .............................. yes
    XCB XKB .............................. yes
    XLib ................................. yes
    XCB render ........................... yes
    XCB GLX .............................. yes
    XCB Xlib ............................. yes
    Using system-provided xkbcommon ...... yes
    Native painting (experimental) ....... yes
Qt Widgets:
  GTK+ ................................... yes
  Styles ................................. Fusion Windows
Qt PrintSupport:
  CUPS ................................... yes
Qt Sql:
  DB2 (IBM) .............................. no
  InterBase .............................. no
  MySql .................................. yes
  OCI (Oracle) ........................... no
  ODBC ................................... yes
  PostgreSQL ............................. yes
  SQLite2 ................................ no
  SQLite ................................. yes
    Using system provided SQLite ......... no
  TDS (Sybase) ........................... yes

Note: Dropped compiler flags '-pthread' when detecting library 'glib'.

Note: Dropped compiler flags '-pthread' when detecting library 'gtk3'.

ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.

ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

Check config.log for details.

But I could find the GPU related files in the proper directory. Other EGL software like glmark2-es2, es2gears and webgl are working fine.

Code: Select all

odroid@odroid:~/qt5/qtbase$ ls -alp /usr/lib/arm-linux-gnueabihf/mali-egl/                                                                                                                                                       
total 20128
drwxr-xr-x   2 root root     4096 Apr 18 03:27 ./
drwxr-xr-x 114 root root    86016 May 23 10:28 ../
-rw-r--r--   1 root root       38 Apr 17 21:00 ld.so.conf
-rwxr-xr-x   1 root root     2752 Apr 17 21:00 libEGL.so
lrwxrwxrwx   1 root root        9 Apr 17 21:00 libEGL.so.1 -> libEGL.so
lrwxrwxrwx   1 root root        9 Apr 17 21:00 libEGL.so.1.4 -> libEGL.so
-rwxr-xr-x   1 root root     2752 Apr 17 21:00 libGLESv1_CM.so
lrwxrwxrwx   1 root root       15 Apr 17 21:00 libGLESv1_CM.so.1 -> libGLESv1_CM.so
lrwxrwxrwx   1 root root       15 Apr 17 21:00 libGLESv1_CM.so.1.1 -> libGLESv1_CM.so
-rwxr-xr-x   1 root root     2752 Apr 17 21:00 libGLESv2.so
lrwxrwxrwx   1 root root       12 Apr 17 21:00 libGLESv2.so.2 -> libGLESv2.so
lrwxrwxrwx   1 root root       12 Apr 17 21:00 libGLESv2.so.2.0 -> libGLESv2.so
-rwxr-xr-x   1 root root     2752 Apr 17 21:00 libOpenCL.so
lrwxrwxrwx   1 root root       12 Apr 17 21:00 libOpenCL.so.1 -> libOpenCL.so
lrwxrwxrwx   1 root root       12 Apr 17 21:00 libOpenCL.so.1.1 -> libOpenCL.so
-rwxr-xr-x   1 root root 20493444 Apr 17 21:00 libmali.so

Can you please let me know what was wrong?
This is my first time to try building the Qt source code. :(


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Wed May 23, 2018 10:45 pm

First I’d suggest not using the «hack» line but instead using the Vendor line: if (vendor && (strstr(vendor, "Vivante") || strstr(vendor, "ARM"))) this much better than always forcing the system to use this return path.

If you check the output of the configure result you can see the following:

Code: Select all

  EGL .................................... no
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no

This is normally the case if you do NOT have the mesa headers installed, QT is one of these applications that require both MESA and MALI installed side by side.

Most likely this section will give you quite some trouble as well:

Code: Select all

QPA backends:
  DirectFB ............................... no
  EGLFS .................................. no
  LinuxFB ................................ yes
  VNC .................................... yes
  Mir client ............................. no
  X11:
    Using system-provided XCB libraries .. yes
    EGL on X11 ........................... no
    Xinput2 .............................. yes
    XCB XKB .............................. yes
    XLib ................................. yes
    XCB render ........................... yes
    XCB GLX .............................. yes
    XCB Xlib ............................. yes
    Using system-provided xkbcommon ...... yes
    Native painting (experimental) ....... yes

It defines what backends should be used and what you want is EGL on X11 but by now the MALI code detection is upstream already and it will instead try to go for EGLFS or LinuxFB which means it bypasses X11.
I don’t remember what exactly I did, but I had to alter the configure script to make sure mali detection retuns NO as an answer or else it won’t use EGL on X11.

Also in most cases programs will use /usr/lib/arm-linux-gnueabihf/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so and /usr/lib/arm-linux-gnueabihf/libEGL.so they don’t really care what’s in subfolders, unless the links I mentioned point directly to these libraries.


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Thu May 24, 2018 8:57 am

I’ve changed the source code as you suggested. It is much more logical now. :)

mesa-headers exist by deafult in our Ubuntu image.

Code: Select all

odroid@odroid:~$ dpkg -l *mesa*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                   Version                  Architecture             Description
+++-======================================-========================-========================-==================================================================================
ii  libegl-mesa0:armhf                     18.0.0~rc5-1ubuntu1      armhf                    free implementation of the EGL API -- Mesa vendor library
ii  libegl1-mesa:armhf                     18.0.0~rc5-1ubuntu1      armhf                    transitional dummy package
ii  libegl1-mesa-dev:armhf                 18.0.0~rc5-1ubuntu1      armhf                    free implementation of the EGL API -- development files
ii  libgl1-mesa-dev:armhf                  18.0.0~rc5-1ubuntu1      armhf                    free implementation of the OpenGL API -- GLX development files
ii  libgl1-mesa-dri:armhf                  18.0.0~rc5-1ubuntu1      armhf                    free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:armhf                  18.0.0~rc5-1ubuntu1      armhf                    transitional dummy package
un  libgl1-mesa-swx11                      <none>                   <none>                   (no description available)
ii  libglapi-mesa:armhf                    18.0.0~rc5-1ubuntu1      armhf                    free implementation of the GL API -- shared library
un  libgles2-mesa                          <none>                   <none>                   (no description available)
ii  libgles2-mesa-dev:armhf                18.0.0~rc5-1ubuntu1      armhf                    free implementation of the OpenGL|ES 2.x API -- development files
ii  libglu1-mesa:armhf                     9.0.0-2.1build1          armhf                    Mesa OpenGL utility library (GLU)
ii  libglu1-mesa-dev:armhf                 9.0.0-2.1build1          armhf                    Mesa OpenGL utility library -- development files
ii  libglx-mesa0:armhf                     18.0.0~rc5-1ubuntu1      armhf                    free implementation of the OpenGL API -- GLX vendor library
ii  libwayland-egl1-mesa:armhf             18.0.0~rc5-1ubuntu1      armhf                    implementation of the Wayland EGL platform -- runtime
ii  mesa-common-dev:armhf                  18.0.0~rc5-1ubuntu1      armhf                    Developer documentation for Mesa
un  mesa-glide2-dev                        <none>                   <none>                   (no description available)
ii  mesa-utils                             8.4.0-1                  armhf                    Miscellaneous Mesa GL utilities
ii  mesa-utils-extra                       8.4.0-1                  armhf                    Miscellaneous Mesa utilies (opengles, egl)
ii  mesa-va-drivers:armhf                  18.0.0~rc5-1ubuntu1      armhf                    Mesa VA-API video acceleration drivers
ii  mesa-vdpau-drivers:armhf               18.0.0~rc5-1ubuntu1      armhf                    Mesa VDPAU video acceleration drivers
un  mesag-dev                              <none>                   <none>                   (no description available)
un  mesag3                                 <none>                   <none>                   (no description available)
un  mesag3+ggi-dev                         <none>                   <none>                   (no description available)
un  xlibmesa-dev                           <none>                   <none>                   (no description available)
un  xlibmesa-glu-dev                       <none>                   <none>                   (no description available)
un  xlibmesa3                              <none>                   <none>                   (no description available)

I will try to learn how Qtbase configuration detects the OpenGL ES capabilities with the strange mesa dependancies.
But it seems to be very hard to understand for me. :(


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Thu May 24, 2018 3:03 pm

then maybe it’s the last sentence I said.
QT compiles tiny example applications and links them against the libraries I mentioned.
Linking = successful -> yes, else no

Code: Select all

# EGL Support
if [ "$CFG_EGL" != "no" ]; then
    if [ "$CFG_EGL" = "yes" ] && [ "$CFG_OPENGL" = "no" ]; then
        echo "EGL support was requested but OpenGL support is disabled."
        echo "Either disable EGL support or enable OpenGL support."
        exit 101
    fi

    if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists egl 2>/dev/null; then
        QMAKE_INCDIR_EGL=`$PKG_CONFIG --cflags-only-I egl 2>/dev/null | sed -e 's,^-I,,g' -e 's, -I, ,g'`
        QMAKE_LIBS_EGL=`$PKG_CONFIG --libs egl 2>/dev/null`
        QMAKE_CFLAGS_EGL="`$PKG_CONFIG --cflags egl 2>/dev/null` -fpermissive"
        QMakeVar set QMAKE_INCDIR_EGL "$QMAKE_INCDIR_EGL"
        QMakeVar set QMAKE_LIBS_EGL "$QMAKE_LIBS_EGL"
        QMakeVar set QMAKE_CFLAGS_EGL "`echo " $QMAKE_CFLAGS_EGL " | sed -e 's, -I[^ ]* , ,g;s,^ ,,;s, $,,'`"
    fi       # detect EGL support
    if compileTest qpa/egl "EGL" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then
        CFG_EGL=yes
        if compileTest qpa/egl-x11 "EGL-X11" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then
            CFG_EGL_X=yes
        else
            CFG_EGL_X=no
        fi
    elif [ "$CFG_EGL" = "yes" ]; then
        echo " The EGL functionality test failed; EGL is required by some QPA plugins to manage contexts & surfaces."
        [ -z "$PKG_CONFIG" ] && echo " Use of pkg-config is not enabled, maybe you want to pass -pkg-config?"
        echo " You might need to modify the include and library search paths by editing"
        echo " QMAKE_INCDIR_EGL, QMAKE_LIBDIR_EGL and QMAKE_LIBS_EGL in ${XQMAKESPEC}."
        exit 1
    else
        CFG_EGL=no
        CFG_EGL_X=no
    fi
fi

First they check with pkg-config if the library exists:

It returns 0 if true or 1 if not
If true, they get different environment variables:
include paths: pkg-config --cflags-only-I egl
libaries required for linking: pkg-config --libs egl
compiler flags: pkg-config --cflags egl

after that they compile example programs with the variables they just gathered:

Code: Select all

      if compileTest qpa/egl "EGL" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then
        CFG_EGL=yes
        if compileTest qpa/egl-x11 "EGL-X11" $QMAKE_CFLAGS_EGL $QMAKE_LIBS_EGL; then
            CFG_EGL_X=yes

Similar things are done for OpenGL and OpenGL ES.

Also you should make sure you pass the option that you want «es2» as OpenGL -opengl es2:

Code: Select all

elif [ "$CFG_OPENGL" = "es2" ]; then
    #OpenGL ES 2.0

    compileTestWithPkgConfig glesv2 unix/opengles2 "OpenGL ES 2.0" OPENGL_ES2
    if [ $? != "0" ]; then
        echo "The OpenGL ES 2.0 functionality test failed!"
        [ -z "$PKG_CONFIG" ] && echo " Use of pkg-config is not enabled, maybe you want to pass -pkg-config?"
        echo " You might need to modify the include and library search paths by editing"
        echo " QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in"
        echo " ${XQMAKESPEC}."
        exit 1
    fi

Or else it will always test for OpenGL first.


moon.linux

Posts: 1215
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+…
Has thanked:
4 times
Been thanked:
13 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by moon.linux » Thu May 24, 2018 3:34 pm

Hi odroid,

To build qmake

Code: Select all

odroid@odroid:~/qt5/qtbase$ ./configure -v -prefix "/home/odroid/qt5/build" -release -confirm-license -opensource -platform linux-g++ -opengl es2 -no-pch -make libs  &> config_option

As per your suggestion here is the patch for qmake.
attach is the

redirect output.

Attachments
config_option.txt
config option
(186.24 KiB) Downloaded 807 times
qtbase.patch.txt
qtbase patch
(2.25 KiB) Downloaded 652 times


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Thu May 24, 2018 3:45 pm

I think your patch is missing an opening bracket on the vendor line.

Also here’s an excerpt from your config_options.txt:

Code: Select all

Checking for OpenGL ES 2.0... 
Trying source 0 (type pkgConfig) of library opengl_es2 ...
+ /usr/bin/pkg-config --exists --silence-errors glesv2
+ /usr/bin/pkg-config --modversion glesv2
> 18.0.0-rc5
+ /usr/bin/pkg-config --libs-only-L glesv2
+ /usr/bin/pkg-config --libs-only-l glesv2
> -lGLESv2
+ /usr/bin/pkg-config --cflags glesv2
+ cd /home/odroid/qt5/qtbase/config.tests/opengl_es2 && /home/odroid/qt5/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" 'LIBS += -lGLESv2' /home/odroid/qt5/qtbase/config.tests/opengl_es2
+ cd /home/odroid/qt5/qtbase/config.tests/opengl_es2 && MAKEFLAGS= /usr/bin/make
> g++ -c -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -O2 -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -O2 -w -fPIC  -I. -I/home/odroid/qt5/qtbase/mkspecs/linux-g++ -o main.o main.cpp
> g++ -Wl,-O1 -fuse-ld=gold -o opengl_es2 main.o   -lGLESv2 
> /usr/bin/arm-linux-gnueabihf-ld.gold: error: cannot open /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libGLESv2.so: No such file or directory
> main.o:main.cpp:function main: error: undefined reference to 'glUniform1f'
> main.o:main.cpp:function main: error: undefined reference to 'glClear'
> collect2: error: ld returned 1 exit status
> Makefile:67: recipe for target 'opengl_es2' failed
> make: *** [opengl_es2] Error 1
 => source failed verification.

You can see it’s trying to link against -lGLESv2 and fails as it says: /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libGLESv2.so: No such file or directory
so as I said earlier it tries to open: /usr/lib/arm-linux-gnueabihf/libGLESv2.so which apparently is not present or wrongly linked.

After that it tries your mali hack and succeeds, my opinion, rather than hacking the build system, make sure your links for /usr/lib/arm-linux-gnueabihf/libGLESv2.so are correct with that you don’t need to alter the code (or at least keep it to a minimum).
Also you can see your EGL fails completely, you have to hack that a little more and link it against mali as well.
EGL on X11 is disabled, which is what you want for desktop Qt5 applications, or else you can only run fullscreen (framebuffer) applications.


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Thu May 24, 2018 4:09 pm

I’m trying another approach.
I’ve downloaded the Qtbase source code from official Ubuntu ppa and edited source code.

Code: Select all

apt source qtbase5-dev
cd qtbase-opensource-src-5.9.5+dfsg
vi src/platformsupport/eglconvenience/qxlibeglintegration.cpp

Then, I started to build with dpkg-build.

This time, the configuration looks much better. I didn’t change the soft-links of GL-ES libs.
The «rules» file in debian directory seems to be well made by Debian developers.

Code: Select all

Build type: linux-g++ (arm, CPU features: <none>)
Configuration: compile_examples enable_new_dtags largefile precompile_header nostrip shared release c++11 c++14 c++1z concurrent dbus reduce_exports release_tools stl
Build options:
  Mode ................................... release; optimized tools
  Optimize release build for size ........ no
  Building shared libraries .............. yes
  Using C++ standard ..................... C++1z
  Using ccache ........................... no
  Using gold linker ...................... no
  Using new DTAGS ........................ yes
  Using precompiled headers .............. yes
  Using LTCG ............................. no
  Target compiler supports:
    NEON ................................. no
  Build parts ............................ libs examples tools
Qt modules and options:
  Qt Concurrent .......................... yes
  Qt D-Bus ............................... yes
  Qt D-Bus directly linked to libdbus .... yes
  Qt Gui ................................. yes
  Qt Network ............................. yes
  Qt Sql ................................. yes
  Qt Testlib ............................. yes
  Qt Widgets ............................. yes
  Qt Xml ................................. yes
Support enabled for:
  Using pkg-config ....................... yes
  QML debugging .......................... yes
  udev ................................... yes
  Using system zlib ...................... yes
Qt Core:
  DoubleConversion ....................... yes
    Using system DoubleConversion ........ yes
  GLib ................................... yes
  iconv .................................. no
  ICU .................................... yes
  Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
  Using system PCRE2 ..................... no
Qt Network:
  getaddrinfo() .......................... yes
  getifaddrs() ........................... yes
  IPv6 ifname ............................ yes
  libproxy ............................... no
  OpenSSL ................................ yes
    Qt directly linked to OpenSSL ........ no
  SCTP ................................... no
  Use system proxies ..................... yes
Qt Gui:
  Accessibility .......................... yes
  FreeType ............................... yes
    Using system FreeType ................ yes
  HarfBuzz ............................... yes
    Using system HarfBuzz ................ yes
  Fontconfig ............................. yes
  Image formats:
    GIF .................................. yes
    ICO .................................. yes
    JPEG ................................. yes
      Using system libjpeg ............... yes
    PNG .................................. yes
      Using system libpng ................ yes
  EGL .................................... yes
  OpenVG ................................. no
  OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ yes
    OpenGL ES 3.0 ........................ yes
    OpenGL ES 3.1 ........................ no
  Session Management ..................... yes
Features used by QPA backends:
  evdev .................................. yes
  libinput ............................... yes
  INTEGRITY HID .......................... no
  mtdev .................................. yes
  tslib .................................. no
  xkbcommon-evdev ........................ yes
QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... yes
    EGLFS GBM ............................ yes
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGL on X11 ........................... yes
  LinuxFB ................................ yes
  VNC .................................... yes
  Mir client ............................. no
  X11:
    Using system-provided XCB libraries .. yes
    EGL on X11 ........................... yes
    Xinput2 .............................. yes
    XCB XKB .............................. yes
    XLib ................................. yes
    XCB render ........................... yes
    XCB GLX .............................. yes
    XCB Xlib ............................. yes
    Using system-provided xkbcommon ...... yes
Qt Widgets:
  GTK+ ................................... yes
  Styles ................................. Fusion Windows
Qt PrintSupport:
  CUPS ................................... yes
Qt Sql:
  DB2 (IBM) .............................. no
  InterBase .............................. yes
  MySql .................................. yes
  OCI (Oracle) ........................... no
  ODBC ................................... yes
  PostgreSQL ............................. yes
  SQLite2 ................................ no
  SQLite ................................. yes
    Using system provided SQLite ......... yes
  TDS (Sybase) ........................... yes

Let’s see what happens.
I heard the build time should be over several hours.


moon.linux

Posts: 1215
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+…
Has thanked:
4 times
Been thanked:
13 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by moon.linux » Fri May 25, 2018 3:58 am

@meveric Thanks for pointing my mistake.
I fell their is an issue with symbolic link of the libGLESv2.so library in the /usr/lib/arm-linux-gnueabihf/

Code: Select all

odroid@odroid:/usr/lib/arm-linux-gnueabihf$ find /usr/lib -name libGLESv2.so
/usr/lib/arm-linux-gnueabihf/libGLESv2.so
/usr/lib/arm-linux-gnueabihf/mali-egl/libGLESv2.so
/usr/lib/chromium-browser/libGLESv2.so
odroid@odroid:/usr/lib/arm-linux-gnueabihf$ ls -la /usr/lib/arm-linux-gnueabihf/libGLESv2.so
lrwxrwxrwx 1 root root 18 Mar 5 09:45 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> libGLESv2.so.2.0.0

lrwxrwxrwx 1 root root 18 Mar 5 09:45 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> libGLESv2.so.2.0.0

To resolve this link issue I deleted the symbolic link and create proper link.

Code: Select all

odroid@odroid:~$ cd /usr/lib/arm-linux-gnueabihf
odroid@odroid:/usr/lib/arm-linux-gnueabihf$  sudo rm libGLESv2.so
odroid@odroid:/usr/lib/arm-linux-gnueabihf$  sudo ln -s libGLESv2.so mali-egl/libGLESv2.so.2.0.0

Now the linking is correct to library

Code: Select all

odroid@odroid:~$  ls -la /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libGLESv2.so
lrwxrwxrwx 1 root root 27 May 24 18:04 /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libGLESv2.so -> mali-egl/libGLESv2.so.2.0.0

Now coming to the issue of the configure failed for, it still fails at my end, dont know why.

Attachments
config_test.txt
configure output.
(189.22 KiB) Downloaded 455 times
qtbase.patch.txt
qtbase qmake.conf
(2.24 KiB) Downloaded 456 times


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Fri May 25, 2018 7:28 am

moon.linux wrote:@meveric Thanks for pointing my mistake.
I fell their is an issue with symbolic link of the libGLESv2.so library in the /usr/lib/arm-linux-gnueabihf/

that’s what I keep saying :D

moon.linux wrote:
To resolve this link issue I deleted the symbolic link and create proper link.

Code: Select all

odroid@odroid:~$ cd /usr/lib/arm-linux-gnueabihf
odroid@odroid:/usr/lib/arm-linux-gnueabihf$  sudo rm libGLESv2.so
odroid@odroid:/usr/lib/arm-linux-gnueabihf$  sudo ln -s libGLESv2.so mali-egl/libGLESv2.so.2.0.0

Well that’s not exactly the correct way.
It’s ln -s <from> <to> you made a NEW link called mali-egl/libGLESv2.so.2.0.0 which points to libGLESv2.so what you actually want is the other way around.
Also for libGLESv2.so pointing to a libGLESv2.so.2.0.0 in the same folder is not wrong but actually fine, you have to check where libGLESv2.so.2.0.0 is pointing at.
And keep following it until you find the end-point and that needs to link against libmali.so.. something like this:

Code: Select all

ls -l /usr/lib/arm-linux-gnueabihf/libGLESv2*
lrwxrwxrwx 1 root root 14 Mär 14  2017 /usr/lib/arm-linux-gnueabihf/libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx 1 root root 16 Mär 14  2017 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 -> libGLESv2.so.2.0
lrwxrwxrwx 1 root root 18 Mär 14  2017 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0 -> libGLESv2.so.2.0.0
lrwxrwxrwx 1 root root 13 Mär 14  2017 /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0 -> mali-egl/libmali.so

moon.linux wrote:Now coming to the issue of the configure failed for, it still fails at my end, dont know why.

You only fixed GLESv2, but it seems you haven’t fixed EGL yet:

Code: Select all

Checking for EGL... 
Trying source 0 (type pkgConfig) of library egl ...
+ /usr/bin/pkg-config --exists --silence-errors egl
+ /usr/bin/pkg-config --modversion egl
> 18.0.0-rc5
+ /usr/bin/pkg-config --libs-only-L egl
+ /usr/bin/pkg-config --libs-only-l egl
> -lEGL
+ /usr/bin/pkg-config --cflags egl
> -I/usr/include/libdrm
+ cd /home/odroid/qt5/qtbase/config.tests/egl && /home/odroid/qt5/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" 'LIBS += -lEGL' 'QMAKE_CFLAGS += -I/usr/include/libdrm' 'QMAKE_CXXFLAGS += -I/usr/include/libdrm' /home/odroid/qt5/qtbase/config.tests/egl
+ cd /home/odroid/qt5/qtbase/config.tests/egl && MAKEFLAGS= /usr/bin/make
> g++ -c -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -I/usr/include/libdrm -O2 -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -O2 -w -fPIC  -I. -I/home/odroid/qt5/qtbase/mkspecs/linux-g++ -o main.o main.cpp
> g++ -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-O1 -fuse-ld=gold -o egl main.o   -lEGL 
> /usr/bin/arm-linux-gnueabihf-ld.gold: error: cannot open /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libEGL.so: No such file or directory
> main.o:main.cpp:function main: error: undefined reference to 'eglDestroyContext'
> collect2: error: ld returned 1 exit status
> Makefile:67: recipe for target 'egl' failed
> make: *** [egl] Error 1
 => source failed verification.
Trying source 1 (type makeSpec) of library egl ...
+ cd /home/odroid/qt5/qtbase/config.tests/egl && /home/odroid/qt5/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared use_gold_linker warn_off console single_arch" 'LIBS += -lEGL' /home/odroid/qt5/qtbase/config.tests/egl
+ cd /home/odroid/qt5/qtbase/config.tests/egl && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make
> rm -f main.o
> rm -f *~ core *.core
> g++ -c -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -O2 -pipe -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -mtune=cortex-a15.cortex-a7 -mfloat-abi=hard -O2 -w -fPIC  -I. -I/home/odroid/qt5/qtbase/mkspecs/linux-g++ -o main.o main.cpp
> g++ -Wl,-rpath-link,/usr/lib/arm-linux-gnueabihf -Wl,-O1 -fuse-ld=gold -o egl main.o   -lEGL 
> /usr/bin/arm-linux-gnueabihf-ld.gold: error: cannot open /usr/lib/gcc/arm-linux-gnueabihf/7/../../../arm-linux-gnueabihf/libEGL.so: No such file or directory
> main.o:main.cpp:function main: error: undefined reference to 'eglDestroyContext'
> collect2: error: ld returned 1 exit status
> Makefile:67: recipe for target 'egl' failed
> make: *** [egl] Error 1
 => source failed verification.
test config.gui.libraries.egl FAILED

same as libGLESv2.so the endpoint of libEGL.so should also point to libmali.so :)
HardKernel images had this issue numerous times in the past.
You need to make sure that libGLESv2 libEGL and libGLESv1_CM point agianst libmali.so.


moon.linux

Posts: 1215
Joined: Thu Oct 02, 2014 11:42 pm
languages_spoken: english
ODROIDs: U3, XU3. XU4, C1+…
Has thanked:
4 times
Been thanked:
13 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by moon.linux » Fri May 25, 2018 3:46 pm

Ok I found this qt5 wiki page related to odroid-xu3 https://wiki.qt.io/ODROID-XU3
and I updated the symbolic link as suggested by you and taking a note out of chromium-browser link symbolic.

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libEGL.so
sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so

This changes seem to the trick for configure changes work at my end.

Attachments
config_test.txt
./configure test
(192.55 KiB) Downloaded 468 times


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Fri May 25, 2018 3:49 pm

moon.linux wrote:Ok I found this qt5 wiki page related to odroid-xu3 https://wiki.qt.io/ODROID-XU3
and I updated the symbolic link as suggested by you and taking a note out of chromium-browser link symbolic.

Code: Select all

sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libEGL.so
sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so

Seems I’m either being ignored or have trouble to express myself.
That is exactly what I said numerous times in this thread already :D


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Fri May 25, 2018 6:42 pm

I could build the Qt 5.9.5 source in Canonical server finally.

Here is a quick and dirty build guide.

Install build-depends and source code.
sudo apt build-dep qt5-default
apt source qtbase5-dev
cd qtbase-opensource-src-5.9.5+dfsg

Edit a file for correct detecting the ARM’s Mali GPU.
Line 86 : src/platformsupport/eglconvenience/qxlibeglintegration.cpp
to : if (vendor && (strstr(vendor, "Vivante") || strstr(vendor, "ARM"))) {
from : if (vendor && strstr(vendor, "Vivante")) {

Another file should be edited to avoid a compile error. I wasted several hours to find this simple solution.
src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevice.cpp
http://code.qt.io/cgit/qt/qtbase.git/co … 9e6f24521e

Create two symlinks for proper OpenGL-ES detection. This fix will be included in the next update probably.
sudo rm /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0
sudo rm /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0
sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0
sudo ln -s /usr/lib/arm-linux-gnueabihf/mali-egl/libmali.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1.0.0

Build Qt5
sudo dpkg-buildpackage -b

I met this error when I ran it on a SSH session.
Project ERROR: QtDBus is enabled but session bus is not available. Please check the installation.
When I built it on the Mate desktop terminal instead of the remote ssh access, the build had no issue. It is still not understandable.

After 2~3 hours of boring build time, the «debian packaging» failed due to a missing PGP key.
But all the Qt5 libraries with examples were generated correctly and I could install them with sudo make install command.

Qt-OpenGL example works beautifully. :mrgreen:
Image

I hope I can learn how to make a «.deb» package for easier distribution soon.


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Fri May 25, 2018 7:48 pm

check one folder above the build directory.
The building of .deb files does NOT fail due to missing PGP key, the only thing that will fail is the «signing» so the packages are build but not signed, but that’s not really an issue they will work fine nonetheless.


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Fri May 25, 2018 8:43 pm

I searched ‘*.deb’ files. But I couldn’t find it.
I will check it early next week again.

Update:
You are right. I could find 28 packages in this morning :)

Code: Select all

odroid@odroid:~$ ls *.deb -l
-rw-r--r-- 1 odroid odroid    68408 May 25 22:35 libqt5concurrent5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid  1812376 May 25 22:35 libqt5core5a_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   210808 May 25 22:36 libqt5dbus5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid  2073052 May 25 22:37 libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   591344 May 25 22:37 libqt5network5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    75964 May 25 22:37 libqt5opengl5-dev_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   150168 May 25 22:37 libqt5opengl5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   202200 May 25 22:37 libqt5printsupport5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    87528 May 25 22:37 libqt5sql5-ibase_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    80484 May 25 22:37 libqt5sql5-mysql_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    87620 May 25 22:38 libqt5sql5-odbc_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    81404 May 25 22:38 libqt5sql5-psql_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    77164 May 25 22:38 libqt5sql5-sqlite_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    75996 May 25 22:38 libqt5sql5-tds_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   138992 May 25 22:38 libqt5sql5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   127236 May 25 22:39 libqt5test5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid  1963036 May 25 22:39 libqt5widgets5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   125972 May 25 22:39 libqt5xml5_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid    60672 May 25 22:39 qt5-default_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   141904 May 25 22:39 qt5-gtk-platformtheme_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   846316 May 25 22:39 qt5-qmake-bin_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   228640 May 25 22:39 qt5-qmake_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   649980 May 25 22:39 qtbase5-dev-tools_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid   948496 May 25 22:39 qtbase5-dev_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid 21315672 May 25 22:39 qtbase5-doc-html_5.9.5+dfsg-0ubuntu1_all.deb
-rw-r--r-- 1 odroid odroid 27741672 May 25 22:40 qtbase5-doc_5.9.5+dfsg-0ubuntu1_all.deb
-rw-r--r-- 1 odroid odroid  3863844 May 25 22:40 qtbase5-examples_5.9.5+dfsg-0ubuntu1_armhf.deb
-rw-r--r-- 1 odroid odroid  1069928 May 25 22:40 qtbase5-private-dev_5.9.5+dfsg-0ubuntu1_armhf.deb

I’ve uploaded the pre-compiled Qt5 packages into our server.
Try the following steps to install it.

Code: Select all

sudo apt update && sudo apt upgrade
sudo apt install libfbclient2 libodbc1 libpq5 libsybdb5 libgles2-mesa-dev libxext-dev libinput-dev libxkbcommon-dev
wget https://dn.odroid.com/5422/ODROID-XU3/Ubuntu/qt5.9.5_armhf_bionic.tar.gz
tar xvfz qt5.9.5_armhf_bionic.tar.gz
cd qt5.9.5_armhf_bionic/
sudo dpkg -i *.deb

You can run an OpenGL ES 3.0 example powered by Qt5 if the installation has no issue.

Code: Select all

DISPLAY=:0.0 /usr/lib/arm-linux-gnueabihf/qt5/examples/opengl/hellogles3/hellogles3

Image

If it works well, remove the downloaded packages to save disk space.

Code: Select all

cd ..
rm -rf qt5.9.5_armhf_bionic*


User avatar

meveric

Posts: 11995
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4, GoA v1.1, H2+, HC4, GoS
Has thanked:
81 times
Been thanked:
643 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by meveric » Sun May 27, 2018 9:10 pm

I think only a single packge is required… in fact it’s just a single .so file that’s why I made the fix package instead of uploading so many packages at once.
If you install libqt5gui5 on it’s own it should have the same effect. The rest can come directly from Ubuntu.


korn16ftl3

Posts: 27
Joined: Sat May 19, 2018 12:37 am
languages_spoken: english
ODROIDs: odroid XU4 and cloudshell
Has thanked:
0
Been thanked:
0
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by korn16ftl3 » Mon May 28, 2018 4:38 am

thanks for this guide i needed to install this to run teamviewer host and run my odroid desktop headless on 18.04 and this made it run rather than keep crashing at launch



User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Thu May 31, 2018 9:18 am

Ignore all the complicated installation guide.

Below steps should be enough now for Ubuntu 18.04 users since mdrjr uploaded the packages into the official ppa server.

Code: Select all

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

A new mali-x11 package was updated to fix the broken symlinks too.


ageevp

Posts: 31
Joined: Fri Oct 13, 2017 3:22 pm
languages_spoken: english
ODROIDs: odroid xu4
Has thanked:
0
Been thanked:
0
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by ageevp » Thu May 31, 2018 5:33 pm

VLC. Try to open network stream

[9dc01c60] egl_x11 gl error: cannot select OpenGL API
MESA-LOADER: failed to retrieve device information
libGL error: unable to load driver: exynos_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: exynos
[9d52c660] main decoder error: buffer deadlock prevented
[9de00a70] ts demux error: libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 2) for PID 0


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Thu May 31, 2018 5:50 pm

@ageevp,

Can you run a Qt5 example?
Try this commands after the system upgrade.

Code: Select all

sudo apt-get install qtbase5-examples
/usr/lib/arm-linux-gnueabihf/qt5/examples/opengl/cube/cube

Anyway, the recent VLC does not work due to the transparent video rendering issue on the ARM platforms even you choose the video output option to OpenGL-ES2.






User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Mon Jun 04, 2018 4:01 pm

Try «ffplay»(a part of ffmpeg) with H.264 video files. It also works well with GPU/VPU drivers in Ubuntu 18.04.

I think VLC decoded data is not compatible with Qt video rendering input format.
I hope other Qt experts can give us deeper failure analysis.



User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:



Vitaly

Posts: 3
Joined: Sat Jul 28, 2018 11:36 pm
languages_spoken: russian
ODROIDs: ODROID XU4
Has thanked:
0
Been thanked:
0
Contact:



vk4tux

Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Has thanked:
0
Been thanked:
0
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by vk4tux » Sun Aug 05, 2018 2:26 pm

odroid wrote:@meveric,
Yes, installing «libqt5gui5» seems to be enough.

Code: Select all

sudo apt install libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb

For other users,
Don’t forget to hold it to prevent updating with the wrong build in Canonical server.

I tried on a new image here today, is source missing as did not install ? I cannot run dolphin, konsole etc with error as per thread title issue ;

E: Unable to locate package libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb
E: Couldn’t find any package by glob ‘libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb’
E: Couldn’t find any package by regex ‘libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb’

Thankyou for the help


vk4tux

Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Has thanked:
0
Been thanked:
0
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by vk4tux » Sun Aug 05, 2018 4:55 pm

vk4tux wrote:

odroid wrote:@meveric,
Yes, installing «libqt5gui5» seems to be enough.

Code: Select all

sudo apt install libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb

For other users,
Don’t forget to hold it to prevent updating with the wrong build in Canonical server.

I tried on a new image here today, is source missing as did not install ? I cannot run dolphin, konsole etc with error as per thread title issue ;

E: Unable to locate package libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb
E: Couldn’t find any package by glob ‘libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb’
E: Couldn’t find any package by regex ‘libqt5gui5_5.9.5+dfsg-0ubuntu1_armhf.deb’

Thankyou for the help

It surprises me that todays image still has this issue, rather than the image having been fixed and re-uploaded in working condition. I will look for something else.


vk4tux

Posts: 210
Joined: Wed Sep 24, 2014 6:59 pm
languages_spoken: english
ODROIDs: none
Has thanked:
0
Been thanked:
0
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by vk4tux » Sun Aug 05, 2018 10:18 pm

Also on 18.04 Mate image i am getting ;

*** buffer overflow detected ***

when running C++ compiled programs that ran fine on XU4 14.04

I: 2018-08-05 13:16:33.988 Default interface is : enx001e0630214f
I: 2018-08-05 13:16:33.988 IP to show: enx001e0630214f:192.168.0.4
*** buffer overflow detected ***: ./MMDVMHost terminated
Aborted
odroid@odroid:~/Downloads/MMDVMHost$

I will try Meverics debian image for hopefully better results.


User avatar

odroid

Site Admin
Posts: 40594
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked:
3021 times
Been thanked:
1676 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by odroid » Wed Jun 12, 2019 4:25 pm

Side note.
Today’s canonical update breaks the Qt EGL function.

Download our package and install it manually as a temporary workaround.

Code: Select all

wget http://deb.odroid.in/5422-s/pool/main/q/qtbase-opensource-src/libqt5gui5_5.9.5%2bdfsg-0ubuntu2_armhf.deb
sudo dpkg -i libqt5gui5_5.9.5+dfsg-0ubuntu2_armhf.deb
sudo apt-mark hold libqt5gui5


AreaScout

Posts: 1906
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked:
155 times
Been thanked:
426 times
Contact:

Re: [SOLVED] Problem while building the Qt5 on Ubuntu 18.04

Post

by AreaScout » Sat Jun 15, 2019 12:52 am

    Hi all

    I was building 5.9 for GBM Mali driver, no X11 server running and it works fine, I had to change some source files to get it working !

    @odroid

    If you want the changes to provide a package that runs with X11 and without, let me know ;)

    RG







    Who is online

    Users browsing this forum: No registered users and 4 guests

    Сборка Qt на Windows пошла найти, но у меня возникли некоторые проблемы при сборке на Linux Mint 18. Я скачал qt -where-opensource-src-5.7.0.tar.gz и распаковал его в / home / user / Qt- Статический / Qt5.7.0 /. Затем я запустил configure с помощью следующей команды:

    ./configure -platform linux-g++-32 -prefix /home/user/Qt-Static/Qt5.7.0 -static -opensource -confirm-license -opengl desktop -make libs
    

    Изначально я получил ошибку:

    фатальная ошибка: bits / c ++ config.h: нет такого файла или каталога

    При поиске в Интернете я нашел решение этой проблемы — установить gcc-multilib и g ++ — multilib. После этого при запуске configure я получаю следующий вывод, который содержит ошибку «Проверка функциональности OpenGL не удалась!»

    Creating qmake...
    .........................................................................................Done.
    Running configuration tests...
    checking for C++11...  yes.
    checking for C++14...  yes.
    checking for C++1z...  yes.
    checking for default C++ standard edition...  yes.
    checking for 64-bit std::atomic...  yes.
    checking for sse2...  yes.
    checking for sse3...  yes.
    checking for ssse3...  yes.
    checking for sse4_1...  yes.
    checking for sse4_2...  yes.
    checking for avx...  yes.
    checking for avx2...  yes.
    checking for avx512f...  yes.
    checking for avx512er...  yes.
    checking for avx512cd...  yes.
    checking for avx512pf...  yes.
    checking for avx512dq...  yes.
    checking for avx512bw...  yes.
    checking for avx512vl...  yes.
    checking for avx512ifma...  yes.
    checking for avx512vbmi...  yes.
    checking for ipc_sysv...  yes.
    checking for zlib...  no.
    checking for mtdev...  no.
    checking for libjpeg...  no.
    checking for libpng...  no.
    checking for libdl...  yes.
    checking for DB2...  no.
    checking for InterBase...  no.
    checking for MySQL (thread-safe)...  no.
    checking for MySQL (thread-unsafe)...  no.
    checking for OCI...  no.
    checking for ODBC...  no.
    checking for iODBC...  no.
    checking for PostgreSQL...  no.
    checking for SQLite2...  no.
    checking for TDS...  no.
    checking for NIS...  yes.
    checking for Cups...  no.
    checking for POSIX iconv...  yes.
    checking for D-Bus...  no.
    checking for libproxy...  no.
    checking for Glib...  no.
    checking for ICU...  no.
    checking for PulseAudio...  no.
    checking for OpenGL...  no.
    The OpenGL functionality test failed!
    You might need to modify the include and library search paths by editing
    QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL and QMAKE_LIBS_OPENGL in
    /home/user/Qt-Static/Qt5.7.0/qtbase/mkspecs/linux-g++-32.
    

    После этого make-файл не генерируется. В поисках этой ошибки я нашел несколько вопросов с одной и той же проблемой и различные предлагаемые решения, но я не смог найти ничего, что сработало.

    Я совершенно невежествен, когда дело доходит до Linux. Похоже, что я должен установить QMAKE_INCDIR_OPENGL, QMAKE_LIBDIR_OPENGL а также QMAKE_LIBS_OPENGL, но я на самом деле не уверен, что их установить.

    Может ли кто-нибудь помочь мне с этим?

    0

    Решение

    Я обнаружил, что удаление -opengl desktop из моих параметров настройки решает проблему.

    На окнах мне нужно было использовать -opengl desktop или я получил сообщения об ошибках OpenGL ES. Когда я запустил configure в Linux, я использовал ту же команду и просто изменил параметры -platform и -prefix, поэтому рабочий стол -opengl все еще был там. Я забыл, что это было там, но когда я заметил, я попытался удалить его, и это сработало, поэтому Qt сейчас компилируется. Спасибо за помощь.

    0

    Другие решения

    Других решений пока нет …

    View previous topic :: View next topic  
    Author Message
    V5r29JrRjC576nAY5jQi
    n00b
    n00b

    Joined: 06 Jan 2020
    Posts: 19

    PostPosted: Fri Mar 20, 2020 3:17 pm    Post subject: [SOLVED] Failed to emerge dev-qt/qtgui-5.14.1 Reply with quote

    Hello, I’m trying to update the system that I installed recently. But I’ve got an error:

    Code:

    ERROR: Feature ‘opengl-desktop’ was enabled, but the pre-condition ‘(config.win32 && !config.winrt && !features.opengles2 && (config.msvc || libs.opengl))

                              || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)’ failed.

    ERROR: Feature ‘egl’ was enabled, but the pre-condition ‘(features.opengl || features.openvg) && (features.angle || libs.egl) && (features.dlopen || !config.unix || config.integrity)’ failed.

    ERROR: The OpenGL functionality tests failed!

    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],

    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

     * ERROR: dev-qt/qtgui-5.14.1-r3::gentoo failed (configure phase):

     *   configure failed

     *

     * Call stack:

     *     ebuild.sh, line  125:  Called src_configure

     *   environment, line 2143:  Called qt5-build_src_configure

     *   environment, line 1709:  Called qt5_base_configure

     *   environment, line 1815:  Called die

     * The specific snippet of code:

     *       «${S}»/configure «${conf[@]}» || die «configure failed»;

     *

     * If you need support, post the output of `emerge —info ‘=dev-qt/qtgui-5.14.1-r3::gentoo’`,

     * the complete build log and the output of `emerge -pqv ‘=dev-qt/qtgui-5.14.1-r3::gentoo’`.

     * The complete build log is located at ‘/var/tmp/portage/dev-qt/qtgui-5.14.1-r3/temp/build.log’.

     * The ebuild environment file is located at ‘/var/tmp/portage/dev-qt/qtgui-5.14.1-r3/temp/environment’.

     * Working directory: ‘/var/tmp/portage/dev-qt/qtgui-5.14.1-r3/work/qtbase-everywhere-src-5.14.1’

     * S: ‘/var/tmp/portage/dev-qt/qtgui-5.14.1-r3/work/qtbase-everywhere-src-5.14.1’

    >>> Failed to emerge dev-qt/qtgui-5.14.1-r3, Log file:

    What can I do. TY for helping!

    Last edited by V5r29JrRjC576nAY5jQi on Fri Mar 20, 2020 5:37 pm; edited 1 time in total

    Back to top

    View user's profile Send private message

    fturco
    Veteran
    Veteran

    Joined: 08 Dec 2010
    Posts: 1181
    Location: Italy

    PostPosted: Fri Mar 20, 2020 3:38 pm    Post subject: Reply with quote

    Please post your emerge —info output.
    Back to top

    View user's profile Send private message

    candrews
    Developer
    Developer

    Joined: 10 Aug 2005
    Posts: 162

    PostPosted: Fri Mar 20, 2020 3:59 pm    Post subject: Reply with quote

    There’s a similar problem with dev-qt/qtwayland-5.14.1-r2: https://bugs.gentoo.org/713362
    _________________
    I’m working on a variety of random things throughout Gentoo.
    Back to top

    View user's profile Send private message

    V5r29JrRjC576nAY5jQi
    n00b
    n00b

    Joined: 06 Jan 2020
    Posts: 19

    PostPosted: Fri Mar 20, 2020 4:13 pm    Post subject: Reply with quote

    Code:

    Portage 2.3.89 (python 3.6.10-final-0, default/linux/amd64/17.1/hardened, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo x86_64)

    =================================================================

    System uname: Linux-4.19.86-gentoo-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-gentoo-2.6

    KiB Mem:    16347372 total,    940768 free

    KiB Swap:   18874364 total,  18873076 free

    Timestamp of repository gentoo: Fri, 20 Mar 2020 03:00:01 +0000

    Head commit of repository gentoo: b7299ec1e28d8f5d972da8c10a7c12ea57cd1af6

    Head commit of repository sakaki-tools: b1050cd58789ba90e253e3ae24feea1541e9cb5a

    sh bash 4.4_p23-r1

    ld GNU ld (Gentoo 2.32 p2) 2.32.0

    app-shells/bash:          4.4_p23-r1::gentoo

    dev-java/java-config:     2.2.0-r4::gentoo

    dev-lang/perl:            5.30.1::gentoo

    dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo

    dev-util/cmake:           3.14.6::gentoo

    sys-apps/baselayout:      2.6-r1::gentoo

    sys-apps/openrc:          0.42.1::gentoo

    sys-apps/sandbox:         2.13::gentoo

    sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo

    sys-devel/automake:       1.16.1-r1::gentoo

    sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo

    sys-devel/gcc:            9.2.0-r2::gentoo

    sys-devel/gcc-config:     2.2.1::gentoo

    sys-devel/libtool:        2.4.6-r6::gentoo

    sys-devel/make:           4.2.1-r4::gentoo

    sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)

    sys-libs/glibc:           2.29-r7::gentoo

    Repositories:

    gentoo

        location: /var/db/repos/gentoo

        sync-type: rsync

        sync-uri: rsync://rsync.gentoo.org/gentoo-portage

        priority: -1000

        sync-rsync-extra-opts:

        sync-rsync-verify-metamanifest: yes

        sync-rsync-verify-jobs: 1

        sync-rsync-verify-max-age: 24

    ACCEPT_KEYWORDS=»amd64″

    ACCEPT_LICENSE=»@FREE»

    CBUILD=»x86_64-pc-linux-gnu»

    CFLAGS=»-march=native -O2 -pipe»

    CHOST=»x86_64-pc-linux-gnu»

    CONFIG_PROTECT=»/etc /usr/share/gnupg/qualified.txt»

    CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo»

    CXXFLAGS=»-march=native -O2 -pipe»

    DISTDIR=»/var/cache/distfiles»

    ENV_UNSET=»DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR»

    FCFLAGS=»-march=native -O2 -pipe»

    FEATURES=»assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr»

    FFLAGS=»-march=native -O2 -pipe»

    GENTOO_MIRRORS=»https://mirror.ps.kz/gentoo/pub rsync://mirror.ps.kz/gentoo https://gentoo-mirror.alexxy.name/ rsync://gentoo.bloodhost.ru/gentoo-distfiles https://mirror.yandex.ru/gentoo-distfiles/»

    LANG=»en_US.utf8″

    LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

    MAKEOPTS=»-j9″

    PKGDIR=»/var/cache/binpkgs»

    PORTAGE_CONFIGROOT=»/»

    PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —omit-dir-times —compress —force —whole-file —delete —stats —human-readable —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages —exclude=/.git»

    PORTAGE_TMPDIR=»/var/tmp»

    USE=»acl alsa amd64 bzip2 crypt gtk hardened iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre pie pulseaudio readline seccomp split-usr ssl ssp unicode xattr xtpax zlib» ABI_X86=»64″ ADA_TARGET=»gnat_2018″ ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» APACHE2_MODULES=»authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CALLIGRA_FEATURES=»karbon sheets words» COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» CPU_FLAGS_X86=»aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3″ ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx» GRUB_PLATFORMS=»efi-64″ INPUT_DEVICES=»libinput keyboard mouse» KERNEL=»linux» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LIBREOFFICE_EXTENSIONS=»presenter-console presenter-minimizer» OFFICE_IMPLEMENTATION=»libreoffice» PHP_TARGETS=»php7-2″ POSTGRES_TARGETS=»postgres10 postgres11″ PYTHON_SINGLE_TARGET=»python3_6″ PYTHON_TARGETS=»python2_7 python3_6″ RUBY_TARGETS=»ruby24 ruby25″ USERLAND=»GNU» VIDEO_CARDS=»nvidia» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

    Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

    Back to top

    View user's profile Send private message

    Ionen
    Developer
    Developer

    Joined: 06 Dec 2018
    Posts: 2459

    PostPosted: Fri Mar 20, 2020 4:20 pm    Post subject: Reply with quote

    Earlier in the logs, did it say:

    Code:
    /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../lib64/libGL.so: undefined reference to `_glapi_tls_Current’



    If so and you’re using nvidia, run:

    Code:
    emerge -1 nvidia-drivers xorg-server mesa

    Then do your world update again.

    Edit: Note that this isn’t a qtgui bug, it’s a widespread issue that can technically affect any package that depend on mesa during the libglvnd switch (portage gets the order wrong for nvidia-drivers rebuild). Exception is xorg-server since it added a blocker as a workaround. More likely to be an issue in large world updates. Thankfully, this is a 1-time deal, once rebuilt everything will be fine — just been a bit of a rocky transition.

    Back to top

    View user's profile Send private message

    V5r29JrRjC576nAY5jQi
    n00b
    n00b

    Joined: 06 Jan 2020
    Posts: 19

    PostPosted: Fri Mar 20, 2020 5:33 pm    Post subject: Reply with quote

    That fixed everything!
    Back to top

    View user's profile Send private message

    Xywa
    Veteran
    Veteran

    Joined: 23 Jul 2005
    Posts: 1631
    Location: /mnt/Gentoo/Europe

    PostPosted: Tue Apr 07, 2020 5:36 am    Post subject: Reply with quote

    Hi,

    I got the same problem. This did not help:

    Code:
    emerge -1 nvidia-drivers xorg-server mesa


    Quote:
    [ebuild U ] dev-qt/qtgui-5.14.1-r4 [5.13.2] USE=»X%* -gles2-only% -vulkan%»

    Back to top

    View user's profile Send private message

    sleepingsun
    Guru
    Guru

    Joined: 03 May 2006
    Posts: 445
    Location: Bosnia

    PostPosted: Tue May 26, 2020 2:33 pm    Post subject: Reply with quote

    Thanks a lot helped me to fix problem
    _________________
    Gentoo is Rocks
    Back to top

    View user's profile Send private message

    Display posts from previous:   

    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot vote in polls in this forum

    Hi there,

    I would like to cross compile the welle.io software. It should work later on the Raspberry (OS: Raspbian).

    Unfortunately I am unable to install qt5.

    I follow instructions (https://github.com/AlbrechtL/welle.io/b … ERRY-PI.md)

    The following must be carried out on the host system (desktop PC).

    There are already problems in step 9 because «python» is not found:

    Code: Select all

    a@ubuntu:~/raspi$ ./sysroot-relativelinks.py sysroot
    /usr/bin/env: ‘python’: No such file or directory
    

    I then continued with the other steps anyway.

    Well, qt5 cannot be configured either (step 12).

    I use the following command:

    Code: Select all

    a@ubuntu:~/raspi/qt5$ ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    

    (my host is a 64-bit system and not an ARM).

    When I look roughly over it, I also find a few mistakes, e.g. at the end:

    Code: Select all

    ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    I insert the complete edition here:

    Code: Select all

    a@ubuntu:~/raspi/qt5$ ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=~/raspi/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    + cd qtbase
    + /home/a/raspi/qt5/qtbase/configure -top-level -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/a/raspi/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    <srcbase> = /home/a/raspi/qt5/qtbase 
    <outbase> = /home/a/raspi/qt5/qtbase 
    Creating qmake...
    .Done.
    Selecting Qt Edition.
    Type 'c' if you want to use the Commercial Edition.
    Type 'o' if you want to use the Open Source Edition.
    Which edition of Qt do you want to use? o
    This is the Qt Open Source Edition.
     
    You are licensed to use this software under the terms of
    the GNU Lesser General Public License (LGPL) version 3
    or the GNU General Public License (GPL) version 2.
     
    Type 'L' to view the GNU Lesser General Public License version 3 (LGPLv3).
    Type 'G' to view the GNU General Public License version 2 (GPLv2).
    Type 'y' to accept this license offer.
    Type 'n' to decline this license offer.
     
    Do you accept the terms of either license? 
    Do you accept the terms of either license? y
    Running configuration tests...
    Checking for gold linker... no
    Done running configuration tests.
    Configure summary:
    Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
    Building for: devices/linux-rasp-pi3-g++ (arm, CPU features: neon)
    Configuration: cross_compile compile_examples enable_new_dtags largefile neon precompile_header shared rpath release c++11 c++14 c++1z concurrent dbus reduce_exports stl
    Build options:
      Mode ................................... release
      Optimize release build for size ........ no
      Building shared libraries .............. yes
      Using C++ standard ..................... C++1z
      Using ccache ........................... no
      Using gold linker ...................... no
      Using new DTAGS ........................ yes
      Using precompiled headers .............. yes
      Using LTCG ............................. no
      Target compiler supports:
        NEON ................................. yes
      Build parts ............................ libs examples
    Qt modules and options:
      Qt Concurrent .......................... yes
      Qt D-Bus ............................... yes
      Qt D-Bus directly linked to libdbus .... no
      Qt Gui ................................. yes
      Qt Network ............................. yes
      Qt Sql ................................. yes
      Qt Testlib ............................. yes
      Qt Widgets ............................. yes
      Qt Xml ................................. yes
    Support enabled for:
      Using pkg-config ....................... yes
      QML debugging .......................... yes
      udev ................................... no
      Using system zlib ...................... yes
    Qt Core:
      DoubleConversion ....................... yes
        Using system DoubleConversion ........ no
      GLib ................................... no
      iconv .................................. yes
      ICU .................................... no
      Logging backends:
        journald ............................. no
        syslog ............................... no
        slog2 ................................ no
      Using system PCRE2 ..................... no
    Qt Network:
      getifaddrs() ........................... yes
      IPv6 ifname ............................ yes
      libproxy ............................... no
      OpenSSL ................................ yes
        Qt directly linked to OpenSSL ........ no
      OpenSSL 1.1 ............................ yes
      SCTP ................................... no
      Use system proxies ..................... yes
    Qt Gui:
      Accessibility .......................... yes
      FreeType ............................... yes
        Using system FreeType ................ yes
      HarfBuzz ............................... yes
        Using system HarfBuzz ................ no
      Fontconfig ............................. no
      Image formats:
        GIF .................................. yes
        ICO .................................. yes
        JPEG ................................. yes
          Using system libjpeg ............... no
        PNG .................................. yes
          Using system libpng ................ yes
      EGL .................................... no
      OpenVG ................................. no
      OpenGL:
        Desktop OpenGL ....................... no
        OpenGL ES 2.0 ........................ no
        OpenGL ES 3.0 ........................ no
        OpenGL ES 3.1 ........................ no
        OpenGL ES 3.2 ........................ no
      Vulkan ................................. no
      Session Management ..................... yes
    Features used by QPA backends:
      evdev .................................. yes
      libinput ............................... no
      INTEGRITY HID .......................... no
      mtdev .................................. no
      tslib .................................. no
      xkbcommon-evdev ........................ no
    QPA backends:
      DirectFB ............................... no
      EGLFS .................................. no
      LinuxFB ................................ yes
      VNC .................................... yes
      Mir client ............................. no
      X11:
        Using system-provided XCB libraries .. no
        EGL on X11 ........................... no
        Xinput2 .............................. no
        XCB XKB .............................. yes
        XLib ................................. no
        XCB render ........................... yes
        XCB GLX .............................. no
        XCB Xlib ............................. no
        Using system-provided xkbcommon ...... no
        Native painting (experimental) ....... no
    Qt Widgets:
      GTK+ ................................... no
      Styles ................................. Fusion Windows
    Qt PrintSupport:
      CUPS ................................... no
    Qt Sql:
      DB2 (IBM) .............................. no
      InterBase .............................. no
      MySql .................................. no
      OCI (Oracle) ........................... no
      ODBC ................................... no
      PostgreSQL ............................. no
      SQLite2 ................................ no
      SQLite ................................. yes
        Using system provided SQLite ......... no
      TDS (Sybase) ........................... no
    Qt SerialBus:
      Socket CAN ............................. yes
      Socket CAN FD .......................... yes
    QtXmlPatterns:
      XML schema support ..................... yes
    Qt QML:
      QML interpreter ........................ yes
      QML network support .................... yes
    Qt Quick:
      Direct3D 12 ............................ no
      AnimatedImage item ..................... yes
      Canvas item ............................ yes
      Support for Qt Quick Designer .......... yes
      Flipable item .......................... yes
      GridView item .......................... yes
      ListView item .......................... yes
      Path support ........................... yes
      PathView item .......................... yes
      Positioner items ....................... yes
      ShaderEffect item ...................... yes
      Sprite item ............................ yes
    Qt Gamepad:
      SDL2 ................................... no
    Qt 3D:
      Assimp ................................. yes
      System Assimp .......................... no
      Output Qt3D Job traces ................. no
      Output Qt3D GL traces .................. no
      Use SSE2 instructions .................. no
      Use AVX2 instructions .................. no
      Aspects:
        Render aspect ........................ yes
        Input aspect ......................... yes
        Logic aspect ......................... yes
        Animation aspect ..................... yes
        Extras aspect ........................ yes
    Qt 3D GeometryLoaders:
      Autodesk FBX ........................... no
    Qt Wayland Client ........................ no
    Qt Wayland Compositor .................... no
    Qt Bluetooth:
      BlueZ .................................. no
      BlueZ Low Energy ....................... no
      Linux Crypto API ....................... no
      WinRT Bluetooth API (desktop & UWP) .... no
    Qt Sensors:
      sensorfw ............................... no
    Qt Quick Controls 2:
      Styles ................................. Default Fusion Imagine Material Universal
    Qt Quick Templates 2:
      Hover support .......................... yes
      Multi-touch support .................... yes
    Qt Positioning:
      Gypsy GPS Daemon ....................... no
      WinRT Geolocation API .................. no
    Qt Location:
      Geoservice plugins:
        OpenStreetMap ........................ yes
        HERE ................................. yes
        Esri ................................. yes
        Mapbox ............................... yes
        MapboxGL ............................. no
        Itemsoverlay ......................... yes
    Qt Multimedia:
      ALSA ................................... no
      GStreamer 1.0 .......................... no
      GStreamer 0.10 ......................... no
      Video for Linux ........................ yes
      OpenAL ................................. no
      PulseAudio ............................. no
      Resource Policy (libresourceqt5) ....... no
      Windows Audio Services ................. no
      DirectShow ............................. no
      Windows Media Foundation ............... no
    Note: Also available for Linux: linux-clang linux-icc
    Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.
    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
    ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    If I execute «make», the following message appears:

    Code: Select all

    a@ubuntu:~/raspi/qt5$ make
    make: *** No targets specified and no makefile found. Stop.
    

    Even this command fails:

    Code: Select all

    ./configure -release -opengl es2 -device linux-rasp-pi3++ -device-option CROSS_COMPILE=~/raspi/gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot ~/raspi/sysroot -opensource -confirm-license -no-use-gold-linker -make libs -prefix /usr/local/qt5pi -extprefix ~/raspi/qt5pi -hostprefix ~/raspi/qt5 -v
    

    Result:

    Code: Select all

    ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    Can someone tell me where the error is and how I can cross compile welle.io?

    Понравилась статья? Поделить с друзьями:
  • Error the leftmost character above is illegal in an expression
  • Error the ista p folder you have selected is corrupt or incomplete
  • Error the installation cannot continue as the installer file may be damaged
  • Error the input character is not valid in matlab statements or expressions перевод
  • Error the image you uploaded failed to pass verification