Skip to content

Commit edb4074

Browse files
committed
Reword libpython dependency; move vcpkg section
1 parent 1243814 commit edb4074

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -199,23 +199,15 @@ On Ubuntu:
199199
sudo apt-get install python-matplotlib python-numpy python2.7-dev
200200

201201
If, for some reason, you're unable to get a working installation of numpy on your system,
202-
you can add the define `WITHOUT_NUMPY` to erase this dependency.
202+
you can define the macro `WITHOUT_NUMPY` before including the header file to erase this
203+
dependency.
203204

204205
The C++-part of the library consists of the single header file `matplotlibcpp.h` which can be placed
205206
anywhere.
206207

207-
Since a python interpreter is opened internally, it is necessary to link against `libpython2.7` in order to use
208-
matplotlib-cpp.
209-
210-
You can download and install matplotlib-cpp using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
211-
212-
git clone https://github.com/Microsoft/vcpkg.git
213-
cd vcpkg
214-
./bootstrap-vcpkg.sh
215-
./vcpkg integrate install
216-
vcpkg install matplotlib-cpp
217-
218-
The matplotlib-cpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
208+
Since a python interpreter is opened internally, it is necessary to link against `libpython` in order
209+
to user matplotlib-cpp. Most versions should work, although `libpython2.7` and `libpython3.6` are
210+
probably the most regularly testedr.
219211

220212

221213
# CMake
@@ -243,6 +235,20 @@ target_include_directories(myproject PRIVATE ${PYTHON_INCLUDE_DIRS})
243235
target_link_libraries(myproject ${PYTHON_LIBRARIES})
244236
```
245237

238+
239+
# Vcpkg
240+
241+
You can download and install matplotlib-cpp using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager:
242+
243+
git clone https://github.com/Microsoft/vcpkg.git
244+
cd vcpkg
245+
./bootstrap-vcpkg.sh
246+
./vcpkg integrate install
247+
vcpkg install matplotlib-cpp
248+
249+
The matplotlib-cpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
250+
251+
246252
# C++11
247253

248254
Currently, c++11 is required to build matplotlib-cpp. The last working commit that did

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy