Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1481928 - Can not link against 64bit libGLESv2
Summary: Can not link against 64bit libGLESv2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-angleproject
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sandro Mani
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-16 05:14 UTC by The Source
Modified: 2017-09-11 04:20 UTC (History)
2 users (show)

Fixed In Version: mingw-angleproject-0-0.20.git8613f49.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-11 04:20:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description The Source 2017-08-16 05:14:50 UTC
Description of problem:
When trying to build Qt against angle project GLES libraries I can not link 64 bit version for some reason. 32bit version builds just fine (with i686-w64-mingw32-g++) but when building and linking with x86_64-w64-mingw32-g++ I gen this error:

./.obj/release/qopengltexturehelper.o:qopengltexturehelper.cpp:(.text+0x1ba3): undefined reference to `__imp_glCompressedTexSubImage2D'
./.obj/release/qopengltexturehelper.o:qopengltexturehelper.cpp:(.text+0x1be8): undefined reference to `__imp_glCompressedTexImage2D'
./.obj/release/qopengltexturehelper.o:qopengltexturehelper.cpp:(.text+0x1c0c): undefined reference to `__imp_glActiveTexture'
./.obj/release/qopengltexturehelper.o:qopengltexturehelper.cpp:(.text+0x1c1a): undefined reference to `__imp_glGenerateMipmap'

The symbols are in libGLESv2, I checked with nm, but linker can't find them somehow.

Linker command line is:
x86_64-w64-mingw32-g++ -Wl,-s -shared -Wl,-subsystem,windows -Wl,--out-implib,/mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib/libQt5Gui.a -o ../../lib/Qt5Gui.dll object_script.Qt5Gui.Release  -lcomdlg32 -loleaut32 -limm32 -lwinmm -lws2_32 -lole32 -luuid -ladvapi32 -L/mnt/d/distr/mysql-5.7.19-winx64/lib -L/mnt/d/distr/oracle_12c_oci_devel/winx64/lib/msvc -llibEGL -llibGLESv2 -lgdi32 -luser32 -L/mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib /mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib/libQt5Core.a .obj/release/Qt5Gui_resource_res.o /mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib/libqtlibpng.a -L/mnt/d/distr/mysql-5.7.19-winx64/lib -L/mnt/d/distr/oracle_12c_oci_devel/winx64/lib/msvc -L/mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib /mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib/libQt5Core.a /mnt/d/distr/qt-everywhere-opensource-src-5.9.1/qtbase/lib/libqtharfbuzz.a

I also tried replacing -llibGLESv2 and -llibEGL with -lEGL -lGLESv2 but the result is the same.


Version-Release number of selected component (if applicable):
mingw64-angleproject-0-0.17.git8613f49.fc26.noarch

How reproducible:
always

Steps to Reproduce:
1.Download qt 5.9.1 source code archive
2.Run
./configure -prefix /mnt/d/Qt5.9.1/winx64 -xplatform win32-g++ -device-option CROSS_COMPILE=x86_64-w64-mingw32- -shared -opensource -release -nomake examples -qt-zlib -qt-pcre -qt-freetype -qt-harfbuzz -no-direct2d -qt-libpng -qt-libjpeg

Replace prefix with one that suits you.

3.Run make

Actual results:


Expected results:


Additional info:

Comment 1 Sandro Mani 2017-08-16 07:41:42 UTC
Ah correct, the f26 version still has the incorrect def files for the 64bit libraries. As a quick fix you can use the f27 version, download the rpms from [1]. I'll build the fixed version for f26 also.

[1] https://koji.fedoraproject.org/koji/buildinfo?buildID=929704

Comment 2 The Source 2017-08-16 10:01:46 UTC
Downloaded f26 build from koji, links fine now, thanks.

Comment 3 Fedora Update System 2017-08-17 14:07:55 UTC
mingw-qt5-qtmultimedia-5.7.1-3.fc26 mingw-qt5-qtlocation-5.7.1-3.fc26 mingw-qt5-qtwebkit-5.7.1-3.fc26 mingw-qt5-qtbase-5.7.1-5.fc26 mingw-angleproject-0-0.20.git8613f49.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d5735b89e6

Comment 4 Fedora Update System 2017-08-19 18:55:16 UTC
mingw-angleproject-0-0.20.git8613f49.fc26, mingw-qt5-qtbase-5.7.1-5.fc26, mingw-qt5-qtlocation-5.7.1-3.fc26, mingw-qt5-qtmultimedia-5.7.1-3.fc26, mingw-qt5-qtwebkit-5.7.1-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d5735b89e6

Comment 5 Fedora Update System 2017-09-01 20:42:15 UTC
mingw-qt5-qtbase-5.7.1-5.fc26 mingw-qt5-qtlocation-5.7.1-3.fc26 mingw-qt5-qtmultimedia-5.7.1-3.fc26 mingw-qt5-qtwebkit-5.7.1-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d5735b89e6

Comment 6 Fedora Update System 2017-09-01 20:42:48 UTC
mingw-angleproject-0-0.20.git8613f49.fc26 mingw-qt5-qtwebkit-5.9.1-2.fc26 mingw-qt5-qtgraphicaleffects-5.9.1-2.fc26 mingw-qt5-qtwinextras-5.9.1-2.fc26 mingw-qt5-qtwebsockets-5.9.1-2.fc26 mingw-qt5-qttools-5.9.1-4.fc26 mingw-qt5-qtsensors-5.9.1-2.fc26 mingw-qt5-qtquickcontrols-5.9.1-2.fc26 mingw-qt5-qtmultimedia-5.9.1-3.fc26 mingw-qt5-qtlocation-5.9.1-2.fc26 mingw-qt5-qt3d-5.9.1-4.fc26 mingw-qt5-qtxmlpatterns-5.9.1-2.fc26 mingw-qt5-qttranslations-5.9.1-2.fc26 mingw-qt5-qtsvg-5.9.1-2.fc26 mingw-qt5-qtscript-5.9.1-2.fc26 mingw-qt5-qtimageformats-5.9.1-2.fc26 mingw-qt5-qtdeclarative-5.9.1-4.fc26 mingw-qt5-qtactiveqt-5.9.1-2.fc26 mingw-qt5-qtbase-5.9.1-6.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bfe5da9ab7

Comment 7 Fedora Update System 2017-09-03 05:24:18 UTC
mingw-angleproject-0-0.20.git8613f49.fc26, mingw-qt5-qt3d-5.9.1-4.fc26, mingw-qt5-qtactiveqt-5.9.1-2.fc26, mingw-qt5-qtbase-5.9.1-6.fc26, mingw-qt5-qtdeclarative-5.9.1-4.fc26, mingw-qt5-qtgraphicaleffects-5.9.1-2.fc26, mingw-qt5-qtimageformats-5.9.1-2.fc26, mingw-qt5-qtlocation-5.9.1-2.fc26, mingw-qt5-qtmultimedia-5.9.1-3.fc26, mingw-qt5-qtquickcontrols-5.9.1-2.fc26, mingw-qt5-qtscript-5.9.1-2.fc26, mingw-qt5-qtsensors-5.9.1-2.fc26, mingw-qt5-qtsvg-5.9.1-2.fc26, mingw-qt5-qttools-5.9.1-4.fc26, mingw-qt5-qttranslations-5.9.1-2.fc26, mingw-qt5-qtwebkit-5.9.1-2.fc26, mingw-qt5-qtwebsockets-5.9.1-2.fc26, mingw-qt5-qtwinextras-5.9.1-2.fc26, mingw-qt5-qtxmlpatterns-5.9.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-bfe5da9ab7

Comment 8 Fedora Update System 2017-09-11 04:20:36 UTC
mingw-angleproject-0-0.20.git8613f49.fc26, mingw-qt5-qt3d-5.9.1-4.fc26, mingw-qt5-qtactiveqt-5.9.1-2.fc26, mingw-qt5-qtbase-5.9.1-6.fc26, mingw-qt5-qtdeclarative-5.9.1-4.fc26, mingw-qt5-qtgraphicaleffects-5.9.1-2.fc26, mingw-qt5-qtimageformats-5.9.1-2.fc26, mingw-qt5-qtlocation-5.9.1-2.fc26, mingw-qt5-qtmultimedia-5.9.1-3.fc26, mingw-qt5-qtquickcontrols-5.9.1-2.fc26, mingw-qt5-qtscript-5.9.1-2.fc26, mingw-qt5-qtsensors-5.9.1-2.fc26, mingw-qt5-qtsvg-5.9.1-2.fc26, mingw-qt5-qttools-5.9.1-4.fc26, mingw-qt5-qttranslations-5.9.1-2.fc26, mingw-qt5-qtwebkit-5.9.1-2.fc26, mingw-qt5-qtwebsockets-5.9.1-2.fc26, mingw-qt5-qtwinextras-5.9.1-2.fc26, mingw-qt5-qtxmlpatterns-5.9.1-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.