SHOW:
|
|
- or go back to the newest paste.
1 | # Notes from setting up a linuxmint-16 laptop to be a hifi dev environment. | |
2 | # We know at a minimum we need these packages: | |
3 | ||
4 | apt-get install git g++ cmake | |
5 | ||
6 | # Clone the repo: | |
7 | ||
8 | cd $HOME | |
9 | mkdir src | |
10 | cd src | |
11 | git clone https://github.com/highfidelity/hifi.git | |
12 | ||
13 | # Configure the build: | |
14 | ||
15 | mkdir build | |
16 | cd build | |
17 | cmake ../ | |
18 | ||
19 | # The configure fails for lack of GLM: | |
20 | # | |
21 | # "CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): | |
22 | # Could NOT find GLM (missing: GLM_INCLUDE_DIR)" | |
23 | ||
24 | # Downloaded GLM via http://glm.g-truc.net/0.9.5/index.html | |
25 | # as per the instructions in .../hifi/BUILD.md. | |
26 | # (I could have put glm in my homedir, but it wasn't something I wanted to clutter up my homedir | |
27 | # backup, so instead I unpacked into /usr/local/src/ using admin priviledges.) | |
28 | ||
29 | sudo mkdir /usr/local/src/glm-0.9.5.3 | |
30 | cd ~/Downloads/ | |
31 | sudo unzip -d /usr/local/src/glm-0.9.5.3 glm-0.9.5.3.zip | |
32 | ||
33 | # I added this line to my ~/.bashrc: | |
34 | ||
35 | export GLM_ROOT_DIR="/usr/local/src/glm-0.9.5.3/glm" | |
36 | ||
37 | source ~/.bashrc | |
38 | cd ~/src/hifi/build | |
39 | cmake ../ | |
40 | ||
41 | # The configure fails for lack of Qt: | |
42 | # | |
43 | # CMake Error at cmake/macros/SetupHifiProject.cmake:29 (find_package): | |
44 | # By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has | |
45 | # asked CMake to find a package configuration file provided by "Qt5Core", but | |
46 | # CMake did not find one. | |
47 | ||
48 | # Download Qt at http://qt-project.org/downloads | |
49 | # as per the instructions in .../hifi/BUILD.md. | |
50 | # (I downloaded the 64bit version since I'm using 64-bit linuxmint) | |
51 | ||
52 | cd ~/Downloads | |
53 | ||
54 | # The download is a script, but we must set the executable bit to run it: | |
55 | ||
56 | chmod a+x qt-opensource-linux-x64-1.5.0-2-online.run | |
57 | ||
58 | # (Since I'm running this as a regular user but I want to install it in a protected directory | |
59 | # I temporarily make the directory readable): | |
60 | ||
61 | sudo chmod o+w /usr/local/src | |
62 | ||
63 | # Run the script (this can take several minutes to download some stuff). | |
64 | # Install in: /usr/local/src/Qt. | |
65 | # Cleanup permissions when done. | |
66 | ||
67 | sudo chown -R root.root /usr/local/src/Qt | |
68 | sudo chmod go-w /usr/local/src | |
69 | sudo chmod -R go-w /usr/local/src/Qt | |
70 | ||
71 | # add another environment variable to .bashrc | |
72 | ||
73 | export QT_CMAKE_PREFIX_PATH=/usr/local/src/Qt/5.2.1/gcc_64/lib/cmake | |
74 | ||
75 | source ~/.bashrc | |
76 | cd ~/src/hifi/build | |
77 | cmake ../ | |
78 | ||
79 | - | # Examinging the cmake logs suggests some lib headers are missing: |
79 | + | # Examining the cmake logs suggests some lib headers are missing: |
80 | ||
81 | sudo apt-get install libdrm-dev libgl1-mesa-dev zlib1g-dev | |
82 | ||
83 | # Try again: | |
84 | ||
85 | cmake ../ | |
86 | ||
87 | - | # At this point cmake complains that it can't find GNUTLS. Since hifi requires version |
87 | + | |
88 | - | # 3.2.12 or higher I had to install from source. I downloaded the source for 3.2.13 |
88 | + | |
89 | - | # from here: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/ |
89 | + | |
90 | # (I built as regular user and then installed with admin priviledges. Again I didn't | |
91 | # want to clutter my homedir with a lib package that I didn't want included in my | |
92 | - | tar -C /tmp -xJf gnutls-3.2.13.tar.xz |
92 | + | |
93 | - | cd /tmp/gnutls-3.2.13 |
93 | + | |
94 | - | ./configure |
94 | + | |
95 | sudo make install | |
96 | - | # gnutls requires libnettle: |
96 | + | |
97 | # Go back to the hifi directory and try cmake... | |
98 | - | sudo apt-get install nettle-dev |
98 | + | |
99 | cd ~/src/hifi/build | |
100 | cmake ../ | |
101 | ||
102 | - | ./configure |
102 | + | |
103 | ||
104 | sudo apt-get install freeglut3 freeglut3-dev | |
105 | ||
106 | # cmake still can't find GLUT, and is also complaining about QXMPP. | |
107 | # We can ignore the QXMPP warning because it is optional but the GLUT issues must | |
108 | # be solved. | |
109 | ||
110 | # After a bit of online research and poking around I figured out (can't remember how) | |
111 | # that installing these packages solves the GLUT problems: | |
112 | ||
113 | sudo apt-get install libxmu-dev libxi-dev | |
114 | ||
115 | EDIT: | |
116 | ||
117 | # Openssl was recently added as a dependency. | |
118 | ||
119 | sudo apt-get install libssl-dev:amd64 |