| Tutorial: Compiling OpenJAUS 3.3 |
| Written by Danny Kent |
|
This tutorial is for OpenJAUS 3.3. OpenJAUS 3.3 is no longer in development or maintainence by the OpenJAUS team. This tutorial is provided for reference and support of legacy systems only. For new development please use OpenJAUS 4.0 OpenJAUS is designed to be usable on a variety of different platforms including both Microsoft Windows and various flavors of Linux. It has been extensively tested on both MS Windows XP and Debian based Linux flavors such as Ubuntu. This tutorial will guide the user on how to obtain the proper release package and compile the libjaus, libopenJaus, ojNodeManager and ojVehicleSim. For details about compiling using MS Visual Studio in Windows see here and for compiling using the GNU GCC toolchain on Linux see here. Windows (Microsoft Visual Studio)Requirements
The OpenJAUS code base for Windows is distributed as a Microsoft Visual Studio solution. First obtain the OpenJAUSv3.3.x-Win32-VS20xx.zip file from the Downloads section. Unzip the file to a local folder. The zip file will unzip its contents into a folder called OpenJAUSv3.3.x with the directory structure shown below: OpenJAUSv3.3.x The Microsoft Visual Studio project file is located in the OpenJAUSv3.3.x folder and labeled OpenJAUSv3.3.x.sln. Open the solution file in Microsoft Visual Studio (MSVS). Once opened, the project's contents will be listed in the resource view on the left side of the screen. The OpenJAUS solution is comprised of four projects, mirroring the directory above. The default project is set to ojNodeManager. To compile the code base go to Build > Build Solution. This will compile all the projects with the Debug information retained. This is done to more easily facilitate debugging of applications based on the libraries. Each project has the appropriate dependencies setup using relative paths, therefore it should compile for the developer in any configuration. The libraries projects are output as DLLs into the lib directories. The libraries libjaus and libopenJaus can be linked against other projects using the .lib files. To run projects built against them, ensure the appropriate DLL files are available either locally or globally on the system. The executables projects are output to their respective bin directories. More details about running those applications can be found in the Running ojNodeManager and Running ojVehicleSim tutorials respectively. The OpenJAUS code base relies on two external libraries which are distributed within the distribution. These are PThreads-win32 and pdcurses. These open source libraries are located in the ThirdParty folder and provided as a convenience to OpenJAUS developers. Each of these libraries is distributed under their own licenses which are located in their respective folders. |
0 Comments