This repository was archived by the owner on Jun 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
setup
Lorenzo Tessiore edited this page Jun 27, 2015
·
32 revisions
Prerequisites:
- Visual Studio 2013
- LLVM 3.5
- ARM GCC installed and added to PATH
- Make for Windows to build with GCC
To build LLVM, one needs to install CMake and add it to the path. To build LLVM, you may follow instructions here or here, but it is best to use the .zip file and script mentioned below. (some LLVM C++11 constructs do not work well with our managed C++ wrapper...)
The instructions below will refer to the mandatory as well optional steps. Optional steps are marked clearly and refer to, for example, how to build/install LLVM, should one not have done that yet.
- Clone the entire repo with: git clone https://github.com/NETMF/zelig-pr.git into directory <repo>
- [OPTIONAL] Move to directory <repo>\external and install LLVM using the script located in that directory. You will need CMake to complete this step.
- Change LLVM header file IRbuilder.h. line 74, from
InsertPt = nullptr;toInsertPt = BasicBlock::iterator(nullptr); - Open a new CMD shell, and run setenv.cmd in <repo> root (this will set LLVM environment variables)
- In the same CMD shell, move to directory <repo>\Zelig\Zelig and open Zelig solution Zelig.sln
- Build LLVMIR project first under code transformations; it will take a while.
- Build the rest of the solution.
- You are now ready to try the system on a real device!
Go to Build and Run Test Demo