Building the Teapot sample application

CodeXL

PreviousNext
CodeXL User Guide
Help > Bundled Sample Applications > Teapot > Building the Teapot sample application
Building the Teapot sample application

CodeXL includes a pre-built binary of the Teapot application. Follow the steps below if you wish to build it yourself.

On Windows

Follow these steps to build AMDTTeapot on Windows from the default install location:

·         Launch Visual Studio with administrator privileges.

·         From the CodeXL menu, select the ‘Open Teapot Sample Project’ command.

·         Wait for the project to open and press F7.

On Linux

Follow these steps to build AMDTTeapot on Linux:

·         Install the FLTK library

o   The bundled binaries of AMD Teapot were built with 64-bit binaries of FLTK 1.1.10.

o   Download FLTK sources from http://www.fltk.org

o   Extract and build the fltk libraries from the source files, then install the created fltk libraries

·         Modifying The AMDTTeaPot Makefile

o   There are two makefiles in the Teapot sample folder. One is the /examples/Teapot/AMDTTeaPot/Makefile which you’ll need to edit, and the other is the /examples/Teapot/AMDTTeaPotLib/Makefile that does not need to be changed.

o   Open /examples/Teapot/AMDTTeaPot/Makefile in a text editor.

o   Replace the -L"Replace with path to your local FLTK lib folder" with the path of your local FLTK libraries, for example –L/usr/lib64 in case you placed the libraries in the system folder and you are running a 64bit system

o   Replace the -I"Replace with path to your local FLTK headers folder" with the path of your local FLTK include files. Please note that the FLTK headers are placed in a folder named “FL” and the path you provide should point to the parent of the “FL” folder. Example –I/user/include if you placed them in the system include and not –I/user/include/FL

·         Building the Teapot

o   Teapot consists of a library and an application so first the library needs to be built.

o   cd to the /examples/Teapot/AMDTTeaPotLib folder

o   make all

o   if everything went well you’ll see libAMDTTeaPot.a in that folder

o   Now the main application can be built.

o   cd to /examples/Teapot/AMDTTeaPot

o   make all

o   If successful the output should be in /examples/Teapot/release. Look for a file named AMDTTeaPot-bin.

 

Note that CodeXL RPM and Debian packages install CodeXL and is bundled sample applications under the /opt folder, which requires elevated privileges to write to on some Linux distributions.