dgraposo / TRCtest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TRC Server

This git repo gives you a sample code to interact with ISABELA API. There is a sample code built to the linux and gcc compiler and available on the linux-gcc branch.

Linux-GCC

Install on Ubuntu

  1. Download the code:
git clone https://github.com/dgraposo/TRCtest.git
  1. Install all the missing libraries with apt-get (gcc,clang,libtool,autoconf,automake), see the instructions

  2. Run the following commands in json-c path:

   sh autogen.sh
   ./configure
   make
   make install (need sudo)
   make check
  1. Install libcurl:
   sudo apt-get install libcurl4-gnutls-dev
  1. Add the library to the environment variables:
   export LD_RUN_PATH=/usr/local/lib
   export LD_LIBRARY_PATH=/usr/local/lib/
  1. Compile the application using gcc:
   gcc main.c -o main -lcurl -ljson-c

The examples available in the main() allow the retreive of all questions, answers, and also to submit new answers or to update existing ones.

About


Languages

Language:C 88.0%Language:M4 5.8%Language:CMake 2.8%Language:Shell 1.6%Language:Makefile 1.6%Language:C++ 0.1%