lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.38k stars 1.13k forks source link

matplotlibcpp.h: No such file or directory #289

Open Rakee003 opened 2 years ago

Rakee003 commented 2 years ago

I am trying to use this library in my c++ project. I am very new to use external library with c++. I followed the instruction given . I also tried both windows and linux.

Initially i got an error with missing python.h but later i solved it .

Now im getting error with fatal error: matplotlibcpp.h: No such file or directory 1 | #include "matplotlibcpp.h" I am using visual studio code , I have installed the library using vcpkg as per the instruction given . I ran the program in terminal following the instructions . But i end up with the above error. I couldnt find any clear source to rectify my error . Please help me to find a way.

poteminr commented 2 years ago

@Rakee003 You can copy it from this repository and paste into your project folder. After it I ran this in terminal: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/anaconda3/lib/ and this export CPLUS_INCLUDE_PATH=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Headers:/opt/anaconda3/pkgs/numpy-base-1.20.1-py38h585ceec_0/lib/python3.8/site-packages/numpy/core/include/ to fix problems with numpy and other packages