Package Details: mingw-w64-librsvg 2.59.2-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-librsvg.git (read-only, click to copy)
Package Base: mingw-w64-librsvg
Description: SVG rendering library (mingw-w64)
Upstream URL: https://wiki.gnome.org/action/show/Projects/LibRsvg
Keywords: librsvg mingw-w64
Licenses: LGPL-2.1-or-later
Submitter: Schala
Maintainer: pingplug
Last Packager: pingplug
Votes: 8
Popularity: 0.000027
First Submitted: 2015-10-10 20:11 (UTC)
Last Updated: 2024-11-17 07:18 (UTC)

Latest Comments

1 2 3 Next › Last »

msrd0 commented on 2024-06-06 13:46 (UTC)

@paletfort No, that is not possible. The supported architectures need to be known at compile time, and a standard library has to be built for them. Afaik, the Rust distributed by ArchLinux has only the default (host arch, glibc) and a static (host arch, musl libc) target enabled, with the later requiring a separate package installed that brings the standard library. If you, however, not use the Rust compiler distributed by ArchLinux, but install it via rustup instead, it is probably possible to compile for mingw.

patlefort commented on 2024-06-06 12:59 (UTC)

I don't know much about rust so I have some questions: Can't system's rust cross-compile to mingw?

It is possible to set the linker with RUSTFLAGS="-Clinker=<path>". Setting ar the same way does nothing and is deprecated from rustc -C help. Can that solve the problem of needing a custom config file?

I can compile this package just fine without using mingw-w64-rust config file in a clean container. Is that file even necessary?

pingplug commented on 2024-06-06 12:30 (UTC)

@patlefort BTW, mingw-w64-rust and mingw-w64-rust-bin installed /opt/rust/cargo/ in mode 777, any user can write there.

pingplug commented on 2024-06-06 12:26 (UTC)

@patlefort it's part of mingw-w64-rust or mingw-w64-rust-bin, one of makedepends. It contains a config file to tell cargo where to find mingw stuff. By default, the Cargo home is located in $HOME/.cargo/. Which means you need edit $HOME/.cargo/config manually to build this package.

patlefort commented on 2024-06-06 11:44 (UTC)

Why are you setting CARGO_HOME="/opt/rust/cargo" by default? Obviously a normal user can't write there, also why change the default?

patlefort commented on 2024-04-02 03:55 (UTC)

Fails to build with:

cp: cannot stat '/pkgbuild/out/mingw-w64-librsvg/src/librsvg/build-i686-w64-mingw32/target/i686-pc-windows-gnu/i686-pc-windows-gnu/release/liblibrsvg_c.a': No such file or directory

syyyr commented on 2023-07-31 11:58 (UTC) (edited on 2023-07-31 12:33 (UTC) by syyyr)

It seems that this error:

cargo: error while loading shared libraries: libgit2.so.1.6: cannot open shared object file: No such file or directory

is caused by libgit2 being bumped to 1.7 in the official arch repositories. Rebuilding mingw-w64-rust against the new libgit2 seems to fix the issue.

patlefort commented on 2023-07-30 17:38 (UTC)

Does not compile for me with the following error:

cargo: error while loading shared libraries: libgit2.so.1.6: cannot open shared object file: No such file or directory

Martchus commented on 2023-06-15 23:59 (UTC)

I'm also getting linker errors. Could you apply the change @rodrigorc mentioned?