RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.22k stars 1.25k forks source link

Installation #89

Closed lrozo closed 10 years ago

lrozo commented 10 years ago

When cloning the repo as suggested:

git clone https://github.com/RobotLocomotion/drake-distro.git --recursive -b rigidbody

I got this error message (when cloning the spotless repo):

Cloning into 'spotless'... remote: Reusing existing pack: 1253, done. remote: Total 1253 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1253/1253), 766.05 KiB | 540 KiB/s, done. Resolving deltas: 100% (458/458), done. fatal: reference is not a tree: 1c0097d58bd92aec62438cc88e3b5ef60b0b5cca Unable to checkout '1c0097d58bd92aec62438cc88e3b5ef60b0b5cca' in submodule path 'spotless' Cloning into 'xfoil'... remote: Reusing existing pack: 281, done. remote: Total 281 (delta 0), reused 0 (delta 0) Receiving objects: 100% (281/281), 3.85 MiB | 1.40 MiB/s, done. Resolving deltas: 100% (41/41), done. Submodule path 'xfoil': checked out '328a3c2a7410174c2b3863adaf0694d66894a817' Failed to recurse into submodule path 'spotless'

Any ideas about how to solve this?

Thanks!

eacousineau commented 10 years ago

I tried this out as well, and had the same issue. (Last time I attempted to clone drake-distro I believe a few of the submodules were still private - it's cool to see them recently uploaded!)

I did a poorman's fix by just going into spotless/spotless and checking out the latest commit by looking at gitk --all:

commit 064594f9b00f1dbe351283cce161d2a86de9c20e
Author: Mark M. Tobenkin <mmt@alum.mit.edu>
Date:   Wed Jul 24 16:05:51 2013 -0400

    moved c files to cpp and some clean up

I had looked at prior versions of the submodule (using gitk / git-ls-tree), and it does not seem like those commits are present either. Tried to throw together a quick preview of the commits and submodules, but looks like gitk might be the better alternative haha:

for sha in $(git rev-list --all HEAD); do
    echo "[ Super: $sha ]"
    git log -n 1 $sha
    echo
    git ls-tree $sha -- ./spotless | (
        read mode type subsha extra
        echo "[ Spotless: $subsha ]"
        test -z "$subsha" && { echo "No submodule listing"; exit 1; }
        cd ./spotless
        git log -n 1 $subsha
    ) | sed "s/^/        /"
    echo
done

Scripting references: 1, 2, 3

RussTedrake commented 10 years ago

I believe that the rigidbody distro was slightly out of date. I've updated the submodule references, and everything builds for me in matlab <2014. There is one pull request I need to address to re-enable 2014 support. Can you try again and let me know?

lrozo commented 10 years ago

Now it clones successfully! Thank you guys!

RussTedrake commented 10 years ago

Excellent. Let me know if you have any more trouble. My guess is that we'll have a few hiccups as I support all of the different platforms and problem types that people are trying, but I'm willing to help you make it work.