Skip to content

Latest commit

 

History

History
145 lines (122 loc) · 3.03 KB

how_to_build_it.md

File metadata and controls

145 lines (122 loc) · 3.03 KB

How to build libs and sample apps

Straightforward steps for building libraries and samples on supported platforms.


Supported targets

Libs and samples have been successfully compiled on Windows and OSX as well, but these are not fully supported at this time.

Ubuntu 14.04

  1. Install dev dependencies:
sudo apt-get install qt5-default
sudo apt-get install libqt5webkit5-dev
sudo apt-get install libqt5xmlpatterns5-dev
sudo apt-get install libssl-dev
sudo apt-get install libsecret-1-dev
  1. Clone this repo:
sudo apt-get install git
git clone https://github.com/AzureAD/rms-sdk-for-cpp
cd rms-sdk-for-cpp
  1. Build libraries:
cd sdk
qmake
make
  1. Build sample applications:
cd ../samples
qmake
make
  1. Run sample applications:
cd ../bin
export LD_LIBRARY_PATH=`pwd`
./rms_sample	    # RMS sample
./rmsauth_sample	# auth sample
  1. Create a tarball (to deploy apps):
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so ./librmscrypto.so

OpenSUSE 13.2

  1. Install dev dependencies:
sudo zypper install libqt5-qtbase-devel
sudo zypper install libQt5WebKitWidgets-devel
sudo zypper install libQt5XmlPatterns-devel
sudo zypper install libopenssl-devel
sudo zypper install libsecret-devel
  1. Clone this repo
sudo zypper install git
git clone https://github.com/AzureAD/rms-sdk-for-cpp
  1. Build libraries:
cd sdk
qmake-qt5
make
  1. Build sample applications:
cd ../samples
qmake-qt5
make
  1. Run sample applications:
cd ../bin
export LD_LIBRARY_PATH=`pwd`
./rms_sample	    # RMS sample
./rmsauth_sample	# auth sample
  1. Create a tarball (to deploy apps):
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so ./librmscrypto.so

CentOS 7

  1. Install dev dependencies:
sudo yum groupinstall "Development Tools"
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo rpm -ivh epel-release-7-5.noarch.rpm
sudo yum --enablerepo=epel install qt5-qtbase-devel
sudo yum --enablerepo=epel install qt5-qtwebkit-devel
sudo yum --enablerepo=epel install qt5-qtxmlpatterns-devel
sudo yum install openssl-devel
sudo yum install libsecret-devel
  1. Clone this repo:
git clone https://github.com/AzureAD/rms-sdk-for-cpp
  1. Build libraries:
cd sdk
qmake-qt5
make
  1. Build sample applications:
cd ../samples
qmake-qt5
make
  1. Run sample applications:
cd ../bin
export LD_LIBRARY_PATH=`pwd`
./rms_sample	    # RMS sample
./rmsauth_sample	# auth sample
  1. Create a tarball (to deploy apps):
tar czf sample_apps.tar.gz ./rms_sample ./rmsauth_sample ./librmsauth.so ./librmsauthWebAuthDialog.so ./librms.so ./librmscrypto.so