1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Symlinks to the rescue

This commit is contained in:
Urras 2014-07-11 14:35:05 -04:00
parent 318f6cd301
commit 0301c3f9bc

View File

@ -68,27 +68,12 @@ cd toxgui
qmake
```
Do not run make, as we need further modifications to toxgui.
Open up the Makefile in a text editor (TextEdit/TextWrangler, etc).
You will need to modify the Makefile to point to your toxcore libs/includes.
The first change you will need to make is to point the Makefile towards the tox libs installed on your system. (Generally this is /usr/local/lib/).
Look for the line in the Makefile which references /toxgui/lib/libs/ and replace with the above).
The second change to Makefile is to add the location of the includes (On my system these were placed in /usr/local/include/tox/).
To do this, search for the INCLUDES line and add the following to the end;
```bash
-I/usr/local/include/
Now, we need to create a symlink to /usr/local/lib/ and /usr/local/include/
```
mkdir -p $HOME/toxgui/libs
sudo ln -s /usr/local/lib $HOME/toxgui/libs/lib
sudo ln -s /usr/local/include $HOME/toxgui/libs/include
```
Do not point it to the tox/ directory as the build script will look in there for you.
Save the Makefile.
<h5>Final Steps</h5>
The final step is to run