You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the program in Release mode when I try to run the program it crashes saying "matplotlib.exe" has stopped working. I have just made new project VS2015 imported ur files and set the "Include directories" and "Library directories" path in properties. In Image attached line number is shown where program crashes in matplotlibcpp.h.
Steps I had done are:
Make general (Empty project) in VS 2015.
Imported matplotlibcpp.h .
used minimal.cpp as main file.
set the "Include directories" and "Library directories" path in properties. I have attached my project here. Please check it matplotlib.zip
I don't have a Windows machine, so I'm not going to be able to follow your instructions. But if you just use the minimal example without modification, my best guess would be that you're not linking libpython correctly.
Yes, as mentioned in the "Installation"-section of the README, you need to have libpython development headers and matplotlib for python installed, so you need to run the windows-equivalent of sudo aptitude install python-matplotlib python2.7-dev.
I have installed python correctly following the above tutorial. but I haven't installed matplotlib seperatelly. I'll install matplotlib and then i'll let you know in a while.
Activity
lava commentedon Jun 6, 2016
Can you write a minimal, compilable example that reproduces the bug?
HammadRehman commentedon Jun 7, 2016
Steps I had done are:
Make general (Empty project) in VS 2015.
Imported matplotlibcpp.h .
used minimal.cpp as main file.
set the "Include directories" and "Library directories" path in properties. I have attached my project here. Please check it
matplotlib.zip
lava commentedon Jun 7, 2016
I don't have a Windows machine, so I'm not going to be able to follow your instructions. But if you just use the minimal example without modification, my best guess would be that you're not linking libpython correctly.
HammadRehman commentedon Jun 8, 2016
I have followed this article to install python on windows machine http://www.howtogeek.com/197947/how-to-install-python-on-windows/
And I am succesfully able to print the last line which he mentioned. Do I need to install matplotlib in python seperately?? I am using python 2.7
lava commentedon Jun 8, 2016
Yes, as mentioned in the "Installation"-section of the README, you need to have libpython development headers and matplotlib for python installed, so you need to run the windows-equivalent of
sudo aptitude install python-matplotlib python2.7-dev.HammadRehman commentedon Jun 9, 2016
I have installed python correctly following the above tutorial. but I haven't installed matplotlib seperatelly. I'll install matplotlib and then i'll let you know in a while.