1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
1. About
This is a small howto on building SCMxx on OS/2. To build SCMxx/OS2 you need:
* Innotek GCC3 (www.innotek.de) installed and configured.
* GNU libiconv. Native iconv() (in innotek libc) fail with UCS-4 codepage,
used by SCMxx, so dont use it.
* Some *nix tools ("make", "sh", etc.) to allow "configure" script work in
OS/2. See www.unixos2.org for detailts. Also, many tools can be found on the
Innotek website.
* GNU getopt sources. Also, SCMxx can be compiled with popt, but its better
to use getopt, because it work better on OS2.
2. Steps to get SCMxx binaries on OS/2
1) Compile libiconv with igcc. I compiled it w/o any source code modification.
On my PC configure script created buggy libtool and Makefiles, i changed
them, and all compiled just fine. I advise you to disable shared library
build (it break compilation process), you always can get shared lib from
static using "dllar" utility from igcc.
2) Compile getopt() lib and place it somewhere.
3) Run configure script in the SCMxx directory. add path to libiconv/include
dir to CFLAGS env. variable (e.g. -I /src/libiconv/include) and
getopt dir. Ignore warnings on configuration process. You will get
Makefile`s.
4) Modify CFLAGS and LDFLAGS to include path to libiconv and getopt headers
and libs. Also, add -liconv and -lgetopt to LDFLAGS.
5) Run make in. I hope, that you will get SCMxx binary ;-)
3. Notes
May be i`ll rewrite work with serial port later. Also, please remember that
OS/2 have no Unicode locales, so decoding text (e.g. phonebook entries) can
contain some Unicode characters in the "\xxxx" form. Also i linked SCMxx
with --static switch. IMHO it`s better to have big binary (800k) than problem
with different libc and iconv versions.
4. Contacts
If you have a questions or bugreports feel free to contact me.
Alex Samorukov <samm@os2.kiev.ua>.
|