From 7c80ef15df907fce94856f811844428ed5bec256 Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Mon, 28 Sep 2026 17:02:12 +0200 Subject: [PATCH 1/3] Remove "cdt" package --- conda/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index 545a1ed..dd8aa28 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -25,7 +25,7 @@ requirements: - {{ compiler('cxx')}} - make # [unix] - pkg-config # [linux] - - {{ cdt('mesa-libgl-devel') }} # [linux] # match libqglviewer CDT GL strategy + - mesa-libgl-devel-conda-aarch64 # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - python # [build_platform != target_platform] - sip # [build_platform != target_platform] @@ -39,7 +39,7 @@ requirements: - sip - pyqt5-sip - pyqt-builder - - {{ cdt('mesa-libgl-devel') }} # [linux] + - mesa-libgl-devel-conda-aarch64 # [linux] - libxcb # [linux] - pthread-stubs # [linux] - xorg-libxfixes # [linux] From f07c4eaa78c855a76d87034ce479a95c6b28938d Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Thu, 1 Oct 2026 10:16:16 +0200 Subject: [PATCH 2/3] Update libgl-devel in meta.yaml --- conda/meta.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/conda/meta.yaml b/conda/meta.yaml index dd8aa28..9d5ead7 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -22,10 +22,11 @@ build: requirements: build: - - {{ compiler('cxx')}} + - {{ compiler('cxx') }} + - {{ stdlib('c') }} - make # [unix] - pkg-config # [linux] - - mesa-libgl-devel-conda-aarch64 # [linux] # match libqglviewer CDT GL strategy + - libgl-devel # [linux] # match libqglviewer CDT GL strategy # from https://conda-forge.org/docs/maintainer/knowledge_base.html#libgl - python # [build_platform != target_platform] - sip # [build_platform != target_platform] @@ -39,7 +40,7 @@ requirements: - sip - pyqt5-sip - pyqt-builder - - mesa-libgl-devel-conda-aarch64 # [linux] + - libgl-devel # [linux] - libxcb # [linux] - pthread-stubs # [linux] - xorg-libxfixes # [linux] From 300c2cd725539b092459f31f91766a80ced947c6 Mon Sep 17 00:00:00 2001 From: thomasarsouze Date: Mon, 5 Oct 2026 15:40:14 +0200 Subject: [PATCH 3/3] Debuging build --- conda/build.sh | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/conda/build.sh b/conda/build.sh index 604d590..3f73cd7 100644 --- a/conda/build.sh +++ b/conda/build.sh @@ -2,22 +2,40 @@ # Inspired from https://github.com/conda-forge/pyqt-feedstock/tree/main/recipe -if [ "$(uname)" == "Linux" ]; -then - USED_BUILD_PREFIX=${BUILD_PREFIX:-${PREFIX}} +if [ "$(uname)" == "Linux" ]; then + # USED_BUILD_PREFIX=${BUILD_PREFIX:-${PREFIX}} - ln -s ${GXX} g++ || true - ln -s ${GCC} gcc || true - ln -s ${USED_BUILD_PREFIX}/bin/${HOST}-gcc-ar gcc-ar || true + # ln -s ${GXX} g++ || true + # ln -s ${GCC} gcc || true + # ln -s ${USED_BUILD_PREFIX}/bin/${HOST}-gcc-ar gcc-ar || true export LD=${GXX} export CC=${GCC} export CXX=${GXX} + export QMAKE_CXX="${CXX}" + export QMAKE_CC="${CC}" export PKG_CONFIG_EXECUTABLE=$(basename $(which pkg-config)) - export PATH=${PWD}:${PATH} +# export PATH=${PWD}:${PATH} fi +echo "CC=${CC}" +echo "CXX=${CXX}" +echo "GCC=${GCC}" +echo "GXX=${GXX}" + +which gcc +which g++ + +readlink -f "$(which gcc)" || true +readlink -f "$(which g++)" || true +readlink -f "$GCC" || true +readlink -f "$GXX" || true + +"${CC}" --version +"${CXX}" --version + +"$GXX" -v -E -x c++ /dev/null echo "**** BUILD" sip-install --verbose @@ -27,14 +45,12 @@ echo "****** CHECK PYTHON LIB" # To check if Python lib is not in the dependencies with conda-forge distribution. # See https://github.com/conda-forge/boost-feedstock/issues/81 -if [ `uname` = "Darwin" ]; then - otool -L `${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)"` +if [ $(uname) = "Darwin" ]; then + otool -L $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") fi - -if [ "$(uname)" == "Linux" ]; -then - ldd `${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)"` +if [ "$(uname)" == "Linux" ]; then + ldd $(${PYTHON} -c "import PyQGLViewer as pyqgl ; print(pyqgl.__file__)") fi echo "****** END OF BUILD PROCESS"