mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Update build and install instructions
This commit is contained in:
parent
ef7f77d411
commit
d68c911702
52
README.md
52
README.md
@ -22,31 +22,41 @@ API Documentation: http://wjwwood.github.com/serial/doc/1.1.0/index.html
|
|||||||
* [empy](http://www.alcyone.com/pyos/empy/) - Python templating library
|
* [empy](http://www.alcyone.com/pyos/empy/) - Python templating library
|
||||||
* [catkin_pkg](http://pypi.python.org/pypi/catkin_pkg/) - Runtime Python library for catkin
|
* [catkin_pkg](http://pypi.python.org/pypi/catkin_pkg/) - Runtime Python library for catkin
|
||||||
|
|
||||||
### Install
|
### Install dependecies
|
||||||
|
-----------------------
|
||||||
|
```Shell
|
||||||
|
sudo apt-get install python-empy python-nose python-setuptools libgtest-dev build-essential
|
||||||
|
sudo pip install catkin_pkg
|
||||||
|
```
|
||||||
|
|
||||||
Get the code:
|
### Prepare workspace
|
||||||
|
---------------------
|
||||||
|
```Shell
|
||||||
|
mkdir -p serial_lib/src
|
||||||
|
cd serial_lib/src
|
||||||
|
git clone https://github.com/ros/catkin.git
|
||||||
|
git clone https://gitlab.com/ColossusGroup/serial.git
|
||||||
|
cd ..
|
||||||
|
```
|
||||||
|
|
||||||
git clone https://github.com/wjwwood/serial.git
|
### Compile & Install with catkin
|
||||||
|
---------------------------------
|
||||||
Build:
|
```Shell
|
||||||
|
sudo su
|
||||||
|
./src/catkin/bin/catkin_make install -DCMAKE_INSTALL_PREFIX=/usr/local
|
||||||
|
sudo ldconfig -v | grep libserial
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compile & Install with cmake
|
||||||
|
--------------------------------
|
||||||
|
```Shell
|
||||||
|
mkdir -p src/serial/build
|
||||||
|
cd src/serial/build
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..
|
||||||
make
|
make
|
||||||
|
sudo make install
|
||||||
Build and run the tests:
|
sudo ldconfig -v | grep libserial
|
||||||
|
```
|
||||||
make test
|
|
||||||
|
|
||||||
Build the documentation:
|
|
||||||
|
|
||||||
make docs
|
|
||||||
|
|
||||||
Install:
|
|
||||||
|
|
||||||
make install
|
|
||||||
|
|
||||||
Uninstall:
|
|
||||||
|
|
||||||
make uninstall
|
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user