Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Notes from setting up a linuxmint-16 laptop to be a hifi dev environment.
- # We know at a minimum we need these packages:
- apt-get install git g++ cmake
- # Clone the repo:
- cd $HOME
- mkdir src
- cd src
- git clone https://github.com/highfidelity/hifi.git
- # Configure the build:
- mkdir build
- cd build
- cmake ../
- # The configure fails for lack of GLM:
- #
- # "CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
- # Could NOT find GLM (missing: GLM_INCLUDE_DIR)"
- # Downloaded GLM via http://glm.g-truc.net/0.9.5/index.html
- # as per the instructions in .../hifi/BUILD.md.
- # (I could have put glm in my homedir, but it wasn't something I wanted to clutter up my homedir
- # backup, so instead I unpacked into /usr/local/src/ using admin priviledges.)
- sudo mkdir /usr/local/src/glm-0.9.5.3
- cd ~/Downloads/
- sudo unzip -d /usr/local/src/glm-0.9.5.3 glm-0.9.5.3.zip
- # I added this line to my ~/.bashrc:
- export GLM_ROOT_DIR="/usr/local/src/glm-0.9.5.3/glm"
- source ~/.bashrc
- cd ~/src/hifi/build
- cmake ../
- # The configure fails for lack of Qt:
- #
- # CMake Error at cmake/macros/SetupHifiProject.cmake:29 (find_package):
- # By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
- # asked CMake to find a package configuration file provided by "Qt5Core", but
- # CMake did not find one.
- # Download Qt at http://qt-project.org/downloads
- # as per the instructions in .../hifi/BUILD.md.
- # (I downloaded the 64bit version since I'm using 64-bit linuxmint)
- cd ~/Downloads
- # The download is a script, but we must set the executable bit to run it:
- chmod a+x qt-opensource-linux-x64-1.5.0-2-online.run
- # (Since I'm running this as a regular user but I want to install it in a protected directory
- # I temporarily make the directory readable):
- sudo chmod o+w /usr/local/src
- # Run the script (this can take several minutes to download some stuff).
- # Install in: /usr/local/src/Qt.
- # Cleanup permissions when done.
- sudo chown -R root.root /usr/local/src/Qt
- sudo chmod go-w /usr/local/src
- sudo chmod -R go-w /usr/local/src/Qt
- # add another environment variable to .bashrc
- export QT_CMAKE_PREFIX_PATH=/usr/local/src/Qt/5.2.1/gcc_64/lib/cmake
- source ~/.bashrc
- cd ~/src/hifi/build
- cmake ../
- # Examinging the cmake logs suggests some lib headers are missing:
- sudo apt-get install libdrm-dev libgl1-mesa-dev zlib1g-dev
- # Try again:
- cmake ../
- # At this point cmake complains that it can't find GNUTLS. Since hifi requires version
- # 3.2.12 or higher I had to install from source. I downloaded the source for 3.2.13
- # from here: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/
- cd ~/Downloads
- tar -C /tmp -xJf gnutls-3.2.13.tar.xz
- cd /tmp/gnutls-3.2.13
- ./configure
- # gnutls requires libnettle:
- sudo apt-get install nettle-dev
- # Try again:
- ./configure
- # The configure may warn that it cannot find: P11_KIT, guile, and crywrap.
- # It is okay to ignore these dependencies -- hifi does not use them.
- # (I built as regular user and then installed with admin priviledges. Again I didn't
- # want to clutter my homedir with a lib package that I didn't want included in my
- # personal backups).
- make
- sudo make install
- # Go back to the hifi directory and try cmake...
- cd ~/src/hifi/build
- cmake ../
- # Cmake is now complaining that it can't find GLUT
- sudo apt-get install freeglut3 freeglut3-dev
- # Hrm... cmake still can't find GLUT, and is also complaining about QXMPP.
- # Installing libqxmpp-dev automatically installs some qt4 libs, which we don't
- # need/want, so we'll probably have to get that directly from source for Qt5.
- # Time for bed. Give up for now.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement