HLA 分布式仿真

最近在看多体仿真相关的内容,不经意间查看到 HLA RTI 相关的内容,这里以 portico 开源软件为例

portico 编译

# 同步源代码
git clone https://github.com/openlvc/portico

# 进入目录
cd portico

# windows 下 不方便编译 cpp 部分,注释掉即可
diff --git a/codebase/build.xml b/codebase/build.xml
index 7225be0..1a4d7a6 100644
--- a/codebase/build.xml
+++ b/codebase/build.xml
@@ -108,9 +108,9 @@


        
-       
-       
-       
+       
+       
+       

        
        

# 修改 jdk home
diff --git a/codebase/build.properties b/codebase/build.properties
index 28ff5fc..fb40892 100644
--- a/codebase/build.properties
+++ b/codebase/build.properties
@@ -23,17 +23,17 @@
 #################################################################################
 build.longname = The Portico Project
 build.shortname = portico
-build.version = 2.1.1
-build.number = 0
+build.version = 2.1.0
+build.number = 3

 #################################
 # Java Development Kit Settings #
 #################################
 # Windows values need either "/" or "\\\" for path separation. Back-slash is
 # escaped when the properties file is read, and then again by Ant.
-jdk.home.macosx  = /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
-jdk.home.linux32 = ${env.JAVA_HOME}
-jdk.home.linux64 = ${env.JAVA_HOME}
-jdk.home.win32   = c:/Program Files (x86)/AdoptOpenJDK/jdk-11.0.10.9-hotspot
-jdk.home.win64   = c:/Program Files/AdoptOpenJDK/jdk-11.0.10.9-hotspot
+jdk.home.macosx  = /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
+jdk.home.linux32 = /usr/lib/jvm/java-8-oracle
+jdk.home.linux64 = /usr/lib/jvm/java-8-oracle
+jdk.home.win32   = c:/Program Files (x86)/Java/jdk1.8.0_211
+jdk.home.win64   = c:/Program Files/Java/jdk1.8.0_211

# 执行编译即可
cd codebase && ant

执行完之后,dist 目录下即为 portico 库包,然后放入到代码中使用即可

你可能感兴趣的:(HLA 分布式仿真)