Installing from source on Mac OS X

From LINA Wiki

Jump to: navigation, search

IMPORTANT NOTE: Compiling LINA from source is a complex and time-consuming process that involves downloading approximately a gigabyte of auxilliary code and installing several helper applications on your machine. If you have little or no experience building software from source, you may wish install LINA using the LINA installer for Mac OS X.

Following are brief instructions for building LINA from source on Mac OS X:

Note that a large number of Open Source tools developed by third parties are needed in order to build LINA. We have bundled these tools together into two compressed files which also need to be downloaded in order to build LINA from source.

We are working right now to build and test binaries for installing LINA on various platforms. These binaries will be around 100MB in size - much smaller than all the code necessary to build LINA.

Preliminary: If you have libSDL installed using Fink, it needs to be uninstalled before LINA will build.

  • 1. Prepare the operating system by installing the Mac OS X developer tools.
    • Install XcodeTools.mpkg from the main Mac OS X install disk found inside Xcode Tools directory.
    • Install BSDSDK.mpkg from the main Mac OS X install disk found inside Xcode Tools/Packages.

  • 2. Either:
    • a. Check out LINA from the git source code repository.
      Or:
    • b. Download the latest version of LINA from here. From the command line, type: tar xvzf lina-x.xx.tar.gz

  • 3. Download third-party.tar.gz and full-bootstrap.tar.gz from here. These packages contain the third-party packages used by LINA and enable LINA to be bootstrapped.

  • 4. Move full-bootstrap.tar.gz and third-party.tar.gz into the lina directory that was created when you checked out the code from the source code repository or uncompressed the downloaded file.

  • 5. From the command line:
    • tar xvzf full-bootstrap.tar.gz (this decompresses full=bootstrap.tar.gz)
    • tar xvzf third-party.tar.gz (this decompresses third-party.tar.gz)
    • as root cp third-party/platforms/macosx/libtoolize /usr/bin/
    • not as root sh setup.sh; ./configure --prefix=/usr (this configures the build)
    • as root make prepare (this prepares the LINA directories and installs software for a faster build)
    • not as root make all (this builds LINA)
Personal tools