FAQ: How to compile Ultrastar in DP2005

danlih
2007-01-04
2013-05-02
  • danlih
    danlih
    2007-01-04

    FAQ: How to compile Ultrastar in Delphi Personal 2005 environment

    Date: 2007-01-04
    Author: Danli

    Table of contents

    Get Delphi Personal 2005
    Get key for Delphi Personal 2005
    Install Delphi Personal 2005
    Get Ultrastar source
    Donwload and install package used by Ultrastar
        Zlportio
        Bass
        JEDI-SDL
        FBMIDIPlayer (TMidiPlayer, TMidiScope v.1.3)
        OverbyteIcs
        Delphi 2005 Personal Edition xmlrtl.dcp fake
    Build Ultrastar

    Get Delphi Personal 2005

    Delphi 2005 Personal exists and it's free, but it's not available for download from the Borland site. They only make it available to magazines for special promotions

    Google for "Delphi 2005 Personal" and you may find it on the web.

    Get help documentation
    http://info.borland.com/techpubs/delphi/Delphi2005/Help.pdf
    http://info.borland.com/techpubs/delphi/Delphi2005/Reference.pdf

    Get key for Delphi Personal 2005

    Go to http://www.codegear.com/tabid/138/Default.aspx choose key for Delphi 2005 Personal version 2005, You have to registry and then you get a email with Delphi 2005 Personal Activation File.
    Follow instructions in the email

    Install Delphi Personal 2005

    Run Install\setup.exe if you don't install from CD
    You my have to install prerequisites you're self.

    Get Ultrastar source

    Download:
    http://sourceforge.net/project/showfiles.php?group_id=116377

    Unpack:
    Unpack the source in a directory of your choice, I will refer to this directory as %UltrastarSrc%

    Setup:
    Create directory for binary files: %UltrastarSrc%\Bin
    Copy your already installed version of Ultrastar (C:\Program\UltraStar\*) to %UltrastarSrc%\Bin
    Edit config.ini: %UltrastarSrc%\Bin\config.ini
    [Graphics]
    FullScreen=Off

    Download and install package used by Ultrastar

    I have created a Borland import directory for Delphi package: C:\Dvelopment\Delphi\Imports, I will refer to this directory as %DelphiImports%

    Zlportio
    --------
    With this unit your application directly can access port I/O under all versions of Windows....

    Download:
    http://www.specosoft.com/download/zlportio.zip

    Unpack to
    %UltrastarSrc%\ZlportIO

    Bass
    ----
    BASS is an audio library for use in Windows and Mac OSX software. Its purpose is to provide developers with the most powerful and efficient (yet easy to use), sample, stream.
    On Windows, BASS requires DirectX 3 or above for output, and takes advantage of DirectSound and DirectSound3D hardware accelerated drivers, when available

    Download:
    http://www.un4seen.co.uk/files/bass21.zip

    Unpack:
    %DelphiImports%\Bass21

    Note:
    Don't use Bass23, it looped when getting Audio input devices on my soundcard.

    JEDI-SDL
    --------
    Library for game development

    Download:
    http://sourceforge.net/project/showfiles.php?group_id=43805

    Unpack:
    %DelphiImports%\JEDI-SDLv1.0

    FBMIDIPlayer (TMidiPlayer, TMidiScope v.1.3)
    --------------------------------------------
    This midi player is called TMidiPlayer, component which can load midi file from disk. access to tracks and midi events. TMidiScope, one screen show all midi activity (notes, contollers).

    Download:
    http://www.torry.net/vcl/mmedia/audio/fbmidiplay.zip

    Unpack:
    %DelphiImports%\fbmidiplay

    Install:
    Open the fdmidiplayer package file: %DelphiImports%\fbmidiplay\midi\midiComp.dpk (As project type choose Delphi for Win32)
    Build the package: right click on the project file midiComp.bpl and choose Build, the compiler will halt on the row vcl50; change this and rebuild the package again
    Install the package: right click on the project file midiComp.bpl and choose Install

    This will create the midiComp files in My Document\Borland Studio Projects\Bpl

    OverbyteIcs
    -----------
    The Internet Component Suite is composed of various Internet components and applications. It is distributed as freeware with full source code for all Delphi

    Download:
    http://www.overbyte.be/arch/OverbyteIcsV6beta.zip

    Unpack:
    %DelphiImports%\OverbyteIcsV6beta

    Delphi 2005 Personal Edition xmlrtl.dcp fake
    --------------------------------------------
    xmlrtl is used by OverbyteIcs

    Delphi 2005 Personal Edition does not have the xmlrtl.dcp file which is required by the designide package. This means that Delphi 2005 Personal Edition is not able to compile any designtime package that requires the designide package.
    The solution is to install a faked xmlrtl.dcp like xmlrtlFAKE.dcp which contains the two faked units XmlDom and XmlIntf. These two unit do not have an implementation section. Their interface section contains only the interface section parts that are needed by the designide package. With this .dcp file it is possible to use designtime packages in Delphi 2005 Personal Edition.

    Donwload:
    http://unvclx.sf.net/other/D2k5PExmlrtlFake.zip

    Unpack:
    Extract the zip file to a directory of your choice
    Execute the correctname.bat which renames the .dcp file to xmlrtl.dcp.
    copy/move the xmlrtl.dcp to the BDS\3.0\lib directory.

    Build Ultrastar

    Open Ultrastar project file %UltrastarSrc%\Code\UltraStar.dpr (As project type choose Delphi for Win32)
    Change the output directory: Project -> Options -> Directories/Conditionals -> Output directory, the output directory should be %UltrastarSrc%\Bin"
    Add the following directories to the Library Win32 path: Tools -> Options -> Delphi options -> Library - Win32 -> Library path
    %DelphiImports%\JEDI-SDLv1.0\sdl\pas
    %DelphiImports%\JEDI-SDLv1.0\smpeg\pas
    %DelphiImports%\JEDI-SDLv1.0\OpenGL\Pas
    %DelphiImports%\Bass23\delphi
    %DelphiImports%\fbmidiplay\midi
    %DelphiImports%\OverbyteIcsV6beta\Delphi\Vc32

    Try to build the project: <Shift>+F9
    The build will halt on the row:
    Button    JPG "..\Graphics\MusicWheelItem song.jpg"
    Add a comment this row, It should now look like:
    //Button    JPG "..\Graphics\MusicWheelItem song.jpg"

    Now Build the project, you are ready to go!

    Pleas post any problem with this documentation and I will correct them.

     
    • blue
      blue
      2007-01-05

      nice FAQ!

       
    • danlih
      danlih
      2007-01-05

      Note:
      %DelphiImports%\Bass23\delphi
      should be
      %DelphiImports%\Bass21\delphi

       
    • Stefan
      Stefan
      2007-02-22

      I'm using DP2007 instead of DP2005, but I'm getting

      [Error] File not found: 'UltraStar.res'

      when building UltraStar. Am I doing something wrong, or did I missed something?