git clone [email protected]:teonet-co/TeocliAS.git
cd TeocliAS
git submodule update --init
DEB / RPM repository: http://repo.ksproject.org
http://repo.ksproject.org/ubuntu/
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8CC88F3BE7D6113C
sudo apt-get install -y software-properties-common
sudo add-apt-repository "deb http://repo.ksproject.org/ubuntu/ teonet main"
sudo apt-get update
sudo apt-get install -y libteonet-dev
http://repo.ksproject.org/rhel/x86_64/
vi /etc/yum.repos.d/teonet.repo
[teonet]
name=Teonet library for RHEL / CentOS / Fedora
baseurl=http://repo.ksproject.org/rhel/x86_64/
enabled=1
gpgcheck=0
# yum clean all
yum install libteonet
ldconfig
zypper ar -f http://repo.ksproject.org/opensuse/x86_64/ teonet
zypper in -y libteonet
ldconfig
Download AngelScript sources from official web site: http://www.angelcode.com/angelscript/downloads.html
or
Get the AngelScript sources from this project dist folder.
Unzip source folder archive to anywhere you want.
Run make:
cd angelscript/sdk/angelscript/projects/gnuc
make
make install
./autogen.sh
Use autoscan to update (or create new one) projects configure.ac
make
cd src
./teocli_as
The applications output looks like this:
Teocli AngelScript ver 0.0.1
===========
Executing function 'void main()' of the script.
---
Hello world!
main: System has been running for 1.20452e+06.113 seconds
---
The script finished successfully.
===========
Executing function 'float calc(float, float)' of the script.
---
Received: 3.14159, 2.71828
calc: System has been running for 1.20452e+06.113 seconds
---
The script function returned: 8.53973
Press any key to quit.