Changes:


CS 4121
Introduction to Compilers Practicum
Fall 2009

QtIX: A GUI library for IX

Introduction

To help you do interesting things with your IX 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 IX interface to a subset of the cross-platform Qt library to IX programs.

Please do keep in mind, however, that this was developed without access to an IX compiler, so bugs are not unlikely. 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 IX programs which may help you started.

If you use Windows, we also provide a precompiled version of the bindings library, plus the two Qt DLLs and link libraries you will need.

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

Build Instructions

To compile QtIX from source yourself you'll need:

Once you have everything, follow these steps:

  1. Download and extract QtIX sourcecode.
  2. Copy over libi9.a into the QtIX directory.
  3. Make sure qmake is in your path.
  4. Go to the QtIX/ directory in a terminal
  5. mkdir build
  6. cd build
  7. cmake ..
  8. make
If everything goes well, you will find qt.ixi and libQtIX.a in the build directory.

Use instructions

To link in with this library, you'll need to pass in -lQtIX -lQtGui4 -lQtCore4 as options to linki9.sh. You can use -L/path/ options to add in additional library search directories if needed.