Recent Changes - Search:

eCosForge

PmWiki

edit SideBar

Hosttools

Preface

The hosttools als intended to be easily built and run on Linux hosts. Other Unixes may work as well. MacOSX? 10.3 should work, MacOSX? 10.5 will not work - patches are welcome! And we finally ported our hosttools to Windows Cygwin and MingW? (with msys). The Windows port does not support unicode builds at the moment.

Building on Windows

with MingW? msys

Download and install MingW? and msys. In MingWs? installer make sure to select

  • binutils
  • gcc-core
  • gcc-g++
  • mingw32-make
  • mingw-runtime
  • w32api

At first we have to install tcl and tk. Download them (I got versions 8.5.4) (to msys' home directory, which was c:\MinGW?\msys\1.0\home\larsi for me), and extract them:

tar xvzf tcl8.5.4.tar.gz
tar xvzf tk8.5.4.tar.gz

Make a seperate build directory:

make buildtcl

Enter it:

cd buildtcl

The prefix for all MingW?/msys builds has to be /mingw ! It is only mentioned here, but you have to supply this configure option for building wxWidgets and hosttools also. Configure it:

../tcl8.5.4/win/configure --prefix=/mingw

If all went fine, you can build it:

make

Again if all went fine, you can install it:

make install

In the buildtcl directory you can also configure build and install tk.

Now wxWidgets has to be installed, follow the wxWidgets part of the cygwin section for that but for the configure process use this line:

../wxWidgets-2.8.9/configure --prefix=/mingw/ --with-msw --disable-precomp-headers --disable-unicode --disable-shared

After that follow the Linux instructions for building and installing the hosttools and also honor the --prefix=/mingw option

with Cygwin

Download and run Cygwins installer. In the package selection make sure that the following packages are selected:

  • binutils
  • gcc4
  • gcc4-core
  • gcc4-g++
  • gcc4-runtime
  • make
  • sed
  • subversion
  • tcltk
  • w32api

The gcc executables are named gcc-4.exe and g++-4.exe. For the configure process to find them enter at the cygwin shell:

export CC=gcc-4
export CXX=g++4

wxWidgets

As there is no cygwin package for wxWidgets available we have to build and install it ourselfes. Download the wxAll source archive (I got version 2.8.9) to your cygwin home directory (which was c:\cygwin\home\larsi for me). Extract the archive:

tar xvzf wxWidgets-2.8.9.tar.gz

Make a build directory for wxWidgets:

mkdir buildwx

Enter this directory:

cd buildwx

From there configure your wxWidgets. I've done it this way:

../wxWidgets-2.8.9/configure --with-msw --disable-shared

If all was fine, you can build it with simply:

make

This should build an ANSI (non-unicode) wxWidgets library. You should be ready for installing it now. Just type:

make install

From now on follow the instructions for building hosttools on Linux.

Building on Linux

Requirements to build:

  • gcc
  • wxWidget 2.4, 2.6 or 2.8 (with development package), but wxWidgets 2.4 is not supported any more
  • tcl (with development package)

Get the sources from svn repository:

$ svn co http://www.ecosforge.net/ecosforge/trunk/host/host-tools/

Make a separate directory for building and enter it:

$ mkdir build
$ cd build

Configure your build tree. You can add options depending on your needs, for example add --prefix=install-dir if you want a different installation directory:

$ ../host-tools/configure

If no errors occured the tree is now ready to build:

$ make

Again, if there were no errors, you are ready to install:

$ make install

Command line ecosconfig and the graphical configtool are now ready to use.

If you notice bugs or have problems, please write to our ecosforge-discuss mailing list http://ecosforge.net/mailman/listinfo/ecosforge-discuss.

Differences to configtool from eCos cvs at ecos.sourceware.org:

  • autotools build
  • it is possible to add hardware packages
  • unicode support (on Linux)
  • no need for a separate wxWidgets installation, uses distributions installation on linux platform

You can browse the repository online at http://www.ecosforge.net/viewvc/trunk/host/host-tools/ .

Edit - History - Print - Recent Changes - Search
Page last modified on February 04, 2009, at 04:33 AM