nbody
nbody copied to clipboard
How to run
I'm confused about running this. You say "To run n-body problem simulation use 'nbody-simulation' programm.", but there is no file named nbody-simulation. The closest is nbody_solver; is that what you meant? Can you give us an example of how to use it?
Hi!
First you need to compile project. You can find build scripts at .travis.yml for Linux and at appveyor.yml for Windows. Or you can open nbody.pro at QtCreator and run build.
After the project is compiled, you can find the simulation program in the directory <build_root>/test/main.
You can find several examples to run here.
Thanks!
I'm on windows, and have tried building with appveyor and QtCreator.
LocalAppveyor says it succeeded, but it did not produce any nbody-simulation in test/main. It was "unable to resolve host address 'opencv-2.4.12-github-vc14-release-travis.rar'", so I installed opencv myself, but that didn't change anything
QtCreator says there are no suitable kits, and google hasn't been any help in resolving that
It looks like you need to install Qt and register it to QtCreator at Tools->Options->Build&Run
Qt might be a bit of an issue. I got an email from them saying they pulled my trial license because "free trials are reserved for businesses with commercially viable development projects". Aside from that, it's 50GB, and that's too much for something I'd use once.
I should be able to get this built by manually running everything in that appveyor.yml, right? Might try that if I have time.
You can download Qt here.
Thanks. Which of these options should I select?
You can use any Qt version for your choice. There is no special requirements.
I think it's mostly working now. I'm getting this error about opencv when building:
\nbody\player\nbody_frame_compressor_opencv.cpp:3: error: C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
You need to put OpenCV path here.