LLBrowse requires the following packages to be installed:
You can get the source code to LLBRowse via Subversion:
LLBrowse uses CMake to generate the Makefiles for the project.
Create a directory for containing the build. It is not supported to build LLBrowse on the source directory. cd to this directory:
mkdir mybuilddir
cd mybuilddir
Execute this command on the shell replacing path/to/llbrowse/source/root with the path to the root of your LLBrowse source tree:
cmake path/to/llbrowse/source/root
If your installation of 'llvm-config' is not in one of the standard places, you can tell CMake where to find it by defining LLVM_CONFIG_EXECUTABLE on the command line.
cmake path/to/llbrowse/source/root -D LLVM_CONFIG_EXECUTABLE="path/to/llvm-config"
Note for Mac OS X: If you are trying to build under OS X 10.6 ("Snow Leopard") you will need to tell CMake to build the project as a 32-bit executable, rather than 64-bits which is the default. The reason for this is because wxWidgets uses the Carbon APIs, and there's no 64-bit version of Carbon. You will also need a 32-bit version of the LLVM libraries.
cmake path/to/llbrowse/source/root -D CMAKE_OSX_ARCHITECTURES="i386;ppc"
If CMake was successful, you can now build the executable by running 'make':
make
You can run the llbrowse program from the shell:
cd mybuilddir
./llbrowse
The program should open a new, blank window:
To open an LLVM module, select the File -> Open menu. A file dialog should appear. Select the module file (either a .bc or .ll file) and click "Open" in the dialog box.
You should now see an outline of the module contents:
At this point, you can explore the contents of the module by expanding the nodes of the tree view. The pane on the right side shows additional details about the currently selected item.