Open JuxGD opened 2 hours ago
I’m afraid I have no knowledge of this package whatsoever. Maybe look at the history before it was moved, although that seems to show the classic story of a package being added, abandoned, and then kept going indefinitely by treewide contributors who have probably never used it.
Does it come with a .pc
file that specifies the appropriate include directory flags to use?
Oh yeah sorry I forgot how this worked. Thanks for taking the time tho!
I did find
a .pc
file: /nix/store/x21b1fmbwqpi94rb2l2p7lvqdh0smxzc-lilv-0.24.24-dev/lib/pkgconfig/lilv-0.pc
:
prefix=/nix/store/d071awgh0fhr0rz45kl7ngj2hcr1fh2f-lilv-0.24.24
includedir=/nix/store/x21b1fmbwqpi94rb2l2p7lvqdh0smxzc-lilv-0.24.24-dev/include
libdir=${prefix}/lib
Name: Lilv
Description: Library for hosting LV2 plugins
Version: 0.24.24
Requires: lv2 >= 1.18.2
Requires.private: serd-0 >= 0.30.10, sord-0 >= 0.16.15, sratom-0 >= 0.6.10, zix-0 >= 0.4.0
Libs: -L${libdir} -llilv-0
Libs.private: -ldl -lm
Cflags: -I${includedir}/lilv-0
Unlike the pkgconfig
directory for other packages, this one's not getting symlinked to /run/current-system/sw/lib/pkgconfig
for some reason (I think I'm getting this correctly). But it looks like doing an export PKG_CONFIG_PATH=<the directory>
doesn't really do anything either (but i'm new to this so idrk)
Usually you really don’t want to install libraries in your global environment, so I wouldn’t rely on that linking in the first place. Glad to hear you got it working though!
Usually you really don't want to install libraries in your global environment
Right, I forgot that too
I didn't get it working tho, I tried adding pkg-config
to both buildInputs
and nativeBuildInputs
and it didn't work :(
You’ll want nativeBuildInputs = [ pkg-config ];
, buildInputs = [ lilv ];
, and to ensure that your build system/IDE is using pkg-config
to get the relevant compiler flags.
Describe the bug
The
lilv
package seems not to be working for development properly.lilvmm.hpp
isn't includinglilv.h
. VS Code says 'cannot open source file "lilv/lilv.h"'This happens under a
shell.nix
andflake.nix
(withnix develop
), andlilv
,gcc
underbuildInputs
inpkgs.mkShell
. If I change it to#include <lilv-0/lilv/lilv.h>
instead, then VS Code tells me the problem's fixed, but I can't save it since it's read-only.Steps To Reproduce
Steps to reproduce the behavior:
lilv
(andgcc
) to a shell environmentlilvmm.hpp
:#include <lilv-0/lilv/lilvmm.hpp>
g++
Expected behavior
It includes it :p
Screenshots
The error in VS Code
Additional context
flake.nix
:Metadata
Notify maintainers
@emilazy
Note for maintainers: Please tag this issue in your PR.
Add a :+1: reaction to issues you find important.