Skip to content
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

freedesktop warning during cmake (GR3.10) #7322

Open
Ech0xing opened this issue May 6, 2024 · 5 comments
Open

freedesktop warning during cmake (GR3.10) #7322

Ech0xing opened this issue May 6, 2024 · 5 comments

Comments

@Ech0xing
Copy link

Ech0xing commented May 6, 2024

What happened?

A bug happened!
CMake Warning (dev) at grc/scripts/freedesktop/CMakeLists.txt:13 (configure_file)

After compiling from source, the icon does not show up (not a PATH problem) and unable to type in gnuradio-companion from the CLI.

System Information

OS: Ubuntu 20.04.6
GR Installation Method: Source

GNU Radio Version

3.10 (maint-3.10)

Specific Version

3.10.10

Steps to Reproduce the Problem

Not sure why this is happening, I have installed all of the dependencies. I looked at line 13 from the CMakeList.txt file and cant make heads or tails of it. I have reloaded the laptop twice and still get the same error. This issue causes where I cant find the icon to click on GNURadio Companion under the App menu, nor can i type in gnuradio-companion from the CLI to open.

xdg-utils is installed

git clone https://github.com/gnuradio/gnuradio.git
cd gnuradio
git checkout maint-3.10
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ../

This is where part where the Dev error comes up:

-- Configuring JSON/YAML config blocks support...
--   Dependency ENABLE_GRC = ON
--   Dependency JSONSCHEMA_FOUND = TRUE
--   Enabling JSON/YAML config blocks support.
--   Override with -DENABLE_JSONYAML_BLOCKS=ON/OFF
CMake Warning (dev) at grc/scripts/freedesktop/CMakeLists.txt:13 (configure_file):
  configure_file called with unknown argument(s):

   FILE_PERMISSIONS
   OWNER_READ
   OWNER_WRITE
   OWNER_EXECUTE
   GROUP_READ
   GROUP_EXECUTE
   WORLD_READ
   WORLD_EXECUTE

Attached is a screenshot of the CMakeList.txt file that is in question. The highlighted portion is the line in question.
GNURadio-ConfigError

Relevant log output

-- Configuring JSON/YAML config blocks support...
--   Dependency ENABLE_GRC = ON
--   Dependency JSONSCHEMA_FOUND = TRUE
--   Enabling JSON/YAML config blocks support.
--   Override with -DENABLE_JSONYAML_BLOCKS=ON/OFF
CMake Warning (dev) at grc/scripts/freedesktop/CMakeLists.txt:13 (configure_file):
  configure_file called with unknown argument(s):

   FILE_PERMISSIONS
   OWNER_READ
   OWNER_WRITE
   OWNER_EXECUTE
   GROUP_READ
   GROUP_EXECUTE
   WORLD_READ
   WORLD_EXECUTE
@marcusmueller
Copy link
Member

Ah, yes, the ``FILE_PERMISSIONS` flag was added in CMake 3.20, and we only require 3.8. This is a bug.

@marcusmueller
Copy link
Member

exists in grc/scripts/freedesktop/CMakeLists.txt and gnuradio-runtime/python/gnuradio/ctrlport/CMakeLists.txt

@Ech0xing
Copy link
Author

Ech0xing commented May 7, 2024

Anything I can do in the meantime to be able to compile GR?

@Ech0xing
Copy link
Author

Ech0xing commented May 7, 2024

I figured it out. I fixed the issue in the CMakeList.txt file that fixes the PERMISSIONS command. I will submit a PR see if it make sense.

@marcusmueller
Copy link
Member

Anything I can do in the meantime to be able to compile GR?

That's just a warning; it should not have stopped you from compiling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants