Skip to content

Commit 5ab0f3e

Browse files
committed
merged
2 parents 45b5390 + 4d83d92 commit 5ab0f3e

File tree

7 files changed

+217
-131
lines changed

7 files changed

+217
-131
lines changed

.appveyor.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ clone_folder: c:\dev\src
1010

1111
init:
1212
- env
13-
- set POCO_INSTALL_PREFIX=%PROGRAMFILES%\Poco
14-
- set PATH=C:\MinGW\bin;%PATH%;%POCO_INSTALL_PREFIX%\bin
1513

1614
install:
1715
- cmd: echo "Downloading conan..."
@@ -26,7 +24,7 @@ before_build:
2624

2725
build_script:
2826
- cd c:\dev\src\build
29-
- cmake .. -G "Visual Studio 14 2015 Win64" -DOPTION_CONAN_PACKAGES=1
27+
- cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DOPTION_CONAN_PACKAGES=1
3028
- cmake --build . --config Release
3129

3230
test: off

.conanfile.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[requires]
2-
Boost/1.60.0@lasote/stable
3-
Poco/1.7.3@lasote/stable
4-
OpenCV/3.2.0@fmiguelgarcia/stable
2+
Boost/1.62.0@lasote/stable
3+
OpenCV/3.2.0@ohhi/stable
4+
Poco/1.7.5@lasote/stable
55

66
[options]
77
Boost:shared=True
8+
OpenCV:shared=True
89
Poco:shared=True
910
Poco:enable_data=True
1011
Poco:enable_data_sqlite=True
11-
Poco:enable_data_mysql=True
12-
Poco:enable_mongodb=True
12+
1313
[generators]
1414
cmake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ CMakeLists.txt.user.*
2929
# IDE project files
3030
*.sublime-project
3131
*.sublime-workspace
32+
*.vs
3233

3334
# Local config windows
3435
_configure.bat

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ script:
122122

123123
after_success:
124124
- make annotatorlib_coverage
125+
- lcov --directory . --capture --output-file coverage.info # capture coverage info
126+
- lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter out system
127+
- lcov --list coverage.info #debug info
128+
# Uploading report to CodeCov
129+
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
125130
- cd ..
126131
- coveralls --root "." -E ".*/cmake-3.6.0/.*" -E ".*/opencv-3.1.0/.*" -E ".*/poco/.*" -E ".*/build/gtest/.*" -E ".*CMakeFiles.*" -E ".*tests/.*.cpp.*"
127132
- cp build/compile_commands.json .

README.md

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,51 @@
1-
Annotator Library
1+
# Annotator Library
2+
23
=================
34

45
[![Stories in Ready][waffle-image]][waffle]
56
[![Build Status][travis-image]][travis]
7+
[![Build Status Windows][appveyor-image]][appveyor]
68
[![Coverage_Status][coveralls-image]][coveralls]
9+
[![Coverage Status Codecov][codecov-image]][codecov]
710
[![Coverity Scan Build Status][coverity-image]][coverity]
8-
[![Documentation][codedocs-image]][codedocs][![Gitter][gitter-image]][gitter]
11+
[![Documentation][codedocs-image]][codedocs]
12+
[![Gitter][gitter-image]][gitter]
913

1014
[travis-image]: https://travis-ci.org/annotatorproject/annotatorlib.png?branch=master
1115
[travis]: http://travis-ci.org/annotatorproject/annotatorlib
1216

17+
[appveyor-image]: https://img.shields.io/appveyor/ci/chriamue/annotatorlib.svg
18+
[appveyor]: https://ci.appveyor.com/project/chriamue/annotatorlib
19+
1320
[coveralls-image]: https://img.shields.io/coveralls/annotatorproject/annotatorlib.svg?label=Coverage
1421
[coveralls]: https://coveralls.io/github/annotatorproject/annotatorlib
1522

16-
[coverity-image]: https://img.shields.io/coverity/scan/12802.svg
17-
[coverity]: https://scan.coverity.com/projects/annotatorproject-annotatorlib
23+
[codecov-image]: https://img.shields.io/codecov/c/github/annotatorproject/annotatorlib.svg
24+
[codecov]: https://codecov.io/gh/annotatorproject/annotatorlib
1825

1926
[codedocs-image]: https://codedocs.xyz/annotatorproject/annotatorlib.svg
2027
[codedocs]: https://codedocs.xyz/annotatorproject/annotatorlib/
2128

29+
[coverity-image]: https://img.shields.io/coverity/scan/12802.svg
30+
[coverity]: https://scan.coverity.com/projects/annotatorproject-annotatorlib
31+
2232
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
2333
[gitter]: https://gitter.im/annotatorproject/annotatorlib
2434

2535
[waffle-image]: https://badge.waffle.io/annotatorproject/annotatorlib.svg?label=ready&title=Ready
2636
[waffle]: http://waffle.io/annotatorproject/annotatorlib
2737

28-
### Quick start
38+
## Quick start
2939

3040
First install CMake, Qt5 and a c++11 compiler (gcc 5).
3141

32-
```
42+
```bash
3343
sudo apt-get install libboost-system-dev libboost-filesystem-dev libpoco-dev libmysqlclient-dev libmongo-client-dev
3444
```
3545

3646
Build LibPoco
37-
```sh
47+
48+
```bash
3849
git clone https://github.com/pocoproject/poco.git
3950
cd poco
4051
sed -i 's#mysqlclient_r#mysqlclient mysqlclient_r#g' cmake/FindMySQL.cmake
@@ -45,7 +56,7 @@ make -j2
4556

4657
Then build.
4758

48-
```sh
59+
```bash
4960
git clone https://github.com/annotatorproject/annotatorlib
5061
git submodule update --init --recursive
5162
cd annotatorlib
@@ -57,22 +68,38 @@ make
5768

5869
Add PascalVoc storage support.
5970

60-
```sh
71+
```bash
6172
cd annotatorlib/source/storages
6273
git clone https://github.com/annotatorproject/annotatorstorage_pascalvocxml
6374
cd ../../build
6475
cmake ..
6576
make
6677
```
6778

79+
## Conan Build on Windows
80+
81+
First install Visual Studio, CMake, Git and Conan.
82+
83+
Open Git Bash:
84+
85+
```bash
86+
git clone https://github.com/annotatorproject/annotatorlib
87+
git submodule update --init --recursive
88+
cd annotatorlib
89+
mkdir build
90+
cd build
91+
cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release -DOPTION_CONAN_PACKAGES=1
92+
cmake --build . --config Release
93+
```
94+
6895
## Build coverage
69-
```sh
96+
97+
```bash
7098
git clone https://github.com/annotatorproject/annotatorlib
7199
git submodule update --init --recursive
72100
cd annotatorlib
73101
mkdir build
74102
cd build
75103
cmake -DCMAKE_BUILD_TYPE=Coverage ..
76104
make annotatorlib_coverage
77-
```
78-
105+
```

0 commit comments

Comments
 (0)