Page 2 of 3

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 5:35 am
by DU2XXR
Thanks so much, Roger. I will test this extensively :) .

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 6:45 am
by VK3KYY
4I1RAC wrote:
Wed Feb 12, 2020 5:35 am
Thanks so much, Roger. I will test this extensively :) .
OK.

If it doesnt run at all, let me know and I'll package it as a DMG first and then zip the DMG

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 4:06 pm
by DU2XXR
Hi Roger. I was able to make it work perfectly on my main work machine, which runs High Sierra. However, the old laptop I use as ROIP server is an old Macbook that runs 10.7.5. I am getting "Illegal Instruction: 4" when I try to run MMDVMHost executable.

Is it possible to compile the binary using the -mmacosx-version-min flag so that it can possibly work on older versions?

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 4:27 pm
by DU2XXR
Apparently, I could also compile it myself from git source (I must have done something wrong previously). My own compiled executable works on my main machine. However, when I copy it over to my old Mac, I still get the "Illegal Instruction: 4" error.

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 5:03 pm
by F1RMB
Hi Angelo,
4I1RAC wrote:
Wed Feb 12, 2020 4:27 pm
Apparently, I could also compile it myself from git source (I must have done something wrong previously). My own compiled executable works on my main machine. However, when I copy it over to my old Mac, I still get the "Illegal Instruction: 4" error.
It's probably because both architectures are different, and the binary use CPU instruction(s) unavailable on the other one.
I would suggest to build the binary on both machine.

Cheers.
---
Daniel

EDIT: some explanations here

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Wed Feb 12, 2020 8:33 pm
by VK3KYY
It will not compile on older versions, because of some difference in the library functions associated with the time handling functions.

I am a bit surprised that the compiler is compiling code that will only run on newer processor architectures, but this is a general problem with Apple.

There may be a compiler switch to force it to support the older processors, but it’s not my area of expertise.

I had to buy a Mac last year, because the latest Apple dev tools don’t run on their older versions of OS, and the older OS don’t run on their older hardware.
So basically after your Mac is more than around 5 years old, it’s no longer supported and you have to buy new hardware.

I only have a few Apple products as I need them for my business. They don’t get used for anything else.

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Thu Feb 13, 2020 1:51 am
by DU2XXR
Thanks for the tips. I'm planning to compile it on my older Mac, although I don't have the tools there, so I'll need to find a way (or maybe it won't compile?). I guess I'm happy with having made it work on OSX in the first place -- as a proof of concept, and perhaps to help out other hams who may want to run MMDVMHost and their OpenGD77 as hotspot using their Mac.

Image

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Thu Feb 13, 2020 1:58 am
by VK3KYY
Hi Angelo

I'll try changing the makefile and recompiling it with that option and send you another binary, if it compiles

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Thu Feb 13, 2020 2:33 am
by VK3KYY
Angelo

I tried setting the min version to 10.7.5 but it would not compile because of incompatibilities with the header / library files.

The oldest version number which would actually compile is 10.9

So I've attached a version compiled to support that OS version, and if you are lucky it may work on OSX 10.7, as the processor used on 10.9 may be the same that they were using back when 10.7 was released.

Failing that, you'd need to start modifying the code to get it to compile.

Re: Has anyone tried to run BlueDV on Mac OSX?

Posted: Thu Feb 13, 2020 2:59 am
by DU2XXR
Thanks, Roger. I'll give this a try.