Fixed setup to work with conan packages to simplify start to work
This commit is contained in:
parent
b94d637177
commit
29bd95fb6d
|
@ -30,3 +30,4 @@ language.settings.xml
|
||||||
/*.log
|
/*.log
|
||||||
/.gdbinit
|
/.gdbinit
|
||||||
/*.out
|
/*.out
|
||||||
|
/*.txlog
|
||||||
|
|
13
README.md
13
README.md
|
@ -27,18 +27,16 @@ DBT-RISE-RiscV uses libGIS (https://github.com/vsergeev/libGIS) as well as ELFIO
|
||||||
|
|
||||||
* you need to have a decent compiler, make, python, and cmake installed
|
* you need to have a decent compiler, make, python, and cmake installed
|
||||||
* install LLVM 4.0 according to http://apt.llvm.org/ (if it is not already provided by your distribution)
|
* install LLVM 4.0 according to http://apt.llvm.org/ (if it is not already provided by your distribution)
|
||||||
* install conan.io (see also http://docs.conan.io/en/latest/installation.html)
|
* install conan.io (see also http://docs.conan.io/en/latest/installation.html):
|
||||||
```
|
```
|
||||||
pip install conan
|
pip install conan
|
||||||
```
|
```
|
||||||
* download and install SystemC from http://accellera.org/downloads/standards/systemc (this is going to be replaced with a conan.io integration)
|
* setup conan to use the minres repo:
|
||||||
* optionally download and install SystemC Verification Library (SCV) from Accelera into the same location
|
|
||||||
* setup conan to use the minres repo
|
|
||||||
```
|
```
|
||||||
conan add remote minres https://dl.bintray.com/minres/conan-repo
|
conan add remote minres https://api.bintray.com/conan/minres/conan-repo
|
||||||
```
|
```
|
||||||
* checkout source from git
|
* checkout source from git
|
||||||
* start an out-of-source build like so (e.g. when using bash)
|
* start an out-of-source build:
|
||||||
```
|
```
|
||||||
cd DBT-RISE-RiscV
|
cd DBT-RISE-RiscV
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -46,9 +44,6 @@ DBT-RISE-RiscV uses libGIS (https://github.com/vsergeev/libGIS) as well as ELFIO
|
||||||
cmake ..
|
cmake ..
|
||||||
cmake --build .
|
cmake --build .
|
||||||
```
|
```
|
||||||
* if the SystemC installation is not found by cmake you can optionally specify the location by either setting the following environment variables pointing to the installation
|
|
||||||
- SYSTEMC_HOME
|
|
||||||
- SYSTEMC_PREFIX
|
|
||||||
* if you encounter issues when linking wrt. c++11 symbols you might have run into GCC ABI incompatibility introduced from GCC 5.0 onwards. You can fix this by adding '-s compiler.libcxx=libstdc++11' to the conan call or changing compiler.libcxx to
|
* if you encounter issues when linking wrt. c++11 symbols you might have run into GCC ABI incompatibility introduced from GCC 5.0 onwards. You can fix this by adding '-s compiler.libcxx=libstdc++11' to the conan call or changing compiler.libcxx to
|
||||||
```
|
```
|
||||||
compiler.libcxx=libstdc++11
|
compiler.libcxx=libstdc++11
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
[requires]
|
[requires]
|
||||||
Poco/1.7.8p3@pocoproject/stable
|
Poco/1.7.8p3@pocoproject/stable
|
||||||
Seasocks/1.3.2@seasocks/stable
|
Seasocks/1.3.2@minres/stable
|
||||||
|
SystemC/2.3.2@minres/stable
|
||||||
|
SystemCVerification/2.0.0a@minres/stable
|
||||||
|
|
||||||
[generators]
|
[generators]
|
||||||
cmake
|
cmake
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
Poco:shared=True
|
Poco:shared=True
|
||||||
Seasocks:shared=False
|
Seasocks:shared=False
|
||||||
|
SystemC:stdcxx=14
|
||||||
|
SystemCVerification:stdcxx=14
|
|
@ -41,6 +41,9 @@ target_link_libraries(${APPLICATION_NAME} external)
|
||||||
target_link_libraries(${APPLICATION_NAME} ${llvm_libs})
|
target_link_libraries(${APPLICATION_NAME} ${llvm_libs})
|
||||||
target_link_libraries(${APPLICATION_NAME} ${SystemC_LIBRARIES} )
|
target_link_libraries(${APPLICATION_NAME} ${SystemC_LIBRARIES} )
|
||||||
if(SCV_FOUND)
|
if(SCV_FOUND)
|
||||||
|
add_definitions(-DWITH_SCV)
|
||||||
|
include_directories(${SCV_INCLUDE_DIRS})
|
||||||
|
link_directories(${SCV_LIBRARY_DIRS})
|
||||||
target_link_libraries (${APPLICATION_NAME} ${SCV_LIBRARIES})
|
target_link_libraries (${APPLICATION_NAME} ${SCV_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(${APPLICATION_NAME} ${Boost_LIBRARIES} )
|
target_link_libraries(${APPLICATION_NAME} ${Boost_LIBRARIES} )
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit d5abb72bf3e9030e4a7800195cb6ea5e1bb218cc
|
Subproject commit 30ebb87f7683ebd65c7545e9dd341f1ccb1d26b5
|
Loading…
Reference in New Issue