Changes:


CS 4121/5121
Introduction to Compilers Practicum
Fall 2011

QtXi: A GUI library for OO Xi

Introduction

To help you do interesting things with your OO Xi compilers, we have decided to provide you with a basic GUI library. This way you can interact better with your programs, and perhaps draw some nice graphics. In particular, we provide an OO Xi interface to a subset of the cross-platform Qt library to Xi programs.

This library has been tested using our Xi compiler, but bugs are always possible! The staff will appreciate any feedback.

Downloads

First of all, on any platform you'll want the main source code distribution. Inside it, you'll find the examples/ directory which contains some Xi programs which may help you started.

Also, please make sure you're using up-to-date runtime support.

Build instructions

To compile QtXi from source yourself you'll need:

Once you have everything, follow these steps:

  1. Download, extract, and compile libxi.
  2. Download and extract QtXi source code.
  3. Copy over libxi.a from the libxi directory into the QtXi directory.
  4. Make sure qmake is in your path.
  5. Go to the QtXi/ directory in a terminal
  6. mkdir build
  7. cd build
  8. cmake ..
  9. make
If everything goes well, you will find qt.ixi and libQtXi.a in the build directory.

Use instructions

To link in with this library, you'll need to pass in -lQtXi -lQtGui -lQtCore as options to linkxi.sh. You can use -L/path/ options to add in additional library search directories if needed.