Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Installing Prerequisites and Optional Components

maqi edited this page Oct 10, 2013 · 27 revisions

Installing Python and psutil

Ubuntu
sudo apt-get install libpython-all-dev python-psutil
Fedora
sudo yum install python-devel
Windows

Download the latest Python v2.7 installer and the corresponding psutil installer


Installing FUSE

Ubuntu
sudo apt-get install libfuse-dev
Fedora
sudo yum install fuse-devel

Installing Callback File System v4

Extract cbfs_reg.zip and install (defaults to %ProgramFiles(x86)%\EldoS\Callback File System). During the install, there is a screen with 4 checkboxes to choose install components; we only need the C++ libraries selected.

  1. Open SourceCode\CBFS\CPP\CbFS_VS2012.sln in Visual Studio. Ignore warnings about Itanium being unavailable.

  2. For x64 Debug builds only, the Output File needs to be corrected. Open the project's Property Pages and select Debug and x64 at the top. Then select Configuration Properties → Librarian → General. For Output File, enter .\x64\Debug\CbFS.lib and click "OK".

  3. For all builds, open the project's Property Pages and select Configuration Properties → C/C++ → General. For Debug Information Format select Program Database (/Zi) for Debug builds and None for Release builds.

  4. Select Configuration Properties → C/C++ → Code Generation. For Runtime Library select Multi-threaded Debug DLL (/MDd) for Debug builds and Multi-threaded DLL (/MD) for Release builds.

  5. Finally, build Debug and Release versions.


Installing Qt 5

This is mainly for use on Linux, but also applies to Windows. It is only applicable if you have cloned the LifeStuff-UI-Qt project to the MaidSafe super-project's "src" folder. The LifeStuff-UI-Qt folder must be named "lifestuff_ui_qt". To do this, run:

cd <Path to MaidSafe super-project>/src
git clone git@github.com:maidsafe/LifeStuff-UI-Qt.git lifestuff_ui_qt
Linux
sudo apt-get install qt5-default libqt5webkit5-dev libqt5svg5-dev qttools5-dev libgl1-mesa-dev
sudo apt-get build-dep qtbase-opensource-src qtwebkit-opensource-src
Windows
  1. Download the appropriate installer for your OS. This will be either "... for Windows 32-bit (VS 2012, ...)" or "... for Windows 64-bit (VS 2012, ...)"

  2. Install.

  3. From the root build folder of the MaidSafe super-project, run:

     cmake . -DQT_BIN_DIR=<Path to Qt 5 bin Dir>
    

The Qt 5 bin dir should nested 2 deep inside the chosen Qt install path. For example, with a 64-bit build, if your install path was "C:\Qt\Qt5.1.0", then the QT_BIN_DIR should be set to "C:\Qt\Qt5.1.0\5.1.0\msvc2012_64\bin"