Page 1 of 2

[SOLVED] Defacto OSX client installation procedure

Posted: Sun Jan 04, 2015 8:56 pm
by CliffH
I see many threads regarding CF client installation on a Mac and also Wiki's for Homebrew and MacPorts variants. Based on experience, is there a preferred approach or best practices way to do this? Also, what about Crazyradio? Is there a MAC installation procedure?

Re: Defacto OSX client installation procedure

Posted: Sun Jan 04, 2015 11:05 pm
by chad
I used the MacPorts install. It worked well for me on Yosemite. As far as the Crazyradio, it should work fine after the MacPorts install without any additional drivers or fuss.

Let us know how it goes.

Re: Defacto OSX client installation procedure

Posted: Mon Jan 05, 2015 7:00 pm
by CliffH
Success! Crazyflie client running on OSX 10.9.5 with Crazyradio PA and Playstation 4 controller -- both wireless and Bluetooth :) This was the goal -- no VM to Windows. No USB cable. There may be a hint of lag with Bluetooth controller connection, but it could be my imagination.

Updated --Problems: With Macports, I could not build libgcc, so py27-pyqtgraph and py-game never installed. Finally built libgcc. It just took hours! About 3ish.

But this page does not call for py-game (which has me confused).

http://wiki.bitcraze.se/doc:crazyflie:h ... ]=macports

Now getting the hang of flying. When trimmed properly, it appears to hold a fairly good hover. But I do need to re-trim after most crashes. Now it's time to hone flying skills and dive a bit deeper. Ideas for what to explore next?

Re: Defacto OSX client installation procedure

Posted: Tue Jan 06, 2015 5:44 am
by chad
CliffH wrote:Success! Crazyflie client running on OSX 10.9.5 with Crazyradio PA and Playstation 4 controller -- both wireless and Bluetooth :)
Awesome!
CliffH wrote:Updated --Problems: With Macports, I could not build libgcc, so py27-pyqtgraph and py-game never installed. Finally built libgcc. It just took hours! About 3ish.

But this page does not call for py-game (which has me confused).

http://wiki.bitcraze.se/doc:crazyflie:h ... ]=macports
The py-game dependency was removed with changes to support Crazyflie 2.0. Now the client uses py27-SDL2 to communicate with the controller. Thanks for the page link! I'd forgotten that one of the community members recently added it.
CliffH wrote:Ideas for what to explore next?
Tweak and build the firmware?

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 8:00 am
by Figgy
I unfortunately haven't had the same luck with this install. I for the life of me can't get my computer to recognize the Crazyradio and the PS3 controller that I am using connects every once in a while and then for some reason stops working so not even the thrust input level reads anything. Any help would greatly be appreciated. I installed Macports on a 13" MBP running Yosemite 10.10.3. It would be a dream to fly this using Bluetooth and my PS3 control. Thanks in advance for any help.

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 12:59 pm
by chad
Figgy wrote:I for the life of me can't get my computer to recognize the Crazyradio and the PS3 controller that I am using connects every once in a while and then for some reason stops working so not even the thrust input level reads anything.
Are you sure you don't have a problem with your USB bus...? If both the PS3 and the Cazyradio are having issues, it seems to point to something else being the problem. Have you tried plugging into a powered USB hub, just to try something else. Do you always use the same USB ports for the Crazyradio and PS3 controller? Can you connect the PS3 controller via Bluetooth at all? That should be pretty easy. Just plug it in and press the PS button. You ought to see it in the Bluetooth menu and then you can remove the cable. Not sure what else to try as everything works for me just fine...

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 5:19 pm
by Figgy
It is a fresh install of everything. I know that my machine has USB 3.0 and that might be a problem but when I plug in the CRadio the lights turn on. But when I scan for the devices nothing comes up. When I used to fly on my older Mac I used a VM and when I did the scan I could select the radio and I could fly. I'm really at a loss as to what is going on.

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 6:12 pm
by chad
I have a brand new MacBook Pro 13" (Model: MacBookPro11,1) and just did a fresh install of MacPorts today. I am also running Yosemite 10.10.3. I have the latest client from GitHub (on the "develop" branch). I don't have any issues with either the Crazyradio or Crazyradio PA... PS3 over Bluetooth and USB cable work fine. I don't think USB 3.0 is the issue because the same would affect me.

I used exactly these steps (except for step 4, the DYLD_LIBRARY_PATH export) to install MacPorts and necessary dependencies.

I'm not sure what else to tell you either... Can you still run things through the VM? That would verify your USB ports and bus are OK.

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 6:31 pm
by Figgy
The USB ports work fine if I plug anything else into them. Even the lights on the CR are lit and the control (PS3) is reading now. I just can't get it to connect. I am reinstalling now. I will keep you posted. These things are usually user error. :roll:

Re: [SOLVED] Defacto OSX client installation procedure

Posted: Sat May 02, 2015 6:37 pm
by Figgy
Here is the message I get at the end of the install. This might be a huge clue. I thought Xcode was installed. Pardon my ignorance but should I install it?

...---> Cleaning py27-pyqtgraph
Warning: Xcode does not appear to be installed; most ports will likely fail to build.
---> Computing dependencies for py27-pyusb-devel
Error: Unable to execute port: Can't install py27-pyusb-devel because conflicting ports are active: py27-pyusb