SolAR Framework is composed of modules and samples. Each of them has a .pro file used for the build.
Remaken has to be installed. (https://github.com/SolarFramework/Tools/releases)
Open QTCreator and click on Open Project (in Menu).
Open a SolAR module or sample double clicking on it .pro file.
Configure the project if needed, we recommend to use MSVC 2017 64bit on Windows.
Execute "Run qmake" command.
Execute build / rebuild command.
Install QT VS Tool 2.4.3. (https://marketplace.visualstudio.com/items?itemName=TheQtCompany.QtVisualStudioTools-19123)
Open Visual Studio.
Go to QT VS Tools
Simply click on "Open QT Project file" and visual studio do the rest.
QT VS Tools realizes the Qmake command during this importation.
To execute a qmake command again, re-import the .pro file. |
Then, use visual studio and run pthe project like a classic one.
Tested on ubuntu:18.04 for SolARFramework project.
#update and core
apt-get update
apt-get install -y git wget pkg-config unzip
#build tools
apt-get install -y qt5-default
apt-get install -y g++
#Need python-pip and conan
apt install -y python3-pip
pip3 install conan
#Need buildefs qmake SFT b<>com
git clone https://github.com/b-com-software-basis/builddefs-qmake.git
mkdir -p /root/.remaken/rules/qmake
cp -r builddefs-qmake/* /root/.remaken/rules/qmake
#ENV VARIABLES
export REMAKEN_RULES_ROOT="/root/.remaken/rules/"
#Need Remaken → thirdParties installer b<>com
cd /usr/local/bin
wget https://github.com/SolarFramework/binaries/releases/download/remaken/1.0.0/linux/remaken
chmod 777 remaken
#Clone git repository, use remaken for thirdParties
git clone --branch develop https://github.com/SolarFramework/SolARFramework.git
cd SolARFramework
git checkout develop
remaken --cpp-std 17
mkdir SolARFramework-build \
cd SolARFramework-build \
qmake ../SolARFramework/SolARFramework.pro \
make