12-01-2014, 07:36 PM
(12-01-2014, 03:58 PM)Bigpet Wrote: the cmake file of rpcs3 uses the systems version of llvm instead of trying to compile it anew for now. So install your distros llvm libs or compile and install the llvm subdirectory before using the main cmake file.
Some additions to the above:
1. You must install LLVM 3.5 libs/headers. I am not sure if it will compile with other versions of LLVM.
2. In case you cannot get the LLVM 3.5 libs/headers for your distro or if the libs/headers provided by your distro are missing the LLVM cmake config files (I faced that problem with Ubuntu precise), you can compile LLVM from source and install it to your distro. The procedure to do so is as follows:
cd <rpcs3 directory>
git submodule update --init llvm
cd llvm_build
cmake -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_BUILD_RUNTIME=OFF -DLLVM_BUILD_TOOLS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DLLVM_INCLUDE_TOOLS=OFF -DLLVM_INCLUDE_UTILS=OFF -DWITH_POLLY=OFF ../llvm
make -j 4
sudo make install