wiki:OSGeo4W_jp/SetupDevelopment

Version 9 (modified by hfujii, 14 years ago) ( diff )

--

セットアップ開発

背景

OSGeo4W GUI インストーラーは Cygwin インストーラーが使用するのと同じコードに由来します (Cygwin は Windows の Unix エミュレータです). このコードについてのより詳しい情報は以下で見つけることができます:

http://cygwin.com/setup.html

自分の setup.exe を作成する

  1. Cygwin インストーラーをダウンロードする

http://www.cygwin.com/setup.exe

  1. Cygwin をインストールする
  • in the installer, no need to change anything (press <Next> until you must choose a download site)
  • in the Choose a Download Site window, highlight a URL that appears close to your country location, and press <Next>
  • in the Select Packages window, make sure to install the following packages (click on "Skip" until you see a version number beside the package name)
    • Devel
      • autoconf
      • automake
      • bison
      • flex
      • gcc-mingw-g++
      • libtool
      • make
    • Mingw
      • mingw-zlib
      • mingw-bzip2
    • also install all packages that are dependencies of the above ones (the cygwin installer should have automatically selected them for you)
    • after selecting the required packages, press <Next> to begin installing
  • you should now have a Cygwin shortcut on your desktop
  • if you chose default locations, if you open Windows Explorer you will see that Cygwin exists at C:\cygwin
  1. まだサブバージョンがインストールされていない:
  • download and install a fancy GUI for SVN (such as http://tortoisesvn.tigris.org/), or
  • use a commandline SVN client such as from here
    • copy the contents of that zip into your Program Files directory
    • add 'C:\Program Files\svn-win32-1.5.6\bin' to your PATH environment variable
  1. Checkout OSGeo4W セットアップコードのローカルコピー調べるをinto your Cygwin ホームディレクトリ
  1. OSGeo4W setup.exe 作成の準備が完了しています
  • double-click the Cygwin desktop shortcut to start Cygwin
  • execute the following:
    • cd setup
    • ./bootstrap.sh
    • ./fr_configure
    • make

これでセットアップディレクトリに setup.exe 実行可能ファイルが作成されます。

Uploading a new setup.exe to the Download Server

The fr_upload.sh and package.sh scripts should also be helpful to get the results to the OSGeo4W download server. Note that the executable needs to be updated in two places when new versions are uploaded. One is the http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe binary and the other is the packaged copy in http://download.osgeo.org/osgeo4w/release/setup.

エクスプレスパッケージの追加

以下の手順に沿って新しいエクスプレスインストールパッケージを追加してください:

  • 最後のセクション(IDC_PKG_OPENEV, etc)にあるresource.hの新パッケージのためsymbolic defineを追加します
  • res.rc (search for IDC_PKG_OPENEV) に定義されているエクスプレスパッケージダイアログに新しいエントリーを追加します。他のパッケージと位置がかぶらないようにしてください。
  • express_package.cc ファイルにある PackageControlPair[] 配列に新しいパッケージを追加します。このとき IDC_PKG_ constant とパッケージの名前を一致させてください。

戻る

セットアップ 開発

OSGeo4W GUI インストーラーは次に記述されているCygwin GUI インストーラーからできたものです:

http://cygwin.com/setup.html

修正済みのソースは次のOSGeo4W SVNで見つけることができます:

https://svn.osgeo.org/osgeo4w/trunk/setup

作成するにはまず始めにCygwinをインストールしてください - 様々な開発パッケージを含んでいます。 実行:

./bootstrap.sh
./fr_configure
make

セットアップソースディレクトリに setup.exe 実行可能ファイルが作成されます。fr_upload.sh と package.sh スクリプトも OSGeo4W ダウンロードサーバーの結果を得るのに有用です。新しいバージョンがアップロードされると、実行可能ファイルを2箇所でアップデートする必要があります。1つは http://download.osgeo.org/osgeo4w/osgeo4w-setup.exe バイナリで、もう1つは http://download.osgeo.org/osgeo4w/release/setup にあるパッケージされたコピーです。

Note: See TracWiki for help on using the wiki.