Small changes to support Clang and Mac OS
This commit is contained in:
45
README.md
45
README.md
@@ -199,6 +199,51 @@ $ cd analyzer
|
||||
$ ./traceAnalyzer
|
||||
```
|
||||
|
||||
### Building on OSX
|
||||
|
||||
- Install SystemC in /opt (as usual with ./configure --prefix=/opt/systemc; make; make install;).
|
||||
- Install the required python over macports:
|
||||
``` bash
|
||||
sudo port install python34
|
||||
```
|
||||
|
||||
- Install the QtCreator via macports:
|
||||
``` bash
|
||||
sudo port install qt5-creator qt5
|
||||
```
|
||||
|
||||
- Install the QWT manually to /opt/qwt, then do:
|
||||
``` bash
|
||||
cd /Library/Frameworks
|
||||
sudo ln -s /opt/qwt-6.1.2/lib/qwt.framework/ .
|
||||
```
|
||||
- The boost library must be installed manually, since the macports version is not compatible with DRAMSys:
|
||||
|
||||
In your “user-config.jam”, put this:
|
||||
|
||||
``` bash
|
||||
using clang : 11
|
||||
: "/usr/bin/clang++"
|
||||
: <cxxflags>"-std=c++11 -stdlib=libc++" <linkflags>"-stdlib=libc++""
|
||||
;
|
||||
|
||||
```
|
||||
Then compile and install it:
|
||||
``` bash
|
||||
./b2 toolset=clang-11
|
||||
sudo ./b2 install
|
||||
```
|
||||
DRAMSys and Analyzer only runs if the following is configured in the project settings:
|
||||
```
|
||||
DYLD_LIBRARY_PATH=/opt/boost/lib
|
||||
LIBQWT_HEADERS=/opt/local/include
|
||||
LIBQWT_HOME=/opt/local/lib
|
||||
PYTHON_HEADERS=/opt/local/include
|
||||
PYTHON_HOME=/opt/local/lib
|
||||
SYSTEMC_TARGET_ARCH=macosx64
|
||||
```
|
||||
For the trace analyzer the file /opt/local/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m/pyport.h has to be changed like this: https://trac.macports.org/attachment/ticket/44288/issue10910-workaround.txt
|
||||
|
||||
### DRAMSys Thermal Simulation
|
||||
|
||||
Before starting make sure you have a **clean repository** without any previous
|
||||
|
||||
Reference in New Issue
Block a user