-
Notifications
You must be signed in to change notification settings - Fork 1
building
I've been building on debian sid, although the cmake build system should enable easy portability to other distributions.
My notes indicate the following dependencies were needed to compile. Please let me know if this list needs to be improved:
- qtscript5-dev
- qtquick1-5-dev
- qtdeclarative5-dev
- qt5-default
- protobuf-compiler
- libprotobuf-dev
- libwaffle-dev waffle on ubuntu
- libgtest-dev
- libgles2-mesa-dev
For convenience; on Debian/Ubuntu these can be installed as follows:
sudo apt-get install qtscript5-dev qtquick1-5-dev qtdeclarative5-dev qt5-default protobuf-compiler libprotobuf-dev libwaffle-dev libgtest-dev libgles2-mesa-dev
In addition to the build dependencies, the following debian packages are required to run:
- qml-module-qtquick-layouts
- qml-module-qtquick-dialogs
- qml-module-qtquick-controls
- qml-module-qtquick-privatewidgets
- qml-module-qt-labs-folderlistmodel
- qml-module-qt-labs-settings
Other dependecies:
- fips: build my publisher branch of fips at: https://github.com/janesma/fips. It will publish metrics data over a socket for grafips display.
- kernel: build Robert Bragg's kernel which provides the counter data. Use wip/rib/oa-next branch (based on a 4.2 kernel, but rebases to 4.5) https://github.com/rib/linux
- libdrm: build wip/rib/oa-next branch at: https://github.com/rib/drm
- Mesa: build wip/rib/oa-next at https://github.com/rib/mesa
Building Robert Bragg's drm/mesa
Once the dependencies are in place, you can build and install grafips
Boot with Robert's kernel, and set LIBGL_DRIVERS_PATH and LD_LIBRARY_PATH before launching fips.
When you launch an app with fips, provide -p to specify the port for the gui to connect to. Running fips as root will allow display and control of cpu scheduling policy.
Start the grafips gui (<build_dir>/qqmlapp/grafips) and provide the host of the target system. At the moment, grafips will only connect to systems that are on the local network.
Grafips will connect to the fips instance and list the available metrics. Drag metrics onto a graph to view them. Experiments are shown in the lower left corner of grafips.