Giter Site home page Giter Site logo

Comments (23)

NunchakusLei avatar NunchakusLei commented on May 24, 2024 2

I tried brew install cartr/qt4/qt and updated log4cxx, but the error

Failed to detect successful installation of [qt]

keep poping up. I there anything else I can do to install indigo on Mac Serria?

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024 1

You could also set ROS_CONFIGURATION=ros_base to avoid all the GUI/sim packages for now. That isn't a long-term solution, but may help with bootstrapping in the short term.

from ros-install-osx.

jmtatsch avatar jmtatsch commented on May 24, 2024 1

Works for me on high sierra.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

See: https://github.com/Homebrew/homebrew-core/blob/master/Formula/qt.rb#L33-L36

Per REP-003, Kinetic's requirement is for QT5: http://www.ros.org/reps/rep-0003.html#kinetic-kame-may-2016-may-2021

So perhaps try installing desktop_full for Kinetic instead, and see if there's anything still pulling in qt instead of qt5? A rosdep override should take care of that if so. (see https://github.com/mikepurvis/ros-install-osx/blob/master/rosdeps.yaml)

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

This would involve changing

ROS_DISTRO=${ROS_DISTRO:-indigo}
from

ROS_DISTRO=${ROS_DISTRO:-indigo}

to

ROS_DISTRO=${ROS_DISTRO:-kinetic}

right?

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

Just export ROS_DISTRO=kinetic in your terminal prior to invoking the script.

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

Hmm... It seems that brew Qt is just broken right now on macOS: Homebrew/homebrew-core#5391

I already have Qt5.7 installed system-wide, is there a way to modify the script to use that Qt instead of installing its own? This is preferable on many fronts, since it's really best not to have ROS pull in a system-wide package which will compete with an already-installed version.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

We'll follow whatever Homebrew does (which has conventionally been not to dupe system stuff, but that seems not to be the policy so much these days).

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

Thanks. So is this an intractable problem for installing on macOS, then?

  • brewed Qt4 is intentionally removed on >=10.12
  • brewed Qt5 is broken
  • ROS can't be pointed at local installations of Qt
  • ROS can't be installed without Qt

Is there an alternate route I'm missing here?

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

P.S. It looks like Indigo with Qt4 might be doable yet: https://github.com/Homebrew/homebrew-core/pull/5216/files#diff-659a13040ca5049988275ef8f03dd6e9L33

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

Okay, rosdep successfully completed on Indigo with a combination of brew install cartr/qt4/qt (from Homebrew/homebrew-core#5216 (comment)) and an update to log4cxx (see Homebrew/homebrew-core#5599 (comment)).

catkin build --limit-status-rate 1 is running right now, I'll report back here once it's done.

Update

Can't argue with success:

[build] Summary: All 194 packages succeeded!                                                                            
[build]   Ignored:   31 packages were skipped or are blacklisted.                                                       
[build]   Warnings:  193 packages succeeded with warnings.                                                              
[build]   Abandoned: None.                                                                                              
[build]   Failed:    None.    

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

@mikepurvis, I've successfully resolved this problem. I don't know if you want to close this now, or leave it open until all the upstream fixes take hold. It might also make sense to check for macOS Sierra and call brew install cartr/qt4/qt before doing rosdep so that it grabs the right one.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

Let's hold it open until things are fixed by default. I'd be delighted for a PR that does what you describe.

from ros-install-osx.

MikeMcQuaid avatar MikeMcQuaid commented on May 24, 2024

brewed Qt4 is intentionally removed on >=10.12

To clarify on this: Qt is unsupported on 10.12 by the creators of Qt, not just Homebrew. If they continued to support it on 10.12 we'd do so too. It will likely never have another bugfix or security release and there's known security vulnerabilities in Qt 4's WebKit.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

@MikeMcQuaid Makes sense. As above, ROS Kinetic is supposed to depend on QT 5.3, so it's probably just a matter of working with @dirk-thomas, @wjwwood, and the other OSRF staff who maintain core ROS packagesto understand where the breakages are and correct them.

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

@mikepurvis Sure, but my concern with rerunning this script is that it might break things. ROS on macOS works for me, but only kinda-just. I've had to make subtle adjustments in certain things, and am currently playing around the Apple system python, because according to online sources the brew'ed python has at the past been at the root of several problems which I am currently having.

However, here's what I imagine the patch would look like. I think it would land somewhere around

.

  # Check for macOS Sierra
  if [[ `sw_vers -productVersion` == *"10.12"* ]]
  then
    echo "Qt4 is no longer officially supported by brew. Installing an unofficial workaround, which disables Qt's Phonon. "
    echo "See https://github.com/Homebrew/homebrew-core/pull/5216#issuecomment-251478385 for more information."
    brew install cartr/qt4/qt
  fi

from ros-install-osx.

burf2000 avatar burf2000 commented on May 24, 2024

Has anyone managed to get ROS working on OSX?

from ros-install-osx.

kubark42 avatar kubark42 commented on May 24, 2024

I have parts of it working, but it's always a brittle installation. There are things which work, but the end result was that I had to abandon ROS on macOS because it was still a little early. Keeping fingers crossed that future versions will have even wider cross-platform support.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

There was a period where the Yosemite/Indigo installation worked pretty well. That's still what I'm using locally on my Mac.

Given that Homebrew has now abandoned QT4, I think the only reasonable path forward here is to dump Indigo, and focus on providing a QT5/Gazebo7/Kinetic solution.

I just haven't had any time to commit to it.

from ros-install-osx.

ahundt avatar ahundt commented on May 24, 2024

El Capitan has worked okay too... I'm waiting on this to update my mac, haha.

from ros-install-osx.

Beck-Sisyphus avatar Beck-Sisyphus commented on May 24, 2024

Sierra still doesn't have Qt supported yet. Don't want to try the work around yet, looking forward for the Kinetic for MacOS updates.

from ros-install-osx.

mikepurvis avatar mikepurvis commented on May 24, 2024

Kinetic/Lunar can now be built at least on El Cap. Please open new tickets for remaining issues connected specifically to Sierra+.

from ros-install-osx.

ahundt avatar ahundt commented on May 24, 2024

Yay I can update my OS version! Has the updated script version worked for anyone else?

from ros-install-osx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.