!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

397 Members
92 Servers

Load older messages


SenderMessageTime
14 Sep 2024
@artturin:matrix.orgArtturin

https://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/cmake/FindFFmpeg.cmake#L252

Function parses package config file to find the static library dependencies

and adds them to the target library.

???

16:12:50
@artturin:matrix.orgArtturin *

https://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/cmake/FindFFmpeg.cmake#L252

Function parses package config file to find the static library dependencies
and adds them to the target library.

???

16:12:58
@artturin:matrix.orgArtturin just use --static ?? 16:13:31
@kamillaova:matrix.orgKamilla 'ova
In reply to@artturin:matrix.org

https://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/cmake/FindFFmpeg.cmake#L252

Function parses package config file to find the static library dependencies
and adds them to the target library.

???

lmao what
16:15:00
@artturin:matrix.orgArtturin

https://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/cmake/FindFFmpeg.cmake#L256

set(PC_FILE ${${_component}_LIBRARY_DIR}/pkgconfig/lib${lib}.pc)
to
set(PC_FILE ${lib.getDev ffmpeg}/lib/pkgconfig/lib${lib}.pc)
with substituteInPlace

16:17:03
@artturin:matrix.orgArtturin Kamilla 'ova: 16:17:11
@kamillaova:matrix.orgKamilla 'ova
qtmultimedia> CMake Warning at src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake:38 (message):
qtmultimedia>   QT_FEATURE_vaapi is ON but FFmpeg includes VAAPI and dynamic symbols
qtmultimedia>   resolve is enabled.
qtmultimedia> Call Stack (most recent call first):
qtmultimedia>   src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake:182 (qt_internal_multimedia_check_ffmpeg_stubs_configuration)
qtmultimedia>   src/plugins/multimedia/ffmpeg/CMakeLists.txt:95 (qt_internal_multimedia_add_ffmpeg_stubs)

ok, vaapi is enabled and ffmpeg includes vaapi
what's not okay lol??
16:23:07
@kamillaova:matrix.orgKamilla 'ova
In reply to@artturin:matrix.org

https://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/cmake/FindFFmpeg.cmake#L256

set(PC_FILE ${${_component}_LIBRARY_DIR}/pkgconfig/lib${lib}.pc)
to
set(PC_FILE ${lib.getDev ffmpeg}/lib/pkgconfig/lib${lib}.pc)
with substituteInPlace

thx
16:23:10
@artturin:matrix.orgArtturin
In reply to @kamillaova:matrix.org
qtmultimedia> CMake Warning at src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake:38 (message):
qtmultimedia>   QT_FEATURE_vaapi is ON but FFmpeg includes VAAPI and dynamic symbols
qtmultimedia>   resolve is enabled.
qtmultimedia> Call Stack (most recent call first):
qtmultimedia>   src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake:182 (qt_internal_multimedia_check_ffmpeg_stubs_configuration)
qtmultimedia>   src/plugins/multimedia/ffmpeg/CMakeLists.txt:95 (qt_internal_multimedia_add_ffmpeg_stubs)

ok, vaapi is enabled and ffmpeg includes vaapi
what's not okay lol??
I swear QT and cmake error warning things are the worst
16:23:55
@artturin:matrix.orgArtturinhttps://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake#L3416:25:38
@artturin:matrix.orgArtturinMaybe the warning is wrong16:26:04
@artturin:matrix.orgArtturin because it's NOT ffmpeg_has_vaapi 16:26:07
@kamillaova:matrix.orgKamilla 'ovaI see16:26:22
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/blob/a601e334f4d32fcaf165879dc63602b4770c74a7/pkgs/development/libraries/ffmpeg/generic.nix#L11916:26:42
@artturin:matrix.orgArtturinhttps://github.com/qt/qtmultimedia/blob/200a637a8e1a5db4096aee8d5083fec6cb5df3ba/src/plugins/multimedia/ffmpeg/cmake/QtAddFFmpegStubs.cmake#L716:28:20
@artturin:matrix.orgArtturinhttps://github.com/search?q=repo%3Aqt%2Fqtmultimedia%20FFMPEG_STUBS&type=code16:28:23
@kamillaova:matrix.orgKamilla 'ova
In reply to@artturin:matrix.org
https://github.com/NixOS/nixpkgs/blob/a601e334f4d32fcaf165879dc63602b4770c74a7/pkgs/development/libraries/ffmpeg/generic.nix#L119
++ optionals withVaapi [ (if withSmallDeps then libva else libva-minimal) ]

lol, isn't it supposed to be like this?
++ optionals withVaapi [ (if withSmallDeps then libva-minimal else libva) ]
16:30:11
@tomasajt:matrix.orgToma joined the room.16:56:32
@artturin:matrix.orgArtturin
In reply to @reckenrode:matrix.org
It’s invoking libtool to link, which has LTCC set to clang.
Found https://github.com/NixOS/nixpkgs/pull/192878
17:02:23
@artturin:matrix.orgArtturinThere's a temp fix you can use in https://github.com/NixOS/nixpkgs/pull/196587/files17:02:53
@artturin:matrix.orgArtturin(Use libtool from pkgsHostTarget aka the default set)17:03:43
@artturin:matrix.orgArtturinTesting... https://github.com/NixOS/nixpkgs/pull/34188217:36:43
@reckenrode:matrix.orgRandy Eckenrode
In reply to @artturin:matrix.org
Can you post the libxo expr
https://github.com/reckenrode/nixpkgs/blob/darwin-sdk-refactor/pkgs/by-name/li/libxo/package.nix
19:03:35
@reckenrode:matrix.orgRandy Eckenrode Just caught up. I’ll try using the one from pkgsHostTarget. 19:05:58
@artturin:matrix.orgArtturinCross-compiles on linux without any other changes 😬19:07:25
@reckenrode:matrix.orgRandy EckenrodeIt build on Darwin with that workaround.19:09:57
@reckenrode:matrix.orgRandy Eckenrode
In reply to @artturin:matrix.org
Testing... https://github.com/NixOS/nixpkgs/pull/341882
Won’t that cause issues with Darwin cross-compilation?
19:11:08
@reckenrode:matrix.orgRandy EckenrodeOr I guess not make things better.19:11:29
@artturin:matrix.orgArtturinShould now make things better19:16:13
@artturin:matrix.orgArtturinChanged the darwin conditional19:16:25

Show newer messages


Back to Room ListRoom Version: 6