Comments (6)
I'll look into it this week. Even though the code + binding is suppose to work on windows, I never actually tried it myself. In the meantime, just to be sure, could you confirm that you have c++11 support for your Visual Studio version?
Since the error message of the pip installation is not very clear, I'll create a simple main file to check if the error is due to the c++ code or the binding.
from spreading_cr.
My Visual Studio Version is 2019 (Community). I downloaded the latest and free version today itself. However, I am unable to ascertain if it supports C++ 11 files.
from spreading_cr.
Hello Guillaume,
I'm working togheter with Shaurya-47 and, after following the same steps, unfortunately I'm also stuck with a huge error. The issue seems to be different in my case however, so I'm attaching the message hoping it might help. Thanks in advance for your support!
Error Text.txt
from spreading_cr.
Alright, sorry for the delay. I've just merged #15, in which I added a simple c++ main file to verify that the problem does not occur on the compiling of the sources files. Pull the new version, then in your terminal go in the directory src
, execute cmake . ; make
to compile the test main, or the associated windows command. It should create an executable in the directory, that you can run to output 'Hello world!'. If you have any error message doing this, please link it here.
Otherwise, it must be the binding with pybind11 that fails. If it is the case, try to install the minimal example here and we'll work from there. I don't have much experience with windows installation, so working with simpler pybind projects might be a good idea. Hope it helps!
from spreading_cr.
Dear Guillaume,
Thanks for the extremely prompt reply. At the cost of appearing a complete idiot, however, I have to admit that I'm relatively new to Phyton and I have never touched C++, so I can't figure out how to implement your suggestion after pulling the new version. Tried to work through this with my brother who has some experience with C, but we didn't make much progress.
I therefore apologize in advance if I'm wasting your time, but could you provide (if that's even possible) a simpler explanation on how exactly we should execute cmake . ; make to compile the test main, as you suggest?
Thanks in advance.
Best Regards,
Daniele
from spreading_cr.
No problem at all! I realize that my compilation instructions were not appropriate for windows and Visual Studio, my apologies. The file 'CMakeLists.txt' should contain all the information for cmake and VS to compile the code, but the method to use this file seems to differ from the unix way. This blog post seems to cover the necessary details. I think the only thing you need to do in Visual Studio is File > Open > Folder with 'Folder' here being src
which contains the 'CMakeLists.txt' to compile the minimal test.
Also, have you tried in python to install the example project here, it follows the same structure as my package, but with a simpler source code behind it. Let me know what are the results of these two experiments.
Cheers!
from spreading_cr.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spreading_cr.