!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

536 Members
110 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
27 Sep 2025
@k900:0upti.meK900And technically most KDE things don't need webengine20:54:38
@k900:0upti.meK900 But we can't give them a custom PySide either because python flat names pace 20:54:38
@outfoxxed:outfoxxed.meoutfoxxed could we have a pysideWithModules or something 20:55:00
@outfoxxed:outfoxxed.meoutfoxxedassuming pyside itself doesnt take forever to compile for each one20:55:12
@k900:0upti.meK900No because it's defined at build time20:55:16
@k900:0upti.meK900 Anyway 20:55:19
@outfoxxed:outfoxxed.meoutfoxxedlater yeah20:55:24
@k900:0upti.meK900 I really need sleep 20:55:38
@k900:0upti.meK900 Sorry I'm cutting myself off 20:55:38
@outfoxxed:outfoxxed.meoutfoxxedIt seems like the host prefixes environment variable doesn't actually do what it says it does and unlinke QT_HOST_PATH doesn't add itself to the tool scanning list. I think the best solution here is just to add a patch to their cmake files when cross compiling, so we don't break anything new in a normal build, and cross doesn't work anyway so anything is an improvement23:21:49
@outfoxxed:outfoxxed.meoutfoxxed
				list(PREPEND CMAKE_PREFIX_PATH "${_qt_additional_host_packages_prefix_paths}")

was it really so hard

23:21:58
@outfoxxed:outfoxxed.meoutfoxxed *
list(PREPEND CMAKE_PREFIX_PATH "${_qt_additional_host_packages_prefix_paths}")

was it really so hard

23:22:04
@outfoxxed:outfoxxed.meoutfoxxedI personally prefer this to injecting _DIR variables into every package when cross compiling23:23:00
28 Sep 2025
@outfoxxed:outfoxxed.meoutfoxxedimage.png
Download image.png
00:16:20
@outfoxxed:outfoxxed.meoutfoxxedand we're green with all the _DIRs removed00:16:25
@rosssmyth:matrix.orgrosssmyth How are deps calculated w.r.t. splicing (i.e. what pkgset are they pulled from) when they are used strings? So for example if you write buildPhase = "echo '${lib.getExe foo}' >> buz.sh" or whatever, how is 02:25:33
@rosssmyth:matrix.orgrosssmyth * How are deps calculated w.r.t. splicing (i.e. what pkgset are they pulled from) when they are used strings? So for example if you write buildPhase = "echo '${lib.getExe foo}' >> buz.sh" or whatever, how is the package set calculated? Or is it? Or is it just always nataiveBuildInputs or something? 02:28:08
@outfoxxed:outfoxxed.meoutfoxxed

I haven't been able to figure out whats causing this one:

qttools> CMake Warning at /nix/store/v4fyxmxyz26vva1wj76975dsyifrv99m-qtbase-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2811 (add_library):
qttools>   Cannot generate a safe runtime search path for target QHelpEnginePlugin
qttools>   because files in some directories may conflict with libraries in implicit
qttools>   directories:
qttools>
qttools>     runtime library [libQt6Qml.so.6] in /nix/store/jyxg2klmh4ix6rgkpz8cfr21z1h6dpqn-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib may be hidden by files in:
qttools>       /nix/store/4ah1npaxxlvwgc5pfgdf5x2727na1c8x-qtdeclarative-6.9.2/lib
qttools>
qttools>   Some of these libraries may not be found correctly.
qttools> Call Stack (most recent call first):
qttools>   /nix/store/v4fyxmxyz26vva1wj76975dsyifrv99m-qtbase-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:2621 (_qt_internal_add_library)
qttools>   /nix/store/v4fyxmxyz26vva1wj76975dsyifrv99m-qtbase-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6/QtPluginHelpers.cmake:95 (qt6_add_plugin)
qttools>   src/assistant/plugins/help/CMakeLists.txt:4 (qt_internal_add_plugin)

qttools is picking up the host qtdeclarative from somewhere and failing to link to it.
Its not find_package because the debug logs for that are all right

CMake Debug Log at /nix/store/a94d5zmalqava26y3hqsnj5l11l5kl5y-cmake-3.31.7/share/cmake-3.31/Modules/CMakeFindDependencyMacro.cmake:76 (find_package):
  The internally managed CMAKE_FIND_PACKAGE_REDIRECTS_DIR.

    /home/admin/programming/outfoxxed/milkv/tmp/qttools-everywhere-src-6.9.2/build/CMakeFiles/pkgRedirects

  Paths specified by the find_package HINTS option.

    none

  Paths specified by the find_package PATHS option.

    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake
    /home/admin/programming/outfoxxed/milkv/tmp/qtbaseout/lib/cmake
    /nix/store/wkdwl1hzw4ydd8v9aj3l2xxw8hpxw2xq-libxml2-riscv64-unknown-linux-gnu-2.14.5-dev/lib/cmake
    /nix/store/4ymgv032xpvnzarmgv0n237aydn81jga-libxslt-riscv64-unknown-linux-gnu-1.1.43-dev/lib/cmake
    /nix/store/khxglpc0j3m3aml4fdz3y0z1wh8gk93z-vulkan-loader-riscv64-unknown-linux-gnu-1.4.321.0-dev/lib/cmake
    /nix/store/mn4gjpqli60i53lxzbykrcjn68lip9gp-harfbuzz-riscv64-unknown-linux-gnu-11.2.1-dev/lib/cmake
    /nix/store/fgyl255rhjdrnwjg1l44753k90za21a8-libjpeg-turbo-riscv64-unknown-linux-gnu-3.1.1-dev/lib/cmake
    /nix/store/jbzv29ydmivmcnv3lgd419app7c698ly-zstd-riscv64-unknown-linux-gnu-1.5.7-dev/lib/cmake
    /nix/store/jhcfij3b2f7v3ppshs5qv3350wawnwqr-md4c-riscv64-unknown-linux-gnu-0.5.2-dev/lib/cmake
    /nix/store/8bxas9svdd1ry82h8ksd43pgdvhak77v-double-conversion-riscv64-unknown-linux-gnu-3.3.1/lib/cmake
    /nix/store/0r52mlbzgvkcqx98llq3dn0dp7gxs9cx-dbus-riscv64-unknown-linux-gnu-1.14.10-dev/lib/cmake
    /nix/store/wi40mjk22jkwl3qnl6ll39cl6gghqw7f-expat-riscv64-unknown-linux-gnu-2.7.1-dev/lib/cmake
    /nix/store/kay9r1bs569lv9b6bzdipvr9z3971kjs-qtbase-riscv64-unknown-linux-gnu-6.9.2/lib/cmake
    /nix/store/8dv1lhrs4j84dczqyigzn8h8mij8ki20-qtlanguageserver-riscv64-unknown-linux-gnu-6.9.2/lib/cmake
    /nix/store/d922kjqhlda1qxrdsf6l2xxdc1a5f86h-qtshadertools-riscv64-unknown-linux-gnu-6.9.2/lib/cmake
    /nix/store/bk9cfbyqpq3fdlvwjlpnsw9iwald78db-qtsvg-riscv64-unknown-linux-gnu-6.9.2/lib/cmake

  find_package considered the following locations for Qt6Qml's Config module:

    /home/admin/programming/outfoxxed/milkv/tmp/qttools-everywhere-src-6.9.2/build/CMakeFiles/pkgRedirects/Qt6QmlConfig.cmake
    /home/admin/programming/outfoxxed/milkv/tmp/qttools-everywhere-src-6.9.2/build/CMakeFiles/pkgRedirects/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlModelsPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlModelsPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlXmlListModelPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlXmlListModelPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlAssetDownloader/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlAssetDownloader/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlToolingSettingsPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlToolingSettingsPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCompiler/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCompiler/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCorePrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCorePrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlTypeRegistrarPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlTypeRegistrarPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlIntegration/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlIntegration/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlNetworkPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlNetworkPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlNetwork/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlNetwork/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlWorkerScriptPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlWorkerScriptPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlFormatPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlFormatPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlModels/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlModels/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlLocalStorage/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlLocalStorage/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlMetaPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlMetaPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlMeta/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlMeta/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlXmlListModel/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlXmlListModel/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCompilerPrivate/Qt6QmlConfig.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6QmlCompilerPrivate/qt6qml-config.cmake
    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake

  The file was found at

    /nix/store/i1vkid27p6xdfdcqvkh948cnvqspzm5x-qtdeclarative-riscv64-unknown-linux-gnu-6.9.2/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake
03:06:39
@outfoxxed:outfoxxed.meoutfoxxedfixed the above, qt disables a bunch of outputs when it detects you're cross compiling, presumably for embedded targets, which makes other packages not build04:44:37
@outfoxxed:outfoxxed.meoutfoxxedPython packages that run c compilers seem to break weirdly even in pkgsBuildBuild, is there a way around that?07:10:10

Show newer messages


Back to Room ListRoom Version: 6