-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] adding flag to CMAKE doesn't seem to have effect #501
Comments
Can you try Can I ask what made you expect |
Thank you for your reply! I tried it before and gave a warning (see the end of the cmake command output):
I'm a cmake newbie, so I'm just trying. This documentation, https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html let me believe that |
Ok. I'm no https://github.com/charlie-foxtrot/RTLSDR-Airband/wiki/Running#running-in-foreground |
I've fixed it with a patch in my Nix config for this package. See the { stdenv, lib, fetchFromGitHub, pkgs }:
stdenv.mkDerivation rec {
pname = "RTLSDR-Airband";
version = "5.0.9";
src = fetchFromGitHub {
owner = "charlie-foxtrot";
repo = "${pname}";
rev = "v${version}";
hash = "sha256-Rgsxim7FESVt1ZnVJFvVfMqJMgzVCfP1yBDBBO4zEsE=";
};
postPatch = ''
echo '#!${pkgs.bash}/bin/bash' > scripts/find_version
echo 'echo ${version}' >> scripts/find_version
substituteInPlace src/rtl_airband.h --replace "/usr/local/etc" "$out/etc"
'';
buildInputs = with pkgs; [
lame
libshout
libconfig
fftwFloat
rtl-sdr-librtlsdr
soapysdr-with-plugins
];
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
cmakeFlags = [
"-DNFM=ON"
"-DRTLSDR=ON"
"-DSOAPYSDR=ON"
"-DMIRISDR=OFF"
"-DPULSEAUDIO=OFF"
];
meta = with lib; {
description =
"RTLSDR-Airband receives analog radio voice channels and produces audio streams which can be routed to various outputs";
homepage = "https://github.com/charlie-foxtrot/RTLSDR-Airband";
license = licenses.gpl3Only;
platforms = platforms.linux;
};
} |
Describe your environment
make
options used to build the program:cmake ../ -DNFM=ON -DRTLSDR=ON -DSOAPYSDR=ON -DMIRISDR=OFF -DPULSEAUDIO=OFF -DCMAKE_INSTALL_SYSCONFDIR=/etc && make
What happened?
What you expected to happen?
After adding the
-DCMAKE_INSTALL_SYSCONFDIR=/etc
flag,rtl_airband
is using/etc/rtl_airband.conf
for it's configurationSteps to Reproduce
See the commands above
Additional context
Your rtl_airband.conf file
Not modified and not relevant for this issue
The text was updated successfully, but these errors were encountered: