Porting to OS/2: Install pkg-config and OS/2 toolkit
pkg-config
Many open source projects use pkg-config to find out compiler flags and linker flags to use a lib.
You can find pkg-config here,
Unzip it into x:\usr.
- unzip pkg-config-0.23.zip -d x:\usr
And set env var.
- SET PKG_CONFIG_PATH=x:/usr/lib/pkgconfig
// ----- 2016/01/04
You can get newer versions of pkg-config from hobbes.
// -----
OS/2 toolkit
In many case, kLIBC is enough. However there is a time when OS/2 native APIs are required. For examples, multi-media support. And it also provides help INF files for OS/2 APIs and many other tools.
Due to this, it would be better to install OS/2 toolkit. The toolkit is shipped with MCP/ACP or eCS. In case of eCS 2.0, it is in TOOLKIT of CD #2.
You can install by tkinstal.exe. Progress with its guide. Then, set env vars for gcc. This assumes that you installed OS/2 toolkit into x:\os2tk45.
1 2 3 | SET C_INCLUDE_PATH=x:/os2tk45/speech/h;x:/os2tk45/som/include;x:/os2tk45/inc;x:/os2tk45/h/gl;x:/os2tk45/h;x:/os2tk45/h/libc SET LIBRARY_PATH=x:/os2tk45/speech/lib;x:/os2tk45/samples/mm/lib;x:/os2tk45/lib;x:/os2tk45/som/lib SET CPLUS_INCLUDE_PATH=x:/os2tk45/speech/h;x:/os2tk45/som/include;x:/os2tk45/inc;x:/os2tk45/h/gl;x:/os2tk45/h;x:/os2tk45/h/libc |
댓글
댓글 쓰기