Giter Site home page Giter Site logo

linecode / wavesim_cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mss1451/wavesim_cpp

0.0 2.0 0.0 1.1 MB

2D wave engine written in C++

Home Page: https://www.codeproject.com/Articles/1259631/Wave-Simulator-with-Java-and-Cplusplus

License: MIT License

Makefile 4.13% C++ 85.22% C 10.64%

wavesim_cpp's Introduction

Wave Simulator with C++

This is an example wave simulation engine written in C++. The engine comes with a native Linux application which uses gtkmm and cairomm. For more details on what this project is about, see its Code Project Article. The java version is available here.

Prerequisites

This is an Eclipse CDT project. The following development packages are specificially required.

  1. libgtkmm-3.0-dev
  2. libglibmm-2.4-dev
  3. libcairomm-1.0-dev
  4. libpangomm-1.4-dev
  5. libatkmm-1.6-dev
  6. libgdk-pixbuf2.0-dev

It is also required to install the core packages such as libgtk-3-dev. You need pkg-config installed for the compiler to resolve the include and library directories.

Building

In a terminal, enter either the Release or Debug directories depending on which version of the program you want to build. Let's build a Release version.

Enter the Release directory by entering the following command.

cd {path_to_project}/Release

Clean before building.

make clean

Build now.

make

After a successful build, there should be the executable with the name wavesim_cpp.

Running

There are 64-bit and 32-bit executables inside the binary_* directories which can be run directly. Move one of them to the upper directory where the data folder exists and run it or, if you have just built from the source, do the following.

After building, move the executable from either the Release or Debug directory to the upper directory where the data folder exists. The program simply needs the data on its working directory so you can also move the folder to the executable directory instead. Let's move the exectuable from Release to the upper directory.

Enter the Release directory.

cd {path_to_project}/Release

Move the executable to the upper directory.

mv ./wavesim_cpp ..

Enter the upper directory.

cd ..

Run the program.

./wavesim_cpp

Authors

Mustafa Sami Salt

Acknowledgments

INI file reader provided from https://github.com/benhoyt/inih.

wavesim_cpp's People

Contributors

mss1451 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.