[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] run gnuradio on mac

From: Nate Temple
Subject: Re: [Discuss-gnuradio] run gnuradio on mac
Date: Sat, 22 Oct 2016 16:45:14 -0700


This is a bit of a hack, but it will create a GRC icon on Mac :)

1. Create AppleScript ( Launchpad -> Script Editor ) with the single line of 
(updating the path with correct username):

do shell script "/Users/username/grc.sh"


2. Save this AppleScript as "grc.app" with the File Format "Application" [ 
grc1.png ] This will create the "grc.app" package [ grc2.png ]

PNG image

PNG image

3. Create Bash script /Users/username/grc.sh with the content of (updating the 
cd /Users/username path first):

export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
export PYTHONPATH="/opt/local/lib/python2.7/site-packages"

cd /Users/username/


4. Set to executable:

chmod +x /Users/username/grc.sh

5. Ctrl+Click on the "grc.app" package and select "Get Info".

6. Drag the attached "gnuradio.icns" over the Icon in the "Get Info" window, 
highlighted in red in screen capture [ grc3.png ]. The mouse should switch to a 
green plus sign. This will set the package Icon to the GR icon. [ grc4.png ] 
and [ grc5.png ]. 

PNG image

PNG image

PNG image

7. Drag the "grc.app" package to your toolbar. [ grc6.png ].

PNG image

You should now be able to click on the icon and it will set the env vars and 
start up GRC.

Attachment: gnuradio.icns
Description: Binary data

Nate Temple

> On Oct 22, 2016, at 8:28 AM, Michael Dickens <address@hidden> wrote:
> On Fri, Oct 21, 2016, at 11:25 PM, w xd wrote:
>> I have installed the gnuradio on my mac pc(mac os sierra).I have two 
>> questions:
> Welcome to GR on Mac!
>> 1.When I run some grc example,the grc will post a error.It said"missing 
>> xterm executable".How to solve it?
> If you used the default 'port' settings, then you have to use X11.app or 
> XQuartz.app to get GRC to work because it uses GTK +x11. The latest is at: < 
> https://www.xquartz.org >. You can also use 'port' to install xorg-server, 
> which will provide updates ... but, you still need the original .app 
> installed.
>>     2.I want to install a desktop icon.I have find the command from the 
>> offical website"sudo grc_setup_freedesktop install" .But on my mac,I can't 
>> find the directory
>> "/libexec/gnuradio/" .
> Can you point me to this info? To the best of my knowledge there is no 
> "desktop icon" for GRC in Mac. - MLD
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]