jontio / JMPX

FM Stereo encoder with RDS support
https://jontio.zapto.org/hda1/paradise/jmpxencoder/jmpx.html
58 stars 8 forks source link

libEGL warning #10

Open Odinnbh opened 4 years ago

Odinnbh commented 4 years ago

It might be a newbie problem. When I run qjackctl it shows this error: libEGL warning: DRI2: failed to authenticate I'm guessing that is the main problem I'm dealing with because when I try to start JACK it comes up with an error. Could not connect to JACK server as client. -Overall operation failed. -Unable to connect to server. Please check the messages window for more info.

I managed to make it start by doing jack_control start but it seems to be runnin on 48.000Hz not 192.000Hz. But I can't start JMPX. On the Wiki it says, on another console type JMPX but that doesn't do anything. It says: bash: JMPX: command not found.

What am I doing wrong?

jontio commented 4 years ago

It's been awhile since I've dealt with JACK. I do remember it could be tricky to start but can't remember much about it now. I think your output in qjackctl is...

14:21:10.232 Logging started --- Thu Jan 2 14:21:10 2020 ---
14:21:14.598 JACK is starting...
14:21:14.602 /usr/bin/jackd -P89 -t5000 -dalsa -dhw:sndrpihifiberry -r192000 -p8192 -n15
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
14:21:14.720 JACK was started with PID=1295.
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 89
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:sndrpihifiberry|hw:sndrpihifiberry|8192|15|192000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
configuring for 192000Hz, period = 8192 frames (42.7 ms), buffer = 15 periods
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: got smaller periods 8 than 15 for playback
ALSA: cannot configure playback channel
Released audio card Audio1
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server
14:21:15.102 JACK was stopped
14:21:16.790 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
14:21:20.663 Logging stopped --- Thu Jan 2 14:21:20 2020 ---

I'm not too sure why that failed. Maybe it's because you are using 32 bit samples and the soundcard only supports 16 bit? I believe you are using a pi with a hifiberry; are you able to use that soundcard with pulseaudio?

The second problem with bash: JMPX: command not found. can be solved by either install JMPX into your system or by being in the folder where JMPX was build and typeing ./JMPX

Odinnbh commented 4 years ago

Hello. Thank you for your reply. I tried typing JMPX in several places but it either says command not found or, JMPX is a directory. I'm guessing it didn't build correctly. HiFiBerry is a 32 bit soundcard if I've read the specs right. I have to dig into if it works with pulseaudio.

Thanks again for replying to me.

Regards, Óðinn Burkni Helgason GSM: (+354) 864 1330

On Thu, 2 Jan 2020 at 21:08, Jonti Olds notifications@github.com wrote:

It's been awhile since I've dealt with JACK. I do remember it could be tricky to start but can't remember much about it now. I think your output in qjackctl is...

14:21:10.232 Logging started --- Thu Jan 2 14:21:10 2020 --- 14:21:14.598 JACK is starting... 14:21:14.602 /usr/bin/jackd -P89 -t5000 -dalsa -dhw:sndrpihifiberry -r192000 -p8192 -n15 Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock 14:21:14.720 JACK was started with PID=1295. jackdmp 1.9.12 Copyright 2001-2005 Paul Davis and others. Copyright 2004-2016 Grame. Copyright 2016-2017 Filipe Coelho. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software, and you are welcome to redistribute it under certain conditions; see the file COPYING for details JACK server starting in realtime mode with priority 89 self-connect-mode is "Don't restrict self connect requests" audio_reservation_init Acquire audio card Audio1 creating alsa driver ... hw:sndrpihifiberry|hw:sndrpihifiberry|8192|15|192000|0|0|nomon|swmeter|-|32bit ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode configuring for 192000Hz, period = 8192 frames (42.7 ms), buffer = 15 periods ALSA: final selected sample format for playback: 32bit integer little-endian ALSA: got smaller periods 8 than 15 for playback ALSA: cannot configure playback channel Released audio card Audio1 audio_reservation_finish Cannot initialize driver JackServer::Open failed with -1 Failed to open server 14:21:15.102 JACK was stopped 14:21:16.790 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info. Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock 14:21:20.663 Logging stopped --- Thu Jan 2 14:21:20 2020 ---

I'm not too sure why that failed. Maybe it's because you are using 32 bit samples and the soundcard only supports 16 bit? I believe you are using a pi with a hifiberry; are you able to use that soundcard with pulseaudio?

The second problem with bash: JMPX: command not found. can be solved by either install JMPX into your system or by being in the folder where JMPX was build and typeing ./JMPX

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jontio/JMPX/issues/10?email_source=notifications&email_token=AOFJG5GHWHKMTER3Z36NP63Q3ZJU5A5CNFSM4KB3UCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7NS3Y#issuecomment-570349935, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFJG5EZL2F3GEKCLYKH2XLQ3ZJU5ANCNFSM4KB3UCFA .

jontio commented 4 years ago

It should be ./JPMX (with the "./") when you are in the directory. Try find / -mount -type f -iname jmpx 2>&1 | grep -v "Permission denied" to find where you have built JMPX.

Odinnbh commented 4 years ago

Thank you again for trying to help me solve this. When I do find / -mount -type f -iname jmpx 2>&1 | grep -v "Permission denied" it comes up with nothing. If I do find / -mount -type f -iname jmpx 2>&1 it comes up with: find: ‘/lost+found’: Permission denied find: ‘/tmp/systemd-private-eb2126a77a554f38a7f1ed1e8f8f38cb-systemd-timesyncd.service-4lWYAP’: Permission denied find: ‘/etc/ssl/private’: Permission denied find: ‘/etc/polkit-1/localauthority’: Permission denied find: ‘/root’: Permission denied find: ‘/var/spool/rsyslog’: Permission denied find: ‘/var/spool/cron/crontabs’: Permission denied find: ‘/var/log/lightdm’: Permission denied find: ‘/var/log/private’: Permission denied find: ‘/var/lib/apt/lists/partial’: Permission denied find: ‘/var/lib/udisks2’: Permission denied find: ‘/var/lib/bluetooth’: Permission denied find: ‘/var/lib/lightdm’: Permission denied find: ‘/var/lib/private’: Permission denied find: ‘/var/lib/polkit-1’: Permission denied find: ‘/var/tmp/systemd-private-eb2126a77a554f38a7f1ed1e8f8f38cb-systemd-timesyncd.service-s1rFZu’: Permission denied find: ‘/var/cache/apt/archives/partial’: Permission denied find: ‘/var/cache/ldconfig’: Permission denied find: ‘/var/cache/lightdm’: Permission denied find: ‘/var/cache/private’: Permission denied

Regards, Óðinn Burkni Helgason GSM: (+354) 864 1330

On Sat, 4 Jan 2020 at 20:23, Jonti Olds notifications@github.com wrote:

It should be ./JPMX (with the "./") when you are in the directory. Try find / -mount -type f -iname jmpx 2>&1 | grep -v "Permission denied" to find where you have built JMPX.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jontio/JMPX/issues/10?email_source=notifications&email_token=AOFJG5AIP7NIWOVOK2W6GY3Q4DV2ZA5CNFSM4KB3UCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIC7SAY#issuecomment-570816771, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFJG5GN4NA2JE33OE67LM3Q4DV2ZANCNFSM4KB3UCFA .

jontio commented 4 years ago

The 2>&1 | grep -v "Permission denied" is just to hide the Permission denied messages. It looks like you haven't compiled JMPX. Compiling means downloading the repo cd into JMPX (the folder that has this file in it https://github.com/jontio/JMPX/blob/master/JMPX.pro ) and typing qmake && make

Odinnbh commented 4 years ago

I did the gmake && make. But there were some errors.

Regards, Óðinn Burkni Helgason GSM: (+354) 864 1330

On Sat, 4 Jan 2020 at 20:39, Jonti Olds notifications@github.com wrote:

The 2>&1 | grep -v "Permission denied" is just to hide the Permission denied messages. It looks like you haven't compiled JMPX. Compiling means downloading the repo cd into JMPX (the folder that has this file in it https://github.com/jontio/JMPX/blob/master/JMPX.pro ) and typing qmake && make

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jontio/JMPX/issues/10?email_source=notifications&email_token=AOFJG5FWNG3JZ63WZEBGXU3Q4DXXVA5CNFSM4KB3UCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIC736Y#issuecomment-570818043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFJG5CYUVOFUT2AUAAUIX3Q4DXXVANCNFSM4KB3UCFA .

jontio commented 4 years ago

can you port the errors? you will be missing dependencies things like suso apt-get install qt5-default qmake and things like that will install these things.

Odinnbh commented 4 years ago

This is what comes when I run make g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -isystem /usr/include/arm-linux-gnueabihf/qtystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtDBus -isyster/include/arm-linux-gnueabihf/qt5/QtCore -I. -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o options.o options.cpp options.cpp: In member function ‘void Options::populatesettings(JMPXInterface, FileLoader)’: options.cpp:391:42: error: invalid use of incomplete type ‘class QAbstractItemView’ if(ui->comboBox_soundcard_sca->view()->minimumWidth() < max_width) ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:395:56: error: invalid use of incomplete type ‘class QAbstractItemView’ max_width += ui->comboBox_soundcard_sca->view()->autoScrollMargin(); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:397:43: error: invalid use of incomplete type ‘class QAbstractItemView’ ui->comboBox_soundcard_sca->view()->setMinimumWidth(max_width); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:409:41: error: invalid use of incomplete type ‘class QAbstractItemView’ if(ui->comboBox_soundcard_in->view()->minimumWidth() < max_width) ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:413:55: error: invalid use of incomplete type ‘class QAbstractItemView’ max_width += ui->comboBox_soundcard_in->view()->autoScrollMargin(); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:415:42: error: invalid use of incomplete type ‘class QAbstractItemView’ ui->comboBox_soundcard_in->view()->setMinimumWidth(max_width); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:427:42: error: invalid use of incomplete type ‘class QAbstractItemView’ if(ui->comboBox_soundcard_out->view()->minimumWidth() < max_width) ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:431:56: error: invalid use of incomplete type ‘class QAbstractItemView’ max_width += ui->comboBox_soundcard_out->view()->autoScrollMargin(); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ options.cpp:433:43: error: invalid use of incomplete type ‘class QAbstractItemView’ ui->comboBox_soundcard_out->view()->setMinimumWidth(max_width); ^~ In file included from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qcombobox.h:45, from /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/QComboBox:1, from ui_options.h:15, from options.cpp:2: /usr/include/arm-linux-gnueabihf/qt5/QtWidgets/qabstractitemdelegate.h:54:7: note: forward declaration of ‘class QAbstractItemView’ class QAbstractItemView; ^~~~~ make: *** [Makefile:511: options.o] Error 1

Regards, Óðinn Burkni Helgason GSM: (+354) 864 1330

On Sat, 4 Jan 2020 at 21:02, Jonti Olds notifications@github.com wrote:

can you port the errors? you will be missing dependencies things like suso apt-get install qt5-default qmake and things like that will install these things.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jontio/JMPX/issues/10?email_source=notifications&email_token=AOFJG5BFWHCWX5FEWEEWHYTQ4D2NPA5CNFSM4KB3UCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIDAJJQ#issuecomment-570819750, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFJG5GBLWX3SZXJ764YJTDQ4D2NPANCNFSM4KB3UCFA .

jontio commented 4 years ago

hmm that's talking about QAbstractItemView not being mentioned in options.h. looks like qt has changed things a little. I added that include to options.h and pushed it to the repo. Try again, do a git pull or what ever you need to update options.h from the repo (it has #include <QAbstractItemView> added to the top of the file), and then a make