Page 2 of 3

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 10:43 am
by Polecat
That couldn't be much easier to follow g33ky. Really appreciate it!

I take on board your comments too. Pretty sure I'll work it out. Will let you know how I get on later....

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 6:31 pm
by Polecat
Hmmm not going to plan. I copied and pasted what you gave me and this is what happened (what I assume to be the command prompt is in bold and the rest is what I copied next to the $ sign and what I got back:

xxxxx@CMS-55-PC:~$ sudo apt-get install git build-essential libsndfile1-dev libao-dev libsamplerate0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
E: Unable to locate package build-essential
E: Unable to locate package libsndfile1-dev
E: Unable to locate package libao-dev
E: Unable to locate package libsamplerate0-dev

I'm hoping that tells you more than it tells me!

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 8:24 pm
by Polecat
Bit of research and I'm moving forward - 'apt-get update' solved that issue.

Now 'git: command not found' came up when I tried to run the next bit. Off to work this one out....wondering if this was a good idea after all haha

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 10:19 pm
by Polecat
Jeez this is hard work.

So I hadn't installed git. Did that, entered the git clone command, and got yet another error message:

make: command not found

FFS! More searching and I solved that one with:

sudo apt-get install build-essential

Finally I got to run ./mpxgen and guess what...

cannot open sound device

Yep it's not talking to the soundcard.

I got this far....it's not gonna beat me!

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 10:54 pm
by g33ky
Polecat wrote: Wed Apr 15, 2020 10:19 pm Jeez this is hard work.

So I hadn't installed git. Did that, entered the git clone command, and got yet another error message:

make: command not found

FFS! More searching and I solved that one with:

sudo apt-get install build-essential

Finally I got to run ./mpxgen and guess what...

cannot open sound device

Yep it's not talking to the soundcard.

I got this far....it's not gonna beat me!
I knew something like this would happen. The problem is that Linux and Audio use entirely different sound systems. Linux uses ALSA whereas Windows uses DirectShow (I think anyway). Honestly on Windows you're better off looking at JMPX, it requires a virtual sound card to work but I can confirm it does actually work well on Windows.

Re: Best setup for RDS?

Posted: Wed Apr 15, 2020 11:50 pm
by Polecat
Oooh don't know if I can give up now g33ky!

I restarted the machine, entered
./mpxgen
and it returned
./mpxgen is a directory

Any idea how do I get the program to run again from the prompt?

I may end up going to jmpx but want to try and get this going before giving up on it.

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:53 am
by Albert H
You need a space:

./ mpxgen

./mpxgen would be a hidden directory (that's what the dot's for)!

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 8:50 am
by Polecat
Thanks Albert!

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 9:49 am
by g33ky
I think Albert is actually wrong. The program itself is in the mpxgen/src directory, so you'll need to:

cd mpxgen
cd src
./mpxgen
Albert H wrote: Thu Apr 16, 2020 1:53 am You need a space:

./ mpxgen

./mpxgen would be a hidden directory (that's what the dot's for)!
If it were a hidden directory it would be .mpxgen, having ./mpxgen would be having a whole hidden root directory :tup.

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 12:30 pm
by Polecat
Starting to get into this!

So I'm in the src directory, tried
./mpxgen
and got the same
./mpxgen: is a directory
error.

Even tried with Albert's space and got
./: is a directory

Which I think supports your point g33ky

Quite a lot of stuff online about this error message but the answers aren't helping me like they did on the installation errors.

Any other thoughts?


Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:05 pm
by g33ky
Type 'pwd' then type 'ls' for me, whats the output?

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:10 pm
by Polecat
pwd returned
/home/myusername/mpxgen/src

Is returned
Command not found

is with lowercase i retuned the same error

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:25 pm
by g33ky
Polecat wrote: Thu Apr 16, 2020 1:10 pm pwd returned
/home/myusername/mpxgen/src

Is returned
Command not found

is with lowercase i retuned the same error
l as in LMW :tup

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:29 pm
by Polecat
Yep, I entered 'Is' and it retuned 'command not found'

Only tried 'is' in case it was a mis-type.

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:30 pm
by g33ky
Polecat wrote: Thu Apr 16, 2020 1:29 pm Yep, I entered 'Is' and it retuned 'command not found'

Only tried 'is' in case it was a mis-type.
Its an L not an I :smoke

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:34 pm
by Polecat
Meanwhile, for any other Windows users out there, I downloaded JMPX and got it working inside 10 mins.

Already had Virtual Audio Cable installed. That worked straight away as the music software output and jmpx input.

Far simpler than stero tool and a good call.

Now, back to mpxgen....

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:39 pm
by Polecat
@g33ky
l as in lowercase L? Doh!

Okay, now we're motoring. That returned:
control_pipe.c cpu.c fm_mpx.c Makefile mpx_carriers.h mpx_gen.c rds.h waveforms.c
control_pipe.h cpu.h fm_mpx.h mpx_carriers.c mpxgen rds.c stereo_44100.wav waveforms.h

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:43 pm
by g33ky
Polecat wrote: Thu Apr 16, 2020 1:39 pm @g33ky
l as in lowercase L? Doh!

Okay, now we're motoring. That returned:
control_pipe.c cpu.c fm_mpx.c Makefile mpx_carriers.h mpx_gen.c rds.h waveforms.c
control_pipe.h cpu.h fm_mpx.h mpx_carriers.c mpxgen rds.c stereo_44100.wav waveforms.h
And doing "./mpxgen" in this folder says its a directory? Hmm.

Do "rm -rf mpxgen" then type "make" again (make sure you do the rm command exactly as i stated it otherwise it could possibly remove other stuff accidentally, I'm sure some Linux noobs have done it at some point lol)

Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 1:55 pm
by Polecat
Did the rm command ok

But 'make' returned
No targets specified and no make file found. Stop.


Re: Best setup for RDS?

Posted: Thu Apr 16, 2020 2:02 pm
by g33ky
Ok I have no idea how your directory structure is laid out for it to say that. It's easier to start again, really. Restart the Debian installation (from fresh if you know how) and do the steps from viewtopic.php?f=11&t=2494#p28157 this post again, it worked the first time.