Compro-Prasad / advCalc

Modified version of calc from scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

advCalc

gsocheat

Reimplementation of calc from scratch.

Note: The Qt GUI version is available.

Prerequisites

Qt and GNU Readline development libraries should be installed beforehand to build the source successfully.

On Debian and Debian based distributions:

sudo apt-get install qt5-default cmake libreadline-dev

On macOS

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo brew install cmake
sudo brew install qt5

Build and Execute

For Linux

Generate the Makefile using cmake then start the build:

cmake .
make

This will create two executables and a library, src/calc[CLI app], src/calc_ui_qt/calc_qt[QT GUI app] and src/libadvCalc.a[calc core library]. Start using the executables as you wish.

./src/calc                # CLI
./src/calc_ui_qt/calc_qt  # QT GUI

For macOS

cmake . -DCMAKE_PREFIX_PATH=$(brew --prefix qt5)
make

This will create two executables and a library, src/calc[CLI app], src/calc_ui_qt/calc_qt[QT GUI app] and src/libadvCalc.a[calc core library]. Start using the executables as you wish.

./src/calc                # CLI
./src/calc_ui_qt/calc_qt  # QT GUI

Developers see Getting Started for further reading.

About

Modified version of calc from scratch

License:GNU General Public License v3.0


Languages

Language:C++ 82.9%Language:CMake 15.3%Language:Emacs Lisp 0.9%Language:QMake 0.5%Language:Shell 0.4%