Coder Social home page Coder Social logo

blueskutya / weidu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weiduorg/weidu

0.0 0.0 0.0 4.67 MB

WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine.

Home Page: http://www.weidu.org

License: GNU General Public License v2.0

Shell 0.19% C++ 0.03% Perl 0.12% C 31.19% OCaml 64.54% D 0.02% Makefile 0.48% DTrace 3.44%

weidu's Introduction

Building WeiDU

Requirements and build environment

The version of OCaml needs to be greater than or equal to 4.04 and less than or equal to 4.11, and configured without forced safe strings.

GNU/Linux

  • OCaml with native compilers.

  • A basic GCC tool chain with make.

  • Perl, which is normally installed by default.

  • Optionally, also git, hevea, texlive, zip and upx. HeVeA and TexLive are only needed to build the documentation and zip and upx are used in making the distributable archives (upx is optional).

  • Elkhound (vide infra). Place the executable on you path and allow Elkhound to be executed as a program, for example, by using the terminal command chmod +x path/to/elkhound

Windows

  • Native OCaml (typically compiled by MinGW), obtained from ocaml.org.

  • A Cygwin-based *nix tool chain, particularly binutils and make from the Devel group. Perl is also required but is typically installed by default. Optionally also git (Devel), openssh (Net), zip (Archive) and upx (Utils).

  • Cygwin-hosted MinGW-GCC, called mingw-gcc-core, or some such.

  • Elkhound (vide infra). For less configuration, place the elkhound binary in Cygwin's /bin directory, or equivalent. The build process does not like paths with spaces.

MacOS

  • Make sure you have Xcode installed. You probably don't need Xcode per se but apparently it is the conventional way of obtaining some of the necessary programs (make, gcc, etc.). You may be able to download and install Xcode's command-line tools from Apple Developer without having to download and install all of Xcode.

  • Install MacPorts or HomeBrew.

  • Install Perl (using MacPorts or HomeBrew, for example).

  • Use MacPorts or HomeBrew to install OCaml. Note where OCaml was installed.

  • Optionally, install UPX. UPX is used to compress the compiled programs, but is not available for all platforms.

  • Obtain Elkhound (vide infra) and place the executable on your path. Allow Elkhound to be executed as a program, for example, by using the terminal command chmod +x path/to/elkhound

Elkhound

The source code and build instructions for Elkhound are available at GitHub. There are also compiled executables for some platforms available under Releases.

Compiling WeiDU

First time compiling

  • Obtain WeiDU's source code. The recommended way is by using git: git clone git://github.com/WeiDUorg/weidu.git your/directory Bear in mind WeiDU builds distribution packages to the directory one level up from where the source is located.

  • Enter the directory where you put WeiDU's source code. Copy the file ./sample.Configuration to ./Configuration. Open the file and change the value for OCAMLDIR for your platform to the directory in which the OCaml binaries are located.

If you have compiled before

  • Make sure you have the up-to-date WeiDU source. The recommended way is by using git (from inside the directory where you keep your WeiDU source code): git pull origin

  • If the file ./sample.Configuration has been changed, recreate ./Configuration and re-apply any changes you have made to it.

Finally

  • Check out the branch from which you wish to compile WeiDU. If you are building a stable version, check out the master branch. If your are building a beta version, check out the devel branch. From inside your WeiDU source directory, you check out the branch with: git checkout branch, where branch is the branch you wish to check out.

  • Run make. Relevant build targets are

  • clean
  • weidu
  • weinstall
  • tolower
  • doc
  • windows_zip
  • linux_zip
  • osx_zip
  • src_zip

The *_zip targets produce an archive in .. that is suitable for distribution. If you are not developing WeiDU, you probably want one of windows_zip, linux_zip or osx_zip.

weidu's People

Contributors

fredriklindgren avatar burner1024 avatar alienquake avatar vbigiani avatar argent77 avatar plainab avatar rosalie241 avatar camdawg avatar dunedan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.