반응형

http://dalinaum-kr.tumblr.com/post/2986196227/hello-homebrew


에 보면 macport랑 homebrew에 관한 이야기가 있다.


원래 Mac에서 android 컴파일을 하고 싶어서 환경설정하다가 예전에 macport를 설치해서 썼는데


결국엔 mac에서 android build는 불가능 하다는 결론에 도달하고 나서 macport도 사용하지 않고 놔두고 있었는데


이번에 STM32 개발환경을 세팅하면서 다시 macport와 homebrew같은것들이 필요해졌다.


아무는 저 위에 글을 읽어보고 지금 macport 에서 homebrew로 넘어가는 작업을 하는 중이다.


그런데 저기 나오는 글 중에 homebrew설치부터 막히길래 다시 정리하면서 과정을 기록한다.


일단 homebrew 설치하려면 아래와 같이 해준다.


ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"



Install the toolchain


Conveniently, the PX4 Autopilot Project has created a Homebrew formula to make installation super easy, not that it really does all that much you couldn’t have done by hand. We’ll use the 4.7 GCC branch:


brew install https://raw.github.com/PX4/homebrew-px4/master/gcc-arm-none-eabi-47.rb


Boom. Toolchain ready to go, on your $PATH. Easy as pie.


Install stlink

Again, we’ll use Texane’s stlink to talk to the STLinkV2 debugger on the board.


brew install automake autoconf libusb libusb-compat

sudo easy_install pyyaml

 

cd

mkdir Development && cd Development

mkdir embedded && cd embedded

mkdir tools && cd tools

git clone https://github.com/texane/stlink.git

cd stlink/

./autogen.sh

./configure

make




반응형
Posted by Real_G