Details
Description
Cross compiling pyside-setup for raspberry Pi4 with following command:
python3 setup.py bdist_wheel --parallel=8 --ignore-git --reuse-build --standalone --limited-api=yes --build-type=all --cmake-toolchain-file=/home/tatiana/work/latestsysroots/raspberryPi4.cmake --qt-host-path=/home/tatiana/Qt/6.4.0/gcc_64/ --plat-name=linux_aarch64 --shiboken-host-path=/home/tatiana/work/latestsysroots/pyside6.4.0-desktop/qfpa-py3.8-qt6.4.0-64bit-release/install/ --python-target-path=/home/tatiana/work/latestsysroots/rpi-sysroot/usr/bin/python3.9 --qt-target-path=/home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/
COMPILATION ERROR:
[1/2] Building CXX object PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o FAILED: PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o /usr/bin/aarch64-linux-gnu-g++-10 --sysroot=/home/tatiana/work/latestsysroots/rpi-raspberry -DNDEBUG -DPy_LIMITED_API=0x03060000 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_LEAN_HEADERS=1 -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQtOpenGL_EXPORTS -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/libpyside -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtCore/PySide6/QtCore -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtGui/PySide6/QtGui -I/home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/build/pyside6/PySide6/QtOpenGL/PySide6/QtOpenGL -I/home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6 -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtCore -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtGui -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/include/QtOpenGL -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/local/qt6/mkspecs/devices/linux-rasp-pi4-aarch64 -isystem /home/tatiana/work/latestsysroots/pyside-setup/build/qfpa-py3.9-qt6.4.0-linux_aarch64-release/install/include/shiboken6 -isystem /home/tatiana/work/latestsysroots/rpi-raspberry/usr/include/python3.9 -march=armv8-a -I/home/tatiana/work/latestsysroots/rpi-raspberry/usr/include -Wall -fvisibility=hidden -Wno-strict-aliasing -Os -DNDEBUG -fPIC -fPIC -ffunction-sections -fdata-sections -fno-exceptions -pthread -std=gnu++17 -MD -MT PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o -MF PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o.d -o PySide6/QtOpenGL/CMakeFiles/QtOpenGL.dir/glue/utils.cpp.o -c /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL /glue/utils.cpp: In function ‘int glGetVReturnSize(GLenum)’: /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:15:10: error: ‘GL_POINT_SIZE_RANGE’ was not declared in this scope; did you mean ‘GL_ALIASED_POINT_SIZE_RANGE’? 15 | case GL_POINT_SIZE_RANGE: | ^~~~~~~~~~~~~~~~~~~ | GL_ALIASED_POINT_SIZE_RANGE /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:16:10: error: ‘GL_SMOOTH_LINE_WIDTH_RANGE’ was not declared in this scope; did you mean ‘GL_ALIASED_LINE_WIDTH_RANGE’? 16 | case GL_SMOOTH_LINE_WIDTH_RANGE: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | GL_ALIASED_LINE_WIDTH_RANGE /home/tatiana/work/latestsysroots/pyside-setup/sources/pyside6/PySide6/QtOpenGL/glue/utils.cpp:17:10: error: ‘GL_VIEWPORT_BOUNDS_RANGE’ was not declared in this scope; did you mean ‘GL_VIEWPORT_BOUNDS_RANGE_NV’? 17 | case GL_VIEWPORT_BOUNDS_RANGE: | ^~~~~~~~~~~~~~~~~~~~~~~~ | GL_VIEWPORT_BOUNDS_RANGE_NV ninja: build stopped: subcommand failed.
Error appears in several places where GL_VIEWPORT_BOUNDS_RANGE difinititions are used.
Local fix: ADD header with definition declaration:
#include "GL/gl.h"
Attachments
Issue Links
- duplicates
-
PYSIDE-1810 Write documentation on how to cross-build Qt For Python
- Closed
- relates to
-
PYSIDE-2013 PySide Missing OpenGL Functions
- Reported
For Gerrit Dashboard: PYSIDE-2060 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
433645,5 | Fix compiling with OpenGL ES | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
433732,2 | Documentation: Add option --no-qt-tools to cross building | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
433895,2 | build system: Fix standalone build with --no-qt-tools | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
434052,5 | build system: Disable checking ICU libs for cross builds | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
434131,2 | build system: Fix standalone build with --no-qt-tools | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
434946,2 | build system: Disable checking ICU libs for cross builds | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |