Coder Social home page Coder Social logo

recidia-audio-visualizer's People

Contributors

ghostnan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

recidia-audio-visualizer's Issues

C++ Error

Terminal Output is as follows:

[relax@relax-laptop ~]$ yay -S recidia-audio-visualizer
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  recidia-audio-visualizer-0.3-1

  1 recidia-audio-visualizer         (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): recidia-audio-visualizer
  1 recidia-audio-visualizer         (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: recidia-audio-visualizer
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:44 PM)
==> Retrieving sources...
  -> Found recidia-audio-visualizer-0.3.tar.gz
==> Validating source files with sha256sums...
    recidia-audio-visualizer-0.3.tar.gz ... Passed
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:47 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found recidia-audio-visualizer-0.3.tar.gz
==> Validating source files with sha256sums...
    recidia-audio-visualizer-0.3.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting recidia-audio-visualizer-0.3.tar.gz with bsdtar
==> Sources are ready.
==> Making package: recidia-audio-visualizer 0.3-1 (Mon 07 Mar 2022 06:40:52 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
The Meson build system
Version: 0.61.2
Source dir: /home/relax/.cache/yay/recidia-audio-visualizer/src/recidia-audio-visualizer-0.3
Build dir: /home/relax/.cache/yay/recidia-audio-visualizer/src/recidia-audio-visualizer-0.3/build
Build type: native build
Project name: recidia
Project version: undefined
C compiler for the host machine: cc (gcc 11.2.0 "cc (GCC) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.2.0 "c++ (GCC) 11.2.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency gsl found: YES 2.7.1
Run-time dependency fftw3 found: YES 3.3.10
Run-time dependency threads found: YES
Run-time dependency ncursesw found: YES 6.3.20211021
Run-time dependency libconfig++ found: YES 1.7.3
Run-time dependency shaderc found: YES 2022.1.1
Run-time dependency libpulse found: YES 15.0
Run-time dependency libpulse-simple found: YES 15.0
Run-time dependency portaudio-2.0 found: YES 19
Run-time dependency qt5 (modules: Core, Gui, Widgets) found: YES 5.15.3 (pkg-config)
Build targets in project: 1

recidia undefined

  User defined options
    prefix: /usr

Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `build'                                                                   
[1/10] Compiling C object recidia.p/src_audio.c.o
../src/audio.c: In function ‘get_port_devices_info’:
../src/audio.c:186:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  186 |     freopen("/dev/tty", "w", stderr);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/audio.c: In function ‘port_collect_audio_data’:
../src/audio.c:246:5: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  246 |     freopen("/dev/tty", "w", stderr);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/10] Compiling C++ object recidia.p/src_curses.cpp.o
FAILED: recidia.p/src_curses.cpp.o 
c++ -Irecidia.p -I. -I.. -I../inc -I/usr/include/qt/QtCore -I/usr/include/qt -I/usr/include/qt/QtGui -I/usr/include/qt/QtWidgets -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -g -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -fPIC -pthread -D_REENTRANT -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -MD -MQ recidia.p/src_curses.cpp.o -MF recidia.p/src_curses.cpp.o.d -o recidia.p/src_curses.cpp.o -c ../src/curses.cpp
../src/curses.cpp: In function ‘void init_curses()’:
../src/curses.cpp:156:21: error: format not a string literal and no format arguments [-Werror=format-security]
  156 |             mvprintw(y, 0, printBarLine.c_str());
      |             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: some warnings being treated as errors
[6/10] Compiling C++ object recidia.p/src_main.cpp.o
../src/main.cpp: In function ‘void get_audio_device(recidia_audio_data*, int)’:
../src/main.cpp:104:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  104 |         fgets(devBuffer, 4, stdin);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~
[9/10] Compiling C++ object recidia.p/src_widgets_settings.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: recidia-audio-visualizer
[relax@relax-laptop ~]$ 

'Failed to find shaders folder!'

Hey! Thank you so much for this project, has been really useful to me. The ncurses version works great, but the Qt GUI crashes on the same place every time:

widgets/settings.cpp, line 458:

        catch (filesystem::filesystem_error const& ex) {
            if (i == 3) {
                throw std::runtime_error("Failed to find shaders folder!");
                return;
            }
        }

I have tried running the executable from the build directory (so that ../shaders/ would be valid), placed the shaders folder in ~/.config/recidia/shaders, as well as running the executable from the base directory. It never manages to find the folder, for some bizarre reason. The folder has all the right permissions. I suspect there might be a microscopic problem in the logic that only fails under certain circumstances, so I will do some debugging and see what I find. If you have any ideas, please let me know!

Thanks again!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.