Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit 7ddf628

Browse files
committed
updated readme to clarify the build instructions a bit
1 parent bae1bfe commit 7ddf628

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ these are necessary for command line builds. After Xcode loads the project it c
102102
src directory to build.
103103

104104
After BioGears is built, navigate to the bin directory and launch the scenario driver from there, specifying the scenario you want to run as the first parameter
105-
(e.g. `./Release/BioGearsScenarioDriver ../verification/Scenarios/Basic/Basic1.xml`).
105+
(e.g. `./Release/BioGearsScenarioDriver ../verification/Scenarios/Patient/BasicStandard.xml`).
106106

107107

108108
### Building with GCC on Linux LINUX
@@ -115,9 +115,12 @@ Make sure the following tools are installed:
115115
- Java JDK 8
116116
- GCC
117117

118-
Add a JAVA_HOME variable to point to the Java installation and add it to the system PATH. This can be done by adding the following lines to ~/.profile:
118+
To begin, get these tools through the linux package manager of your choice (apt, yum ect...). This build was tested on Ubuntu 16.04 with tools installed via apt-get. Build supports open JDK or oracle JDK. Linking should be automatically done through the package manager.
119+
120+
121+
Add a JAVA_HOME variable to point to the Java installation and add it to the system PATH (if it was not sufficiently linked through the package manager, you can double check this with a quick `$ java -version`). This can be done by adding the following lines to ~/.profile (again this will depend on where you java installation is on your machine, this is an example of the location when installed via apt-get on Ubuntu):
119122
```
120-
JAVA_HOME=/usr/local/jdk1.8.0_45
123+
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
121124
PATH=$PATH:$JAVA_HOME_bin
122125
```
123126

@@ -126,12 +129,13 @@ Replace the JAVA_HOME value with the correct installation directory.
126129
#### Build Xerces
127130

128131
Navigate in a terminal window to the xerces-3.1.2 directory in the BioGears lib directory. Build Xerces by running
129-
`./configure --disable-threads --disable-network --enable-transcoder-gnuiconv --disable-pretty-make CXXFLAGS=-O3 CFLAGS=-O3` and then `make`.
132+
`./configure --disable-threads --disable-network --enable-transcoder-gnuiconv --disable-pretty-make CXXFLAGS=-O3 CFLAGS=-O3` and then `make`. Note, this step may require administrative privileges, if you are getting an error here type `$ chmod +x configure` and re-run the command, this should fix things.
133+
130134
<br/>
131135

132136
#### Building BioGears from the Command Line
133137

134-
Navigate in a terminal window to the BioGears src directory and run `ant cmake -Denv=unixMake` and then `ant compile -Denv=unixMake`.
138+
Navigate in a terminal window to the BioGears src directory and run `ant cmake -Denv=unixMake `. There may be a couple errors that pop up here due to lack of administrator privleges. These are tied to running the xsd file to auto-gen the schema classes. To get around this type `$ chmod +x ../lib/xsd-4.0.0-x86_64-linux-gnu/bin/xsd` which should give you the requirements you need to run the xsd code to generate the schema. To compile the code just type `ant compile -Denv=unixMake`.
135139

136140
### Cross-compiling with GCC for the Raspberry Pi RPI
137141

0 commit comments

Comments
 (0)