kopia lustrzana https://github.com/stlink-org/stlink
doc/compiling.md: Add note on compiling for Mac OS X. Refs #499
rodzic
9eb84d9f04
commit
7b359e2b95
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
## Build from sources
|
## Build from sources
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* CMake
|
* CMake
|
||||||
* C compiler (gcc, clang, mingw)
|
* C compiler (gcc, clang, mingw)
|
||||||
* Libusb 1.0
|
* Libusb 1.0
|
||||||
|
@ -63,3 +61,21 @@ To build debian package you need debuild.
|
||||||
$ git archive --prefix=$(git describe)/ HEAD | bzip2 --stdout > ../libstlink_$(sed -En -e "s/.*\((.*)\).*/\1/" -e "1,1 p" debian/changelog).orig.tar.bz2
|
$ git archive --prefix=$(git describe)/ HEAD | bzip2 --stdout > ../libstlink_$(sed -En -e "s/.*\((.*)\).*/\1/" -e "1,1 p" debian/changelog).orig.tar.bz2
|
||||||
$ debuild -uc -us
|
$ debuild -uc -us
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Mac OS X
|
||||||
|
|
||||||
|
When compiling on a mac you need the following:
|
||||||
|
|
||||||
|
* A compiler toolchain (XCode)
|
||||||
|
* CMake
|
||||||
|
* Libusb 1.0
|
||||||
|
|
||||||
|
The best way is to install [homebrew](http://brew.sh) which is a package manager
|
||||||
|
for opensource software which is missing from the Apple App Store. Then install
|
||||||
|
the dependencies:
|
||||||
|
|
||||||
|
```
|
||||||
|
brew install libusb cmake
|
||||||
|
```
|
||||||
|
|
||||||
|
Compile as described in the first section of this document.
|
||||||
|
|
Ładowanie…
Reference in New Issue