nbody icon indicating copy to clipboard operation
nbody copied to clipboard

How to run

Open carbonox-infernox opened this issue 4 years ago • 9 comments

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?

carbonox-infernox avatar Jul 27 '20 14:07 carbonox-infernox

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.

drons avatar Jul 28 '20 16:07 drons

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

carbonox-infernox avatar Aug 04 '20 15:08 carbonox-infernox

It looks like you need to install Qt and register it to QtCreator at Tools->Options->Build&Run

drons avatar Aug 04 '20 20:08 drons

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.

carbonox-infernox avatar Aug 06 '20 18:08 carbonox-infernox

You can download Qt here.

drons avatar Aug 06 '20 19:08 drons

Thanks. Which of these options should I select? image

carbonox-infernox avatar Aug 06 '20 20:08 carbonox-infernox

You can use any Qt version for your choice. There is no special requirements.

drons avatar Aug 06 '20 20:08 drons

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

carbonox-infernox avatar Aug 07 '20 13:08 carbonox-infernox

You need to put OpenCV path here.

drons avatar Aug 09 '20 04:08 drons